MCPcopy Create free account
hub / github.com/Z3Prover/z3 / parseSMTLIB2File

Method parseSMTLIB2File

src/api/java/Context.java:3031–3046  ·  view source on GitHub ↗

Parse the given file using the SMT-LIB2 parser. @see #parseSMTLIB2String

(String fileName, Symbol[] sortNames,
            Sort[] sorts, Symbol[] declNames, FuncDecl<?>[] decls)

Source from the content-addressed store, hash-verified

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.

Callers 1

smt2FileTestMethod · 0.95

Calls 4

nCtxMethod · 0.95
ToBoolExprArrayMethod · 0.95
arrayLengthMethod · 0.80
arrayToNativeMethod · 0.80

Tested by

no test coverage detected