Parse the given file using the SMT-LIB2 parser. @see #parseSMTLIB2String
(String fileName, Symbol[] sortNames,
Sort[] sorts, Symbol[] declNames, FuncDecl<?>[] decls)
| 3029 | * @see #parseSMTLIB2String |
| 3030 | **/ |
| 3031 | public BoolExpr[] parseSMTLIB2File(String fileName, Symbol[] sortNames, |
| 3032 | Sort[] sorts, Symbol[] declNames, FuncDecl<?>[] decls) |
| 3033 | { |
| 3034 | int csn = Symbol.arrayLength(sortNames); |
| 3035 | int cs = Sort.arrayLength(sorts); |
| 3036 | int cdn = Symbol.arrayLength(declNames); |
| 3037 | int cd = AST.arrayLength(decls); |
| 3038 | if (csn != cs || cdn != cd) |
| 3039 | throw new Z3Exception("Argument size mismatch"); |
| 3040 | ASTVector v = new ASTVector(this, Native.parseSmtlib2File(nCtx(), |
| 3041 | fileName, AST.arrayLength(sorts), |
| 3042 | Symbol.arrayToNative(sortNames), AST.arrayToNative(sorts), |
| 3043 | AST.arrayLength(decls), Symbol.arrayToNative(declNames), |
| 3044 | AST.arrayToNative(decls))); |
| 3045 | return v.ToBoolExprArray(); |
| 3046 | } |
| 3047 | |
| 3048 | /** |
| 3049 | * Creates a new Goal. |
no test coverage detected