optimize_from_string method

void optimize_from_string(
  1. Z3_context c,
  2. Z3_optimize o,
  3. Z3_string s
)

\brief Parse an SMT-LIB2 string with assertions, soft constraints and optimization objectives. Add the parsed constraints and objectives to the optimization context.

\param c - context. \param o - optimize context. \param s - string containing SMT2 specification.

\sa Z3_optimize_from_file \sa Z3_optimize_to_string

def_API('Z3_optimize_from_string', VOID, (_in(CONTEXT), _in(OPTIMIZE), _in(STRING)))

Implementation

void optimize_from_string(
  Z3_context c,
  Z3_optimize o,
  Z3_string s,
) {
  return _optimize_from_string(
    c,
    o,
    s,
  );
}