forked from kind2-mc/kind2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kind2-mc#1006 from daniel-larraz/fix-contract-checks
Fix several syntax checks for contracts
- Loading branch information
Showing
8 changed files
with
306 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/ounit/lustre/lustreAstDependencies/circular_contracts_2.lus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
contract C1(x: int) returns (z:int); | ||
let | ||
import C1(x) returns (z); | ||
tel | ||
|
||
function f(x: int) returns (z:int); | ||
(*@contract | ||
import C1(x) returns (z); | ||
*) | ||
let | ||
z = x + 1; | ||
tel |
Oops, something went wrong.