Skip to content

Commit

Permalink
Commit on wrong branch.
Browse files Browse the repository at this point in the history
Revert "Change ite rules to evaluate branches. Add missing rule."

This reverts commit 1a93aab.
  • Loading branch information
Dustin Jamner authored and ivg committed Jul 25, 2018
1 parent ad02adc commit 978af49
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions bil.ott
Original file line number Diff line number Diff line change
Expand Up @@ -580,27 +580,15 @@ defns reduce_exp :: '' ::=


delta |- e1 ~> e1'
------------------------------------------------------------------ :: ite_step_cond
delta |- if e1 then v2 else v3 ~> if e1' then v2 else v3

delta |- e2 ~> e2'
------------------------------------------------------------------ :: ite_step_then
delta |- if e1 then e2 else v3 ~> if e1 then e2' else v3

delta |- e3 ~> e3'
------------------------------------------------------------------ :: ite_step_else
delta |- if e1 then e2 else e3 ~> if e1 then e2 else e3'
------------------------------------------------------------------ :: ite_step
delta |- if e1 then e2 else e3 ~> if e1' then e2 else e3

----------------------------------------------- :: ite_true
delta |- if true then v2 else v3 ~> v2
delta |- if true then e2 else e3 ~> e2


------------------------------------------------ :: ite_false
delta |- if false then v2 else v3 ~> v3

type(v2) = t'
------------------------------------------------------------------ :: ite_unk
delta |- if unknown[str]:t then v2 else v3 ~> unknown[str]:t'
delta |- if false then e2 else e3 ~> e3

delta |- e2 ~> e2'
------------------------------------------ :: bop_rhs
Expand Down

0 comments on commit 978af49

Please sign in to comment.