Skip to content

Commit b419449

Browse files
authored
Merge pull request #1406 from diffblue/id-smv-cases
SMV: ID for `smv_cases`
2 parents f59e5f1 + 4734687 commit b419449

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/hw_cbmc_irep_ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ IREP_ID_ONE(smv_abs)
2121
IREP_ID_ONE(smv_bitimplies)
2222
IREP_ID_ONE(smv_bit_selection)
2323
IREP_ID_ONE(smv_bool)
24+
IREP_ID_ONE(smv_cases)
2425
IREP_ID_ONE(smv_count)
2526
IREP_ID_ONE(smv_enumeration)
2627
IREP_ID_ONE(smv_extend)

src/smvlang/parser.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ complex_identifier:
949949
;
950950

951951
cases :
952-
{ init($$, "smv_cases"); }
952+
{ init($$, ID_smv_cases); }
953953
| cases case
954954
{ $$=$1; mto($$, $2); }
955955
;

src/smvlang/smv_typecheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ void smv_typecheckt::convert(exprt &expr)
19581958

19591959
expr.id(ID_constraint_select_one);
19601960
}
1961-
else if(expr.id()=="smv_cases") // cases
1961+
else if(expr.id() == ID_smv_cases) // cases
19621962
{
19631963
if(expr.operands().size()<1)
19641964
{

0 commit comments

Comments
 (0)