{
for (size_t j = i + 1; j < nthTerms.size(); j++)
{
- Node x = nthTerms[i][0];
- Node y = nthTerms[j][0];
- Node n = nthTerms[i][1];
- Node m = nthTerms[j][1];
+ TNode x = nthTerms[i][0];
+ TNode y = nthTerms[j][0];
+
+ if (x.getType() != y.getType())
+ {
+ continue;
+ }
+
+ TNode n = nthTerms[i][1];
+ TNode m = nthTerms[j][1];
if (d_state.areEqual(n, m) && !d_state.areEqual(x, y)
&& !d_state.areDisequal(x, y))
{
regress0/seq/issue5665-invalid-model.smt2
regress0/seq/issue6337-seq.smt2
regress0/seq/len_simplify.smt2
+ regress0/seq/mixed-types-seq-nth.smt2
regress0/seq/nth-oob.smt2
regress0/seq/nth-unit.smt2
regress0/seq/nth-update.smt2
--- /dev/null
+; COMMAND-LINE: --seq-array=lazy -q
+
+(set-logic QF_UFSLIA)
+(declare-sort E 0)
+(declare-const s1 (Seq Int))
+(declare-const s2 (Seq Int))
+(declare-const s3 (Seq E))
+(declare-const s4 (Seq E))
+
+(declare-const i Int)
+
+(assert (distinct (seq.nth s1 i) (seq.nth s2 i)))
+(assert (distinct (seq.nth s3 i) (seq.nth s4 i)))
+
+(set-info :status sat)
+(check-sat)