Skip to content

Commit 8b76c4e

Browse files
authored
Merge pull request #1193 from diffblue/smvlang-TRUE-FALSE
SMV: `TRUE`/`FALSE` are keywords
2 parents 3e66d13 + fba46eb commit 8b76c4e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/smvlang/smv_typecheck.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,11 +1720,7 @@ void smv_typecheckt::convert(exprt &expr, expr_modet expr_mode)
17201720
{
17211721
const std::string &identifier=expr.get_string(ID_identifier);
17221722

1723-
if(identifier=="TRUE")
1724-
expr=true_exprt();
1725-
else if(identifier=="FALSE")
1726-
expr=false_exprt();
1727-
else if(identifier.find("::")==std::string::npos)
1723+
if(identifier.find("::") == std::string::npos)
17281724
{
17291725
std::string id=module+"::var::"+identifier;
17301726

0 commit comments

Comments
 (0)