We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43b95ca commit 704ed4fCopy full SHA for 704ed4f
src/solvers/cvc/cvc_conv.cpp
@@ -1619,17 +1619,15 @@ void cvc_convt::convert_type(const typet &type)
1619
const struct_typet::componentst &components=
1620
struct_type.components();
1621
1622
- for(struct_typet::componentst::const_iterator
1623
- it=components.begin();
1624
- it!=components.end();
1625
- it++)
+ for(struct_typet::componentt component : components)
1626
{
1627
- if(it!=components.begin())
+ if(component!=components.front())
1628
out << ",";
+
1629
out << " ";
1630
- out << it->get(ID_name);
+ out << component.get_name();
1631
out << ": ";
1632
- convert_type(it->type());
+ convert_type(component.type());
1633
}
1634
1635
out << " #]";
0 commit comments