mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-11 05:28:34 -05:00
fix(form): make eval rule more precise
This commit is contained in:
parent
07ca5546f5
commit
791290118b
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ module Funs = struct
|
||||||
| B_or a when Iter.for_all Value.is_false a -> Value.false_
|
| B_or a when Iter.for_all Value.is_false a -> Value.false_
|
||||||
| B_imply (_, V_bool true) -> Value.true_
|
| B_imply (_, V_bool true) -> Value.true_
|
||||||
| B_imply (a,_) when Iter.exists Value.is_false a -> Value.true_
|
| B_imply (a,_) when Iter.exists Value.is_false a -> Value.true_
|
||||||
| B_imply (a,b) when Iter.for_all Value.is_bool a && Value.is_bool b -> Value.false_
|
| B_imply (a,b) when Iter.for_all Value.is_true a && Value.is_false b -> Value.false_
|
||||||
| B_ite(a,b,c) ->
|
| B_ite(a,b,c) ->
|
||||||
if Value.is_true a then b
|
if Value.is_true a then b
|
||||||
else if Value.is_false a then c
|
else if Value.is_false a then c
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue