Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shazqadeer committed Nov 22, 2024
1 parent 0089082 commit b949025
Show file tree
Hide file tree
Showing 3 changed files with 715 additions and 8 deletions.
18 changes: 11 additions & 7 deletions Source/Core/BoogiePL.atg
Original file line number Diff line number Diff line change
Expand Up @@ -1133,15 +1133,19 @@ WhileCmd<out WhileCmd wcmd>
"invariant"
{ Attribute<ref kv> }
(
Expression<out e> (. if (isFree) {
invariants.Add(new AssumeCmd(z, e, kv));
} else {
invariants.Add(new AssertCmd(z, e, kv));
}
kv = null;
Expression<out e> (.
if (isFree) {
invariants.Add(new AssumeCmd(z, e, kv));
} else {
invariants.Add(new AssertCmd(z, e, kv));
}
kv = null;
.)
|
CallCmd<out cmd> (. yields.Add((CallCmd)cmd); .)
CallCmd<out cmd> (.
yields.Add((CallCmd)cmd);
kv = null;
.)
)
";"
}
Expand Down
4 changes: 3 additions & 1 deletion Source/Core/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,9 @@ void WhileCmd(out WhileCmd wcmd) {

} else if (la.kind == 38 || la.kind == 53 || la.kind == 71) {
CallCmd(out cmd);
yields.Add((CallCmd)cmd);
yields.Add((CallCmd)cmd);
kv = null;

} else SynErr(151);
Expect(10);
}
Expand Down
Loading

0 comments on commit b949025

Please sign in to comment.