Skip to content

Commit

Permalink
extending the trivial example
Browse files Browse the repository at this point in the history
  • Loading branch information
h0nzZik committed Apr 15, 2024
1 parent 2165767 commit 208128c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions minuska/bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let builtins_alist =
[ "bool.neg", "b_bool_neg";
"bool.and", "b_and";
"bool.or", "b_or";
"bool.eq", "b_eq";
"bool.false", "b_false";
"bool.true", "b_true";
"term.same_symbol", "b_have_same_symbol";
Expand Down
4 changes: 4 additions & 0 deletions minuska/trivial.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

strictness: [] ;

rule [stmt.ite.false]:
ite[B,X,Y] => Y where bool.eq(B, bool.false())
;

rule [while.unfold]:
while[B,X] => ite[B, seq[X, while[B, X]], unitValue[]]
where bool.true()
Expand Down

0 comments on commit 208128c

Please sign in to comment.