Skip to content

Commit

Permalink
Clean up commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschrammel committed Jul 9, 2018
1 parent 15f44c7 commit 1abbf1e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/goto-instrument/cover_instrument_mcdc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,6 @@ void cover_mcdc_instrumentert::instrument(
std::string comment_t = description + " `" + p_string + "' true";
const irep_idt function = i_it->function;
goto_program.insert_before_swap(i_it);
// i_it->make_assertion(p);
i_it->make_assertion(not_exprt(p));
i_it->source_location = source_location;
i_it->source_location.set_comment(comment_t);
Expand All @@ -690,7 +689,6 @@ void cover_mcdc_instrumentert::instrument(

std::string comment_f = description + " `" + p_string + "' false";
goto_program.insert_before_swap(i_it);
// i_it->make_assertion(not_exprt(p));
i_it->make_assertion(p);
i_it->source_location = source_location;
i_it->source_location.set_comment(comment_f);
Expand All @@ -701,7 +699,6 @@ void cover_mcdc_instrumentert::instrument(
}

std::set<exprt> controlling;
// controlling=collect_mcdc_controlling(decisions);
controlling = collect_mcdc_controlling_nested(decisions);
remove_repetition(controlling);
// for now, we restrict to the case of a single ''decision'';
Expand All @@ -721,7 +718,6 @@ void cover_mcdc_instrumentert::instrument(
const irep_idt function = i_it->function;
goto_program.insert_before_swap(i_it);
i_it->make_assertion(not_exprt(p));
// i_it->make_assertion(p);
i_it->source_location = source_location;
i_it->source_location.set_comment(description);
i_it->source_location.set(ID_coverage_criterion, coverage_criterion);
Expand Down

0 comments on commit 1abbf1e

Please sign in to comment.