Skip to content

Commit f88c837

Browse files
committed
Fixing bug related to non-dup-ed ptr
1 parent df54479 commit f88c837

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/counter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ RetState Counter::backtrack() {
16911691
cout << endl;
16921692
#endif
16931693
if (weighted()) {
1694-
FF cnt = decisions.top().total_model_count();
1694+
FF cnt = decisions.top().total_model_count()->dup();
16951695
all_vars_in_comp(comp_manager->get_super_comp(decisions.top()), it) {
16961696
if (val(*it) != X_TRI && var(*it).decision_level < dec_level()) {
16971697
Lit l(*it, val(*it) == T_TRI);
@@ -1710,9 +1710,9 @@ RetState Counter::backtrack() {
17101710
}
17111711

17121712
#ifdef VERBOSE_DEBUG
1713-
const auto parent_count_before = (decisions.end() - 2)->total_model_count();
1714-
const auto parent_count_before_left = (decisions.end() - 2)->left_model_count();
1715-
const auto parent_count_before_right = (decisions.end() - 2)->right_model_count();
1713+
const auto parent_count_before = (decisions.end() - 2)->total_model_count()->dup();
1714+
const auto parent_count_before_left = (decisions.end() - 2)->left_model_count()->dup();
1715+
const auto parent_count_before_right = (decisions.end() - 2)->right_model_count()->dup();
17161716
#endif
17171717
(decisions.end() - 2)->include_solution(decisions.top().total_model_count());
17181718
decisions.pop_back();

0 commit comments

Comments
 (0)