Fixes #8722.
if (!pol)
{
atomu = nm->mkNode(LT, atom[0], atom[1]);
+ atomu = rewrite(atomu);
originLit[atomu] = l;
}
else
{
atomu = l;
+ atomu = rewrite(atomu);
originLit[l] = l;
}
- atomu = rewrite(atomu);
Trace("learned-rewrite-ll")
<< "Add atom (rewritten): " << atomu << std::endl;
binfer.add(atomu);
regress0/strings/issue8346-idof-max.smt2
regress0/strings/issue8481.smt2
regress0/strings/issue8481-2.smt2
+ regress0/strings/issue8722-learned-rew.smt2
regress0/strings/itos-entail.smt2
regress0/strings/large-model.smt2
regress0/strings/leadingzero001.smt2
--- /dev/null
+; COMMAND-LINE: --learned-rewrite
+; EXPECT: sat
+(set-logic ALL)
+(declare-const a String)
+(assert (str.is_digit a))
+(check-sat)