Node len = utils::mkNLength(n[0]);
Node lem = nm->mkNode(AND,
nm->mkNode(GEQ, n, nm->mkConst(Rational(-1))),
- nm->mkNode(LT, n, len));
+ nm->mkNode(LEQ, n, len));
+ Trace("strings-lemma") << "Strings::Lemma IDOF range : " << lem
+ << std::endl;
d_out->lemma(lem);
}
}
regress0/strings/indexof-sym-simp.smt2
regress0/strings/issue1189.smt2
regress0/strings/issue2958.smt2
+ regress0/strings/issue3497.smt2
regress0/strings/itos-entail.smt2
regress0/strings/leadingzero001.smt2
regress0/strings/loop001.smt2
--- /dev/null
+(set-info :smt-lib-version 2.5)
+(set-logic QF_SLIA)
+(set-info :status sat)
+(set-option :strings-exp true)
+(declare-fun x () String)
+(declare-fun y () String)
+(assert (= (str.indexof x y 1) (str.len x)))
+(assert (str.contains x y))
+(check-sat)