Skip to content

Commit 00ec951

Browse files
committed
Add invariant failure on case where correct SMT is not produced
This adds an invariant failure when correct SMT output would not be produced.
1 parent 650d458 commit 00ec951

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/solvers/smt2/smt2_conv.cpp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4742,11 +4742,15 @@ void smt2_convt::find_symbols(const exprt &expr)
47424742
}
47434743
out << ")))\n";
47444744
}
4745-
// else
4746-
// {
4747-
// // This is where an alternate for other solvers that does not use
4748-
// // quantifiers should go.
4749-
// }
4745+
else
4746+
{
4747+
// This is where an alternate for other solvers that does not use
4748+
// quantifiers should go.
4749+
INVARIANT(
4750+
false,
4751+
"Cannot substitute quantified expression for lambda in current "
4752+
"solver.");
4753+
}
47504754

47514755
defined_expressions[expr] = id;
47524756
}

0 commit comments

Comments
 (0)