File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,8 @@ void custom_bitvector_domaint::transform(
330
330
unsigned bit_nr=
331
331
cba.get_bit_nr (code_function_call.arguments ()[1 ]);
332
332
333
- modet mode;
333
+ // initialize to make Visual Studio happy
334
+ modet mode = modet::SET_MUST;
334
335
335
336
if (identifier==" __CPROVER_set_must" )
336
337
mode=modet::SET_MUST;
@@ -458,7 +459,8 @@ void custom_bitvector_domaint::transform(
458
459
unsigned bit_nr=
459
460
cba.get_bit_nr (instruction.code .op1 ());
460
461
461
- modet mode;
462
+ // initialize to make Visual Studio happy
463
+ modet mode = modet::SET_MUST;
462
464
463
465
if (statement==" set_must" )
464
466
mode=modet::SET_MUST;
Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ void change_impactt::output_change_impact(
571
571
const unsigned mod_flags=
572
572
c_entry==c_i.end () ? SAME : c_entry->second ;
573
573
574
- char prefix;
574
+ char prefix = ' ' ;
575
575
// syntactic changes are preferred over data/control-dependence
576
576
// modifications
577
577
if (mod_flags==SAME)
@@ -639,7 +639,7 @@ void change_impactt::output_change_impact(
639
639
const unsigned mod_flags=
640
640
c_entry==n_c_i.end () ? SAME : c_entry->second ;
641
641
642
- char prefix;
642
+ char prefix = ' ' ;
643
643
// syntactic changes are preferred over data/control-dependence
644
644
// modifications
645
645
if (mod_flags==SAME)
@@ -691,7 +691,7 @@ void change_impactt::output_change_impact(
691
691
const unsigned old_mod_flags=
692
692
o_c_entry==o_c_i.end () ? SAME : o_c_entry->second ;
693
693
694
- char prefix;
694
+ char prefix = ' ' ;
695
695
// syntactic changes are preferred over data/control-dependence
696
696
// modifications
697
697
if (old_mod_flags==SAME)
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ bool remove_const_function_pointerst::try_resolve_expression(
398
398
exprt simplified_expr=simplify_expr (expr, ns);
399
399
bool resolved;
400
400
expressionst resolved_expressions;
401
- bool is_resolved_expression_const;
401
+ bool is_resolved_expression_const = false ;
402
402
if (simplified_expr.id ()==ID_index)
403
403
{
404
404
const index_exprt &index_expr=to_index_expr (simplified_expr);
You can’t perform that action at this time.
0 commit comments