Skip to content

Commit

Permalink
Fix polarity bug in miniscoping.
Browse files Browse the repository at this point in the history
Fixes #95.
  • Loading branch information
mpreiner committed May 20, 2020
1 parent 4df788f commit 59c9ade
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/preprocess/btorminiscope.c
Expand Up @@ -127,6 +127,7 @@ miniscope (Btor *btor,
&& btor_hashint_map_get (pushed_to, real_cur->id))
|| real_cur->kind == quant->kind)
{
if (btor_node_is_inverted (cur)) cur_pol *= -1;
cur = real_cur->e[1];
cur_parent = btor_node_set_tag (real_cur, 1);
continue;
Expand Down Expand Up @@ -356,7 +357,9 @@ btor_miniscope_node (Btor *btor, BtorNode *root)
{
d->as_int = 1;
if (btor_node_is_quantifier (cur))
{
miniscope (btor, cur, pushed_to, rev_pushed_to);
}
}
}

Expand Down

0 comments on commit 59c9ade

Please sign in to comment.