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)
| 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 |
nothing calls this directly
no test coverage detected