Skip to content

Commit c2c87f2

Browse files
committed
SMV: ID for smv_cases
This adds an irep ID for "smv_cases".
1 parent 91f0773 commit c2c87f2

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
@@ -1955,7 +1955,7 @@ void smv_typecheckt::convert(exprt &expr)
19551955

19561956
expr.id(ID_constraint_select_one);
19571957
}
1958-
else if(expr.id()=="smv_cases") // cases
1958+
else if(expr.id()==ID_smv_cases) // cases
19591959
{
19601960
if(expr.operands().size()<1)
19611961
{

0 commit comments

Comments
 (0)