-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into meilers_dont_count_requires_as_pre
- Loading branch information
Showing
2 changed files
with
85 additions
and
4 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
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,30 @@ | ||
// Any copyright is dedicated to the Public Domain. | ||
// http://creativecommons.org/publicdomain/zero/1.0/ | ||
|
||
define m1(res) { | ||
res := var_m2 | ||
} | ||
|
||
define m2(res) { | ||
var var_m2: Int | ||
|
||
var v0_1: Int | ||
{ | ||
m1(v0_1) | ||
} | ||
|
||
res := var_m2 | ||
} | ||
|
||
method caller() returns (value: Int) | ||
{ | ||
var res: Int | ||
{ | ||
m2(res) | ||
} | ||
var value2: Int | ||
{ | ||
m2(res) | ||
} | ||
value := res | ||
} |