Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/analyses/custom_bitvector_analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ void custom_bitvector_domaint::transform(
unsigned bit_nr=
cba.get_bit_nr(code_function_call.arguments()[1]);

modet mode;
// initialize to make Visual Studio happy
modet mode = modet::SET_MUST;

if(identifier=="__CPROVER_set_must")
mode=modet::SET_MUST;
Expand Down Expand Up @@ -458,7 +459,8 @@ void custom_bitvector_domaint::transform(
unsigned bit_nr=
cba.get_bit_nr(instruction.code.op1());

modet mode;
// initialize to make Visual Studio happy
modet mode = modet::SET_MUST;

if(statement=="set_must")
mode=modet::SET_MUST;
Expand Down
6 changes: 3 additions & 3 deletions src/goto-diff/change_impact.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ void change_impactt::output_change_impact(
const unsigned mod_flags=
c_entry==c_i.end() ? SAME : c_entry->second;

char prefix;
char prefix = ' ';
// syntactic changes are preferred over data/control-dependence
// modifications
if(mod_flags==SAME)
Expand Down Expand Up @@ -639,7 +639,7 @@ void change_impactt::output_change_impact(
const unsigned mod_flags=
c_entry==n_c_i.end() ? SAME : c_entry->second;

char prefix;
char prefix = ' ';
// syntactic changes are preferred over data/control-dependence
// modifications
if(mod_flags==SAME)
Expand Down Expand Up @@ -691,7 +691,7 @@ void change_impactt::output_change_impact(
const unsigned old_mod_flags=
o_c_entry==o_c_i.end() ? SAME : o_c_entry->second;

char prefix;
char prefix = ' ';
// syntactic changes are preferred over data/control-dependence
// modifications
if(old_mod_flags==SAME)
Expand Down
2 changes: 1 addition & 1 deletion src/goto-programs/remove_const_function_pointers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ bool remove_const_function_pointerst::try_resolve_expression(
exprt simplified_expr=simplify_expr(expr, ns);
bool resolved;
expressionst resolved_expressions;
bool is_resolved_expression_const;
bool is_resolved_expression_const = false;
if(simplified_expr.id()==ID_index)
{
const index_exprt &index_expr=to_index_expr(simplified_expr);
Expand Down