-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIf.txt
28 lines (28 loc) · 955 Bytes
/
If.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
+~~~~~~~~~~~~~~~~~+
: :
: $1 = eval c :
: :
+~~~~~+~~~~~+~~~~~+
| |
+------+ +-------+
v v
+-------+-------+ +-------+--------+
| | | |
| assume $1 | | assume !$1 |
| | | |
+-------+-------+ +-------+--------+
| |
v v
+~~~~~~~~+~~~~~~~~+ +~~~~~~~~+~~~~~~~~+
: : : :
: $2 = eval t : : $2 = eval f :
: : : :
+~~~~~~~~+~~~~~~~~+ +~~~~~~~~+~~~~~~~~+
| |
+-------+ +-------+
v v
+------+----+------+
| |
| $result = $2 |
| |
+------------------+