Closed Heaven2024 closed 4 months ago
to_real should really only be used on integer arguments. https://smt-lib.org/theories-Reals_Ints.shtml Z3 makes a choice to add a "to_int" conversion to arguments that are real when the argument should be int.
C:\z3\build>z3 7272.smt2 /v:10 /tr:asserted_formulas /tr:rewriter /tr:th_rewriter_step smtlib2_compliant=true success (error "line 2 column 36: Sort mismatch at argument #2 for function (declare-fun * (Int Int) Int) supplied sort is Real")
Hi! Z3 [version 4.13.1 - 64 bit] ubuntu:22.04
but for z3 :