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 a80fe1f commit 2ca390cCopy full SHA for 2ca390c
src/solvers/smt2_incremental/smt_terms.cpp
@@ -50,6 +50,8 @@ bool smt_bool_literal_termt::value() const
50
51
static bool is_valid_smt_identifier(irep_idt identifier)
52
{
53
+ // The below regex matches a complete string which does not contain the `|`
54
+ // character. So it would match the string `foo bar`, but not `|foo bar|`.
55
static const std::regex valid{R"(^[^\|]*$)"};
56
return std::regex_match(id2string(identifier), valid);
57
}
0 commit comments