Skip to content

Commit

Permalink
small clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaz Qadeer committed Oct 2, 2017
1 parent 60f27ca commit aa0a4a9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Test/civl/alloc.bpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ requires {:layer 2} dom(local_in)[i];
var {:layer 1} {:linear "mem"} l: lmap;

par YieldMem(local_in, i) | Dummy();
call local := Copy(local_in);
call local := Write(local, i, 42);
call local := Write(local_in, i, 42);
call o := Read(local, i);
assert {:layer 2} o == 42;
while (*)
Expand All @@ -68,11 +67,6 @@ requires {:layer 2} dom(local_in)[i];
par Yield() | Dummy();
}

procedure {:pure} {:inline 1} Copy({:linear_in "mem"} l: lmap) returns ({:linear "mem"} l': lmap)
{
l' := l;
}

procedure {:yields} {:layer 1,2} Alloc() returns ({:layer 1} {:linear "mem"} l: lmap, i: int)
requires {:layer 1} PoolInv(unallocated, pool);
ensures {:layer 1} PoolInv(unallocated, pool);
Expand Down

0 comments on commit aa0a4a9

Please sign in to comment.