Make the example more compelling

This commit is contained in:
Danila Fedorin 2020-10-29 23:04:59 -07:00
parent f7505f573a
commit 148784ef4c

View File

@ -38,7 +38,9 @@ initialState = (IntTy, IntTy, IntTy)
testProg : Prog Main.initialState Main.initialState testProg : Prog Main.initialState Main.initialState
testProg = testProg =
[ Store A (Lit 1 `Leq` Lit 2) [ Store A (Lit 1 `Leq` Lit 2)
, Store A (Lit 1) , If (Load A)
[ Store A (Lit 1) ]
[ Store A (Lit 2) ]
, Store B (Lit 2) , Store B (Lit 2)
, Store R (Add (Load A) (Load B)) , Store R (Add (Load A) (Load B))
] ]