File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 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(
330330 unsigned bit_nr=
331331 cba.get_bit_nr (code_function_call.arguments ()[1 ]);
332332
333- modet mode;
333+ // initialize to make Visual Studio happy
334+ modet mode = modet::SET_MUST;
334335
335336 if (identifier==" __CPROVER_set_must" )
336337 mode=modet::SET_MUST;
@@ -458,7 +459,8 @@ void custom_bitvector_domaint::transform(
458459 unsigned bit_nr=
459460 cba.get_bit_nr (instruction.code .op1 ());
460461
461- modet mode;
462+ // initialize to make Visual Studio happy
463+ modet mode = modet::SET_MUST;
462464
463465 if (statement==" set_must" )
464466 mode=modet::SET_MUST;
Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ void change_impactt::output_change_impact(
571571 const unsigned mod_flags=
572572 c_entry==c_i.end () ? SAME : c_entry->second ;
573573
574- char prefix;
574+ char prefix = ' ' ;
575575 // syntactic changes are preferred over data/control-dependence
576576 // modifications
577577 if (mod_flags==SAME)
@@ -639,7 +639,7 @@ void change_impactt::output_change_impact(
639639 const unsigned mod_flags=
640640 c_entry==n_c_i.end () ? SAME : c_entry->second ;
641641
642- char prefix;
642+ char prefix = ' ' ;
643643 // syntactic changes are preferred over data/control-dependence
644644 // modifications
645645 if (mod_flags==SAME)
@@ -691,7 +691,7 @@ void change_impactt::output_change_impact(
691691 const unsigned old_mod_flags=
692692 o_c_entry==o_c_i.end () ? SAME : o_c_entry->second ;
693693
694- char prefix;
694+ char prefix = ' ' ;
695695 // syntactic changes are preferred over data/control-dependence
696696 // modifications
697697 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(
398398 exprt simplified_expr=simplify_expr (expr, ns);
399399 bool resolved;
400400 expressionst resolved_expressions;
401- bool is_resolved_expression_const;
401+ bool is_resolved_expression_const = false ;
402402 if (simplified_expr.id ()==ID_index)
403403 {
404404 const index_exprt &index_expr=to_index_expr (simplified_expr);
You can’t perform that action at this time.
0 commit comments