Skip to content

Commit

Permalink
Simplify dec_solve
Browse files Browse the repository at this point in the history
Result is not modified, and the last return is never reached.
  • Loading branch information
romainbrenguier committed Apr 23, 2018
1 parent a0500f6 commit 13e87a9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/solvers/prop/prop_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,16 +477,12 @@ decision_proceduret::resultt prop_conv_solvert::dec_solve()

statistics() << "Solving with " << prop.solver_text() << eom;

propt::resultt result=prop.prop_solve();

switch(result)
switch(prop.prop_solve())
{
case propt::resultt::P_SATISFIABLE: return resultt::D_SATISFIABLE;
case propt::resultt::P_UNSATISFIABLE: return resultt::D_UNSATISFIABLE;
default: return resultt::D_ERROR;
}

return resultt::D_ERROR;
}

exprt prop_conv_solvert::get(const exprt &expr) const
Expand Down

0 comments on commit 13e87a9

Please sign in to comment.