Skip to content

Commit 806d4ab

Browse files
committed
Adjust spacing, line breaks to coding guidelines
Also added to comments to for loops that do not include increments in the loop header.
1 parent 91430c6 commit 806d4ab

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/analyses/cfg_dominators.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,10 @@ void cfg_dominators_templatet<P, T, post_dom>::output(std::ostream &out) const
221221
out << n << " post-dominated by ";
222222
else
223223
out << n << " dominated by ";
224-
for(typename target_sett::const_iterator d_it=node.second.dominators.begin();
225-
d_it!=node.second.dominators.end();)
224+
for(typename target_sett::const_iterator
225+
d_it=node.second.dominators.begin();
226+
d_it!=node.second.dominators.end();
227+
) // no d_it++
226228
{
227229
out << (*d_it)->location_number;
228230
if (++d_it!=node.second.dominators.end())

src/analyses/constant_propagator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ bool constant_propagator_domaint::valuest::merge(const valuest &src)
398398
for(replace_symbolt::expr_mapt::const_iterator
399399
it=replace_const.expr_map.begin();
400400
it!=replace_const.expr_map.end();
401-
)
401+
) // no it++
402402
{
403403
if(src.replace_const.expr_map.find(it->first) ==
404404
src.replace_const.expr_map.end())
@@ -459,19 +459,19 @@ bool constant_propagator_domaint::valuest::meet(const valuest &src)
459459
replace_symbolt::expr_mapt::iterator c_it=
460460
replace_const.expr_map.find(src_replace_pair.first);
461461

462-
if(c_it != replace_const.expr_map.end())
462+
if(c_it!=replace_const.expr_map.end())
463463
{
464464
if(c_it->second!=src_replace_pair.second)
465465
{
466466
set_to_bottom();
467-
changed = true;
467+
changed=true;
468468
break;
469469
}
470470
}
471471
else
472472
{
473473
set_to(src_replace_pair.first, src_replace_pair.second);
474-
changed = true;
474+
changed=true;
475475
}
476476
}
477477

src/analyses/custom_bitvector_analysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ void custom_bitvector_domaint::erase_blank_vectors(bitst &bits)
678678
{
679679
for(bitst::iterator a_it=bits.begin();
680680
a_it!=bits.end();
681-
)
681+
) // no a_it++
682682
{
683683
if(a_it->second==0)
684684
a_it=bits.erase(a_it);

0 commit comments

Comments
 (0)