Skip to content

Commit

Permalink
fix related to struct initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvendu-lahiri committed Apr 17, 2020
1 parent 61bdd71 commit 747f421
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/SolToBoogie/ProcedureTranslator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,8 @@ private BoogieStmtList GenerateInitializationStmts(ContractDefinition contract)
}
else if (varDecl.TypeName is UserDefinedTypeName structOrContract)
{
GenerateInitializationForStructStateVar(varDecl, structOrContract);
if (varDecl.TypeDescriptions.IsStruct())
GenerateInitializationForStructStateVar(varDecl, structOrContract);
}
}

Expand Down

0 comments on commit 747f421

Please sign in to comment.