Skip to content

Commit

Permalink
count gcd conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Apr 26, 2023
1 parent ace6e8e commit 59bc070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/smt/theory_arith_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,6 @@ namespace smt {
m_util(m),
m_arith_eq_solver(m),
m_arith_eq_adapter(*this, m_util),
m_asserted_qhead(0),
m_row_vars_top(0),
m_to_patch(1024),
m_blands_rule(false),
Expand Down
2 changes: 2 additions & 0 deletions src/smt/theory_arith_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ namespace smt {
if (!(consts / gcds).is_int()) {
TRACE("gcd_test", tout << "row failed the GCD test:\n"; display_row_info(tout, r););
antecedents ante(*this);
m_stats.m_gcd_conflicts++;
collect_fixed_var_justifications(r, ante);
context & ctx = get_context();
ctx.set_conflict(
Expand Down Expand Up @@ -833,6 +834,7 @@ namespace smt {
numeral u1 = floor(u/gcds);

if (u1 < l1) {
m_stats.m_gcd_conflicts++;
TRACE("gcd_test", tout << "row failed the extended GCD test:\n"; display_row_info(tout, r););
collect_fixed_var_justifications(r, ante);
context & ctx = get_context();
Expand Down

0 comments on commit 59bc070

Please sign in to comment.