Skip to content

Commit

Permalink
Fix loop variable in flaw resolution logic in graph.cpp; iterate over…
Browse files Browse the repository at this point in the history
… resolvers instead of literals
  • Loading branch information
riccardodebenedictis committed Nov 6, 2024
1 parent 20bae8c commit 3e0beaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ namespace ratio
if (!get_sat().new_clause({!f.get_phi(), !rs[i], !rs[j]}))
throw riddle::unsolvable_exception();
// if exactly one of the resolvers is activated, the flaw is solved..
for (size_t i = 0; i < lits.size(); ++i)
for (size_t i = 0; i < rs.size(); ++i)
{
lits = rs;
lits[i] = !lits[i];
Expand Down

0 comments on commit 3e0beaf

Please sign in to comment.