Skip to content

Commit

Permalink
Missing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Feb 22, 2025
1 parent 6c280c9 commit acbb4c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions proofs/eo/cpc/Cpc.eo
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
(($run_evaluate (not b)) (eo::not ($run_evaluate b)))
(($run_evaluate (ite b x y)) (eo::ite ($run_evaluate b) ($run_evaluate x) ($run_evaluate y)))
(($run_evaluate (or x ys)) (eo::or ($run_evaluate x) ($run_evaluate ys)))
(($run_evaluate (=> x y)) (eo::or (eo::not ($run_evaluate x)) ($run_evaluate y)))
(($run_evaluate (and x ys)) (eo::and ($run_evaluate x) ($run_evaluate ys)))
(($run_evaluate (xor x y)) (eo::xor ($run_evaluate x) ($run_evaluate y)))

Expand Down
1 change: 1 addition & 0 deletions src/proof/alf/alf_printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ bool AlfPrinter::canEvaluate(Node n)
case Kind::NOT:
case Kind::AND:
case Kind::OR:
case Kind::IMPLIES:
case Kind::XOR:
case Kind::CONST_BOOLEAN:
case Kind::CONST_INTEGER:
Expand Down
6 changes: 6 additions & 0 deletions src/theory/evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,12 @@ EvalResult Evaluator::evalInternal(
results[currNode] = EvalResult(res);
break;
}
case Kind::IMPLIES:
{
bool res = !results[currNode[0]].d_bool || results[currNode[1]].d_bool;
results[currNode] = EvalResult(res);
break;
}
case Kind::XOR:
{
bool res = results[currNode[0]].d_bool;
Expand Down

0 comments on commit acbb4c5

Please sign in to comment.