diff options
author | Dan Liew <delcypher@gmail.com> | 2015-12-02 09:23:02 +0000 |
---|---|---|
committer | Dan Liew <delcypher@gmail.com> | 2015-12-02 09:23:02 +0000 |
commit | fe88bf695e1e4422474059932aa2ad588b54f98a (patch) | |
tree | f3c0b415cd624a8732fb8d5d162778c2c1648ef7 /Source/VCGeneration/ConditionGeneration.cs | |
parent | e172da3b4ac7f8d352d366d81f1c7c3184426033 (diff) | |
parent | f97656456a74564cdf96633c3f46223d39e2c6f2 (diff) |
Merge pull request #24 from boogie-org/dafny-bug-fix
Dafny bug fix
Diffstat (limited to 'Source/VCGeneration/ConditionGeneration.cs')
-rw-r--r-- | Source/VCGeneration/ConditionGeneration.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/VCGeneration/ConditionGeneration.cs b/Source/VCGeneration/ConditionGeneration.cs index 6a2eec29..19438924 100644 --- a/Source/VCGeneration/ConditionGeneration.cs +++ b/Source/VCGeneration/ConditionGeneration.cs @@ -1133,7 +1133,8 @@ namespace VC { } if (returnBlocks > 1) { string unifiedExitLabel = "GeneratedUnifiedExit"; - Block unifiedExit = new Block(new Token(-17, -4), unifiedExitLabel, new List<Cmd>(), new ReturnCmd(Token.NoToken)); + Block unifiedExit; + unifiedExit = new Block(new Token(-17, -4), unifiedExitLabel, new List<Cmd>(), new ReturnCmd(impl.StructuredStmts != null ? impl.StructuredStmts.EndCurly : Token.NoToken)); Contract.Assert(unifiedExit != null); foreach (Block b in impl.Blocks) { if (b.TransferCmd is ReturnCmd) { |