Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zoep committed Sep 23, 2024
1 parent ca19531 commit 634d365
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
8 changes: 6 additions & 2 deletions tests/hevm/pass/cast-2/cast.act
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,17 @@ storage
constructor of B
interface constructor(address x, address y)

pointers
x |-> A
y |-> A

iff
CALLVALUE == 0
x =/= y

creates
A a1 := x as A
A a2 := y as A
A a1 := x
A a2 := y


behaviour upd of B
Expand Down
5 changes: 4 additions & 1 deletion tests/hevm/pass/cast-3/cast-3.act
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@ case CALLER == to:
constructor of TransferOneToken
interface constructor(address _tokenAddress)

pointers
_tokenAddress |-> Token

iff

CALLVALUE == 0
_tokenAddress =/= 0

creates

Token token := _tokenAddress as Token
Token token := _tokenAddress

behaviour transfer of TransferOneToken
interface transfer()
Expand Down
10 changes: 7 additions & 3 deletions tests/hevm/pass/cast/cast.act
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,17 @@ storage
constructor of B
interface constructor(address x, address y)

pointers
x |-> A
y |-> A

iff
CALLVALUE == 0
x =/= y

creates
A a := x as A
B b := y as A
A a1 := x
A a2 := y


behaviour upd of B
Expand All @@ -50,4 +54,4 @@ iff

storage
a1.x => 42
a2.x => 11
a2.x => 11

0 comments on commit 634d365

Please sign in to comment.