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

Method update

src/api/java/Expr.java:127–135  ·  view source on GitHub ↗

Update the arguments of the expression using the arguments args The number of new arguments should coincide with the current number of arguments. @param args arguments @throws Z3Exception on error

(Expr<?>[] args)

Source from the content-addressed store, hash-verified

125 * @throws Z3Exception on error
126 **/
127 public Expr<R> update(Expr<?>[] args)
128 {
129 getContext().checkContextMatch(args);
130 if (isApp() && args.length != getNumArgs()) {
131 throw new Z3Exception("Number of arguments does not match");
132 }
133 return (Expr<R>) Expr.create(getContext(), Native.updateTerm(getContext().nCtx(), getNativeObject(),
134 args.length, Expr.arrayToNative(args)));
135 }
136
137 /**
138 * Substitute every occurrence of {@code from[i]} in the expression

Callers

nothing calls this directly

Calls 8

getNumArgsMethod · 0.95
createMethod · 0.95
checkContextMatchMethod · 0.80
getContextMethod · 0.80
nCtxMethod · 0.80
getNativeObjectMethod · 0.80
arrayToNativeMethod · 0.80
isAppMethod · 0.65

Tested by

no test coverage detected