Skip to content

Commit

Permalink
[proofs] [alethe] Guard for proofs containing reserved word
Browse files Browse the repository at this point in the history
  • Loading branch information
HanielB committed Sep 28, 2024
1 parent d4e96a5 commit 944220f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/proof/alethe/alethe_node_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,15 @@ Node AletheNodeConverter::postConvert(Node n)
case Kind::BOUND_VARIABLE:
case Kind::VARIABLE:
{
if (n.getName() == "choice")
{
Trace("alethe-conv") << "AletheNodeConverter: ...using reserved name\n";
std::stringstream ss;
ss << "\"Proof unsupported by Alethe: contains variable with reserved "
"name \'choice\'\"";
d_error = ss.str();
return Node::null();
}
// see if variable has a supported type. We need this check because in
// some problems involving unsupported theories there are no operators,
// just variables of unsupported type
Expand Down

0 comments on commit 944220f

Please sign in to comment.