diff options
author | qadeer <unknown> | 2014-07-15 19:47:44 -0700 |
---|---|---|
committer | qadeer <unknown> | 2014-07-15 19:47:44 -0700 |
commit | 9c1c28a5e28f76af29805e6dd8b4b34c99fbe1b4 (patch) | |
tree | 9e02ec556858d05124bb3547da664db838382a3a /Test/og/FlanaganQadeer.bpl | |
parent | 74090e6fc892db326c6f98b8adb790f1f09fba41 (diff) |
updated the linear type system based on Chris' design with linear, linear_in, linear_out
Diffstat (limited to 'Test/og/FlanaganQadeer.bpl')
-rw-r--r-- | Test/og/FlanaganQadeer.bpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/og/FlanaganQadeer.bpl b/Test/og/FlanaganQadeer.bpl index de2faaa8..1e98fa6d 100644 --- a/Test/og/FlanaganQadeer.bpl +++ b/Test/og/FlanaganQadeer.bpl @@ -38,7 +38,7 @@ ensures {:atomic} |{A: l := nil; return true; }|; procedure {:yields} {:phase 0,1} Set(val: int);
ensures {:atomic} |{A: x := val; return true; }|;
-procedure {:yields} {:phase 1} foo({:linear "tid"} tid': X, val: int)
+procedure {:yields} {:phase 1} foo({:linear_in "tid"} tid': X, val: int)
requires {:phase 1} tid' != nil;
{
var {:linear "tid"} tid: X;
@@ -55,7 +55,7 @@ requires {:phase 1} tid' != nil; yield;
}
-procedure {:yields} {:phase 1} Yield({:linear "tid"} tid': X) returns ({:linear "tid"} tid: X)
+procedure {:yields} {:phase 1} Yield({:linear_in "tid"} tid': X) returns ({:linear "tid"} tid: X)
requires {:phase 1} tid' != nil;
ensures {:phase 1} tid == tid';
ensures {:phase 1} old(l) == tid ==> old(l) == l && old(x) == x;
|