Skip to content

Commit b0ef025

Browse files
committed
Don't let an expression be put into its own list of split quantifiers, to prevent infinite loops
1 parent 3e6c9a9 commit b0ef025

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Source/Dafny/DafnyAst.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8870,8 +8870,10 @@ public List<Expression> SplitQuantifier {
88708870
return _SplitQuantifier;
88718871
}
88728872
set {
8873-
_SplitQuantifier = value;
8874-
SplitQuantifierExpression = SplitQuantifierToExpression();
8873+
if (!value.Contains(this)) {
8874+
_SplitQuantifier = value;
8875+
SplitQuantifierExpression = SplitQuantifierToExpression();
8876+
}
88758877
}
88768878
}
88778879

0 commit comments

Comments
 (0)