goal_assert method

void goal_assert(
  1. Z3_context c,
  2. Z3_goal g,
  3. Z3_ast a
)

\brief Add a new formula \c a to the given goal. The formula is split according to the following procedure that is applied until a fixed-point: Conjunctions are split into separate formulas. Negations are distributed over disjunctions, resulting in separate formulas. If the goal is \c false, adding new formulas is a no-op. If the formula \c a is \c true, then nothing is added. If the formula \c a is \c false, then the entire goal is replaced by the formula \c false.

def_API('Z3_goal_assert', VOID, (_in(CONTEXT), _in(GOAL), _in(AST)))

Implementation

void goal_assert(
  Z3_context c,
  Z3_goal g,
  Z3_ast a,
) {
  return _goal_assert(
    c,
    g,
    a,
  );
}