From d938b32fc713165ef2ed58b3728321560cd539ef Mon Sep 17 00:00:00 2001 From: ework-agent Date: Tue, 20 Oct 2026 21:40:40 +0800 Subject: [PATCH] fix(verif): emit str.substr, not str.extract - cvc5 rejects the latter The Seq facade emitted (str.extract s i j); cvc5's SMT-LIB parser only knows str.substr, so every query touching the String#slice translation died in InputParser.nextCommand and the harness catch turned that into a silent skip. Since the #3935 clip-window rework made the truncation slice offsets symbolic, the bug3691 oscillation harness has been solver-dead on master - coverage lost with no red signal. Renamed to str.substr (also valid z3 syntax). Full verif suite: 15/15 pass, 0 skipped (was 14/15 with 1 silent skip). --- verif/terms.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verif/terms.ts b/verif/terms.ts index d337a7643c..060f435534 100644 --- a/verif/terms.ts +++ b/verif/terms.ts @@ -358,7 +358,7 @@ function bindMethods(ctx: Context): void { return (this.ctx ?? ctx).app1("str.len", this, "Int"); }, at(i) { return (this.ctx ?? ctx).app2("str.at", this, i, "String"); }, - extract(off, len) { return (this.ctx ?? ctx).app3("str.extract", this, off, len, "String"); }, + extract(off, len) { return (this.ctx ?? ctx).app3("str.substr", this, off, len, "String"); }, indexOf(s, from) { const c = this.ctx ?? ctx; const av = typeof this.c === "string" ? this.c : undefined;