Fixes #6643. The STRINGS_CTN_DECOMPOSE inference is always a conflict
but we sometimes sent it as an inference. To make sure that the
inference manager actually recognizes the inference as a conflict, this
commit ensures that the conclusion is always false and modifies the
explanation accordingly.
if (d_state.areEqual(conc, d_false))
{
// we are in conflict
- d_im.sendInference(in.d_exp, conc, InferenceId::STRINGS_CTN_DECOMPOSE);
+ d_im.addToExplanation(conc, d_false, in.d_exp);
+ d_im.sendInference(
+ in.d_exp, d_false, InferenceId::STRINGS_CTN_DECOMPOSE);
Assert(d_state.isInConflict());
return;
}
regress0/strings/issue6520.smt2
regress0/strings/issue6560-indexof-reduction.smt2
regress0/strings/issue6604-re-elim.smt2
+ regress0/strings/issue6643-ctn-decompose-conflict.smt2
regress0/strings/itos-entail.smt2
regress0/strings/large-model.smt2
regress0/strings/leadingzero001.smt2
--- /dev/null
+; COMMAND-LINE: --strings-exp
+(set-logic QF_SLIA)
+(declare-fun y () String)
+(declare-fun z () String)
+(assert (not (= (str.contains y (str.replace "A" "" z)) (str.contains y "A"))))
+(set-info :status sat)
+(check-sat)