We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f1985 commit 232ecfdCopy full SHA for 232ecfd
src/solvers/smt2_incremental/smt_terms.cpp
@@ -59,6 +59,10 @@ static bool is_valid_smt_identifier(irep_idt identifier)
59
smt_identifier_termt::smt_identifier_termt(irep_idt identifier, smt_sortt sort)
60
: smt_termt(ID_smt_identifier_term, std::move(sort))
61
{
62
+ // The below invariant exists as a sanity check that the string being used for
63
+ // the identifier is in unescaped form. This is because the escaping and
64
+ // unescaping are implementation details of the printing to string and
65
+ // response parsing respectively, not part of the underlying data.
66
INVARIANT(
67
is_valid_smt_identifier(identifier),
68
R"(Identifiers may not contain | characters.)");
0 commit comments