Skip to content

Commit

Permalink
layer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NamrathaG committed Apr 27, 2024
1 parent b5b7b86 commit 4d08980
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Test/civl/samples/snapshot.bpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,6 @@ refines scan';
}
}

atomic action {:layer 2} write (v:Value, i: int)
modifies mem;
{
var x: StampedValue;
x := mem[i];
mem[i] := StampedValue(x->ts + 1, v);
}

action {:layer 1} action_read (i: int) returns (v: StampedValue)
{
v := mem[i];
}

yield procedure {:layer 0} read (i: int) returns (v: StampedValue);
refines action_read;

right action {:layer 2} action_read_f (i: int) returns (out: StampedValue)
{
var {:pool "K"} k:int;
Expand Down Expand Up @@ -116,4 +100,20 @@ yield procedure {:layer 1} read_s (i: int) returns (out: StampedValue)
refines action_read_s;
{
call out := read(i);
}
}

atomic action {:layer 1,3} action_write (v:Value, i: int)
modifies mem;
{
var x: StampedValue;
x := mem[i];
mem[i] := StampedValue(x->ts + 1, v);
}

action {:layer 1,3} action_read (i: int) returns (v: StampedValue)
{
v := mem[i];
}

yield procedure {:layer 0} read (i: int) returns (v: StampedValue);
refines action_read;

0 comments on commit 4d08980

Please sign in to comment.