Node conc =
nm->mkNode(STRING_STRCTN, pol ? nr[1] : onr, pol ? onr : nr[1]);
conc = Rewriter::rewrite(conc);
+ conc = conc.negate();
bool do_infer = false;
- if (conc.getKind() == EQUAL)
+ bool pol = conc.getKind() != NOT;
+ Node lit = pol ? conc : conc[0];
+ if (lit.getKind() == EQUAL)
{
- do_infer = !areDisequal(conc[0], conc[1]);
+ do_infer = pol ? !areEqual(lit[0], lit[1])
+ : !areDisequal(lit[0], lit[1]);
}
else
{
- do_infer = !areEqual(conc, d_false);
+ do_infer = !areEqual(lit, pol ? d_true : d_false);
}
if (do_infer)
{
- conc = conc.negate();
std::vector<Node> exp_c;
exp_c.insert(exp_c.end(), in.d_exp.begin(), in.d_exp.end());
Node ofrom = d_extf_info_tmp[nr[0]].d_ctn_from[opol][i];
regress1/strings/strings-lt-simple.smt2
regress1/strings/strip-endpt-sound.smt2
regress1/strings/substr001.smt2
+ regress1/strings/timeout-no-resp.smt2
regress1/strings/type002.smt2
regress1/strings/type003.smt2
regress1/strings/username_checker_min.smt2
regress1/strings/strings-lt-simple.smt2 \
regress1/strings/strip-endpt-sound.smt2 \
regress1/strings/substr001.smt2 \
+ regress1/strings/timeout-no-resp.smt2 \
regress1/strings/type002.smt2 \
regress1/strings/type003.smt2 \
regress1/strings/username_checker_min.smt2 \
--- /dev/null
+(set-logic SLIA)
+(set-info :status sat)
+(set-option :strings-exp true)
+(declare-const x String)
+(declare-const y String)
+(assert (not (= (str.replace "A" (str.replace x "A" y) x) (str.replace "A" x (str.replace x y x)))))
+(check-sat)
\ No newline at end of file