Skip to content

Commit 8b2842f

Browse files
committed
moved Sequentialization.AddCheckers
1 parent 75c8df1 commit 8b2842f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Source/Concurrency/CivlRewriter.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public static void Transform(ConcurrencyOptions options, CivlTypeChecker civlTyp
2626
// Gate sufficiency checks
2727
Action.AddGateSufficiencyCheckers(civlTypeChecker, decls);
2828

29-
// Commutativity checks
3029
civlTypeChecker.AtomicActions.ForEach(x =>
3130
{
3231
decls.AddRange(new Declaration[] { x.Impl, x.Impl.Proc, x.InputOutputRelation });
@@ -37,6 +36,7 @@ public static void Transform(ConcurrencyOptions options, CivlTypeChecker civlTyp
3736
}
3837
});
3938

39+
// Commutativity checks
4040
if (!options.TrustMoverTypes)
4141
{
4242
MoverCheck.AddCheckers(civlTypeChecker, decls);
@@ -51,13 +51,12 @@ public static void Transform(ConcurrencyOptions options, CivlTypeChecker civlTyp
5151
if (!options.TrustRefinement)
5252
{
5353
YieldingProcChecker.AddRefinementCheckers(civlTypeChecker, decls);
54+
if (!options.TrustSequentialization)
55+
{
56+
Sequentialization.AddCheckers(civlTypeChecker, decls);
57+
}
5458
}
5559

56-
if (!options.TrustSequentialization && !options.TrustRefinement)
57-
{
58-
Sequentialization.AddCheckers(civlTypeChecker, decls);
59-
}
60-
6160
foreach (var action in civlTypeChecker.AtomicActions)
6261
{
6362
action.AddTriggerAssumes(program, options);

0 commit comments

Comments
 (0)