Skip to content

Commit

Permalink
Check if model_converter is non-null before initializing values in sa…
Browse files Browse the repository at this point in the history
…t_tactic
  • Loading branch information
NikolajBjorner committed Sep 23, 2024
1 parent 5a6dc18 commit 0604d23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sat/tactic/sat_tactic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class sat_tactic : public tactic {
}

void initialize_values(goal_ref const& g, atom2bool_var& map) {
g->mc()->convert_initialize_value(m_var2value);
if (g->mc())
g->mc()->convert_initialize_value(m_var2value);
for (auto & [var, value] : m_var2value) {
if (!m.is_bool(var))
continue;
Expand Down

0 comments on commit 0604d23

Please sign in to comment.