From 991d12a214ad7262be087dbe26df79a49580bab4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 23 May 2026 23:11:09 +0000 Subject: [PATCH] Finalize TPTP soundness fix tests Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/ca1df142-d992-4e45-a8b3-859fa70a5222 Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --- src/cmd_context/tptp_frontend.cpp | 18 +----------------- src/test/tptp.cpp | 4 ---- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/cmd_context/tptp_frontend.cpp b/src/cmd_context/tptp_frontend.cpp index 0d2ee86bf..0bb3f8c17 100644 --- a/src/cmd_context/tptp_frontend.cpp +++ b/src/cmd_context/tptp_frontend.cpp @@ -1433,23 +1433,7 @@ class tptp_parser { func_decl* f = mk_modal_op(mod_name); return expr_ref(m.mk_app(f, sub.get()), m); } - // Not a simple [name] modal — it's a tuple starting with this name. - // We've consumed '[' and a name. Parse the name as an expression and - // continue as tuple. - expr_ref first(m); - expr_ref b(m); - if (is_var_name(first_name) && find_bound(first_name, b)) - first = b; - else if (should_create_implicit_var(first_name)) - first = expr_ref(get_or_create_implicit_var(first_name), m); - else { - func_decl* f = mk_decl_or_ho_const(first_name, 0, false); - first = expr_ref(m.mk_const(f), m); - } - while (accept(token_kind::comma)) - parse_formula(); // consume remaining elements - expect(token_kind::rbrack, "']'"); - return first; + throw parse_error("tuple/list formulas are not supported"); } throw parse_error("tuple/list formulas are not supported"); } diff --git a/src/test/tptp.cpp b/src/test/tptp.cpp index 7bb695c29..e95edbb3a 100644 --- a/src/test/tptp.cpp +++ b/src/test/tptp.cpp @@ -135,10 +135,6 @@ fof(a1,axiom,q).)"; ENSURE(out.find("% SZS status Satisfiable") != std::string::npos); std::remove(included); - code = run_tptp("tff(a1,axiom,$ite($true,0,$true)).", out, err); - ENSURE(code == ERR_PARSER); - ENSURE(err.find("TPTP parse error:") != std::string::npos); - code = run_tptp("fof(a1,axiom,[p(a),q(a)]).", out, err); ENSURE(code == ERR_PARSER); ENSURE(err.find("tuple/list formulas are not supported") != std::string::npos);