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

Method simplify

src/api/java/Goal.java:183–192  ·  view source on GitHub ↗

Simplifies the goal. Remarks: Essentially invokes the `simplify' tactic on the goal.

()

Source from the content-addressed store, hash-verified

181 * on the goal.
182 **/
183 public Goal simplify()
184 {
185 Tactic t = getContext().mkTactic("simplify");
186 ApplyResult res = t.apply(this);
187
188 if (res.getNumSubgoals() == 0)
189 throw new Z3Exception("No subgoals");
190 else
191 return res.getSubgoals()[0];
192 }
193
194 /**
195 * Simplifies the goal.

Callers

nothing calls this directly

Calls 5

applyMethod · 0.95
getNumSubgoalsMethod · 0.95
getSubgoalsMethod · 0.95
mkTacticMethod · 0.80
getContextMethod · 0.80

Tested by

no test coverage detected