Skip to content

Commit

Permalink
Reset predecessors before focusing (#856)
Browse files Browse the repository at this point in the history
There are two calls to `FocusAndSplit` in Boogie. Before one, there was
already a call to `ResetPredecessors`, but not before the other. Now
they both work on an implementation where the `Predecessors` attributes
has been reset.

---------

Co-authored-by: Remy Willems <rwillems@amazon.com>
  • Loading branch information
atomb and keyboardDrummer authored Mar 7, 2024
1 parent 9b83c3a commit 11660fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- Target framework and package configuration -->
<PropertyGroup>
<Version>3.1.1</Version>
<Version>3.1.2</Version>
<TargetFramework>net6.0</TargetFramework>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<Authors>Boogie</Authors>
Expand Down
1 change: 1 addition & 0 deletions Source/ExecutionEngine/ExecutionEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ public IReadOnlyList<IVerificationTask> GetVerificationTasks(Program program) {
out var gotoCmdOrigins,
out var modelViewInfo);
VerificationConditionGenerator.ResetPredecessors(run.Implementation.Blocks);
var splits = ManualSplitFinder.FocusAndSplit(Options, run, gotoCmdOrigins, vcGenerator).ToList();
for (var index = 0; index < splits.Count; index++) {
var split = splits[index];
Expand Down
2 changes: 1 addition & 1 deletion Source/VCGeneration/ConditionGeneration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ protected Block GenerateUnifiedExit(Implementation impl, Dictionary<TransferCmd,
#endregion
}

internal static void ResetPredecessors(List<Block> blocks)
public static void ResetPredecessors(List<Block> blocks)
{
Contract.Requires(blocks != null);
foreach (Block b in blocks)
Expand Down

0 comments on commit 11660fd

Please sign in to comment.