Skip to content

Commit eeb52fe

Browse files
Natasha Yogananda Jeppudanielsn
Natasha Yogananda Jeppu
authored andcommitted
Extend sat_hardnesst struct to keep track of the actual clauses, not just number of clauses
Currently, solver hardness tracks number of clauses and not the actual clauses for an instruction. This mapping will help identfy code hotspots based on which of the clauses belong to the SAT core. This commit extends the sat_hardnesst structure to include mapping between clauses and ssa expression.
1 parent 7c016a7 commit eeb52fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/solvers/solver_hardness.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ struct solver_hardnesst
5050
size_t clauses = 0;
5151
size_t literals = 0;
5252
std::unordered_set<size_t> variables = {};
53+
std::vector<std::vector<int>> clause_set = {};
5354

5455
sat_hardnesst &operator+=(const sat_hardnesst &other);
5556
};

0 commit comments

Comments
 (0)