Skip to content

Commit ba13c94

Browse files
Use auto for iterator types
1 parent 9179571 commit ba13c94

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/solvers/prop/prop_conv.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool prop_conv_solvert::literal(const exprt &expr, literalt &dest) const
5454

5555
literalt prop_conv_solvert::get_literal(const irep_idt &identifier)
5656
{
57-
std::pair<symbolst::iterator, bool> result=
57+
auto result =
5858
symbols.insert(std::pair<irep_idt, literalt>(identifier, literalt()));
5959

6060
if(!result.second)
@@ -172,10 +172,9 @@ literalt prop_conv_solvert::convert(const exprt &expr)
172172
prop.set_frozen(literal);
173173
return literal;
174174
}
175-
// check cache first
176175

177-
std::pair<cachet::iterator, bool> result=
178-
cache.insert(std::pair<exprt, literalt>(expr, literalt()));
176+
// check cache first
177+
auto result = cache.insert({expr, literalt()});
179178

180179
if(!result.second)
181180
return result.first->second;

0 commit comments

Comments
 (0)