@@ -319,10 +319,11 @@ void custom_bitvector_domaint::transform(
319
319
{
320
320
const irep_idt &identifier=to_symbol_expr (function).get_identifier ();
321
321
322
- if (identifier==" __CPROVER_set_must" ||
323
- identifier==" __CPROVER_clear_must" ||
324
- identifier==" __CPROVER_set_may" ||
325
- identifier==" __CPROVER_clear_may" )
322
+ if (
323
+ identifier == CPROVER_PREFIX " set_must" ||
324
+ identifier == CPROVER_PREFIX " clear_must" ||
325
+ identifier == CPROVER_PREFIX " set_may" ||
326
+ identifier == CPROVER_PREFIX " clear_may" )
326
327
{
327
328
if (code_function_call.arguments ().size ()==2 )
328
329
{
@@ -331,13 +332,13 @@ void custom_bitvector_domaint::transform(
331
332
332
333
modet mode;
333
334
334
- if (identifier== " __CPROVER_set_must " )
335
+ if (identifier == CPROVER_PREFIX " set_must " )
335
336
mode=modet::SET_MUST;
336
- else if (identifier== " __CPROVER_clear_must " )
337
+ else if (identifier == CPROVER_PREFIX " clear_must " )
337
338
mode=modet::CLEAR_MUST;
338
- else if (identifier== " __CPROVER_set_may " )
339
+ else if (identifier == CPROVER_PREFIX " set_may " )
339
340
mode=modet::SET_MAY;
340
- else if (identifier== " __CPROVER_clear_may " )
341
+ else if (identifier == CPROVER_PREFIX " clear_may " )
341
342
mode=modet::CLEAR_MAY;
342
343
else
343
344
UNREACHABLE;
@@ -459,13 +460,13 @@ void custom_bitvector_domaint::transform(
459
460
460
461
modet mode;
461
462
462
- if (statement== " set_must " )
463
+ if (statement == ID_set_must )
463
464
mode=modet::SET_MUST;
464
- else if (statement== " clear_must " )
465
+ else if (statement == ID_clear_must )
465
466
mode=modet::CLEAR_MUST;
466
- else if (statement== " set_may " )
467
+ else if (statement == ID_set_may )
467
468
mode=modet::SET_MAY;
468
- else if (statement== " clear_may " )
469
+ else if (statement == ID_clear_may )
469
470
mode=modet::CLEAR_MAY;
470
471
else
471
472
UNREACHABLE;
@@ -664,8 +665,7 @@ void custom_bitvector_domaint::erase_blank_vectors(bitst &bits)
664
665
665
666
bool custom_bitvector_domaint::has_get_must_or_may (const exprt &src)
666
667
{
667
- if (src.id ()==" get_must" ||
668
- src.id ()==" get_may" )
668
+ if (src.id () == ID_get_must || src.id () == ID_get_may)
669
669
return true ;
670
670
671
671
forall_operands (it, src)
@@ -679,7 +679,7 @@ exprt custom_bitvector_domaint::eval(
679
679
const exprt &src,
680
680
custom_bitvector_analysist &custom_bitvector_analysis) const
681
681
{
682
- if (src.id ()== " get_must " || src.id ()== " get_may " )
682
+ if (src.id () == ID_get_must || src.id () == ID_get_may )
683
683
{
684
684
if (src.operands ().size ()==2 )
685
685
{
@@ -694,15 +694,15 @@ exprt custom_bitvector_domaint::eval(
694
694
if (pointer.is_constant () &&
695
695
to_constant_expr (pointer).get_value ()==ID_NULL) // NULL means all
696
696
{
697
- if (src.id ()== " get_may " )
697
+ if (src.id () == ID_get_may )
698
698
{
699
699
for (const auto &bit : may_bits)
700
700
if (get_bit (bit.second , bit_nr))
701
701
return true_exprt ();
702
702
703
703
return false_exprt ();
704
704
}
705
- else if (src.id ()== " get_must " )
705
+ else if (src.id () == ID_get_must )
706
706
{
707
707
return false_exprt ();
708
708
}
@@ -716,9 +716,9 @@ exprt custom_bitvector_domaint::eval(
716
716
717
717
bool value=false ;
718
718
719
- if (src.id ()== " get_must " )
719
+ if (src.id () == ID_get_must )
720
720
value=get_bit (v.must_bits , bit_nr);
721
- else if (src.id ()== " get_may " )
721
+ else if (src.id () == ID_get_may )
722
722
value=get_bit (v.may_bits , bit_nr);
723
723
724
724
if (value)
0 commit comments