Skip to content

Commit 1a6bf8b

Browse files
committed
started the documentation
1 parent 348c6f7 commit 1a6bf8b

File tree

2 files changed

+484
-5
lines changed

2 files changed

+484
-5
lines changed

erc20.k

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
//
44

55
module ERC20
6-
syntax Int ::= "MAXVALUE" [function]
6+
syntax Value ::= Int // this can be changed
77
syntax Address ::= Int // this can be changed
8-
syntax AExp ::= Int
9-
| Address
8+
syntax AExp ::= Value | Address
109
| "totalSupply" "(" ")"
1110
| "balanceOf" "(" AExp ")" [strict]
1211
| "allowance" "(" AExp "," AExp ")" [strict]
@@ -15,8 +14,8 @@ module ERC20
1514
| "transfer" "(" AExp "," AExp ")" [strict]
1615
| "transferFrom" "(" AExp "," AExp "," AExp ")" [strict]
1716
| "throw"
18-
syntax Event ::= "Transfer" "(" Address "," Address "," Int ")"
19-
| "Approval" "(" Address "," Address "," Int ")"
17+
syntax Event ::= "Transfer" "(" Address "," Address "," Value ")"
18+
| "Approval" "(" Address "," Address "," Value ")"
2019
syntax EventLog ::= "Events:"
2120
| EventLog Event
2221

@@ -44,6 +43,7 @@ module ERC20
4443
<supply> 0 </supply>
4544
</ERC20>
4645

46+
syntax Int ::= "MAXVALUE" [function]
4747
rule MAXVALUE => 2 ^Int 256 -Int 1
4848

4949
rule <k> totalSupply() => Total ...</k>

0 commit comments

Comments
 (0)