@@ -450,10 +450,9 @@ void custom_bitvector_domaint::transform(
450450 const auto &code = instruction.get_other ();
451451 const irep_idt &statement = code.get_statement ();
452452
453- if (statement==" set_may" ||
454- statement==" set_must" ||
455- statement==" clear_may" ||
456- statement==" clear_must" )
453+ if (
454+ statement == ID_set_may || statement == ID_set_must ||
455+ statement == ID_clear_may || statement == ID_clear_must)
457456 {
458457 DATA_INVARIANT (
459458 code.operands ().size () == 2 , " set/clear_may/must has two operands" );
@@ -463,13 +462,13 @@ void custom_bitvector_domaint::transform(
463462 // initialize to make Visual Studio happy
464463 modet mode = modet::SET_MUST;
465464
466- if (statement== " set_must " )
465+ if (statement == ID_set_must )
467466 mode=modet::SET_MUST;
468- else if (statement== " clear_must " )
467+ else if (statement == ID_clear_must )
469468 mode=modet::CLEAR_MUST;
470- else if (statement== " set_may " )
469+ else if (statement == ID_set_may )
471470 mode=modet::SET_MAY;
472- else if (statement== " clear_may " )
471+ else if (statement == ID_clear_may )
473472 mode=modet::CLEAR_MAY;
474473 else
475474 UNREACHABLE;
@@ -687,8 +686,7 @@ void custom_bitvector_domaint::erase_blank_vectors(bitst &bits)
687686
688687bool custom_bitvector_domaint::has_get_must_or_may (const exprt &src)
689688{
690- if (src.id ()==" get_must" ||
691- src.id ()==" get_may" )
689+ if (src.id () == ID_get_must || src.id () == ID_get_may)
692690 return true ;
693691
694692 forall_operands (it, src)
@@ -702,7 +700,7 @@ exprt custom_bitvector_domaint::eval(
702700 const exprt &src,
703701 custom_bitvector_analysist &custom_bitvector_analysis) const
704702{
705- if (src.id ()== " get_must " || src.id ()== " get_may " )
703+ if (src.id () == ID_get_must || src.id () == ID_get_may )
706704 {
707705 if (src.operands ().size ()==2 )
708706 {
@@ -717,15 +715,15 @@ exprt custom_bitvector_domaint::eval(
717715 if (pointer.is_constant () &&
718716 to_constant_expr (pointer).get_value ()==ID_NULL) // NULL means all
719717 {
720- if (src.id ()== " get_may " )
718+ if (src.id () == ID_get_may )
721719 {
722720 for (const auto &bit : may_bits)
723721 if (get_bit (bit.second , bit_nr))
724722 return true_exprt ();
725723
726724 return false_exprt ();
727725 }
728- else if (src.id ()== " get_must " )
726+ else if (src.id () == ID_get_must )
729727 {
730728 return false_exprt ();
731729 }
@@ -739,9 +737,9 @@ exprt custom_bitvector_domaint::eval(
739737
740738 bool value=false ;
741739
742- if (src.id ()== " get_must " )
740+ if (src.id () == ID_get_must )
743741 value=get_bit (v.must_bits , bit_nr);
744- else if (src.id ()== " get_may " )
742+ else if (src.id () == ID_get_may )
745743 value=get_bit (v.may_bits , bit_nr);
746744
747745 if (value)
0 commit comments