optimize_from_file method

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

\brief Parse an SMT-LIB2 file 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 - path to file containing SMT2 specification.

\sa Z3_optimize_from_string \sa Z3_optimize_to_string

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

Implementation

void optimize_from_file(
  Z3_context c,
  Z3_optimize o,
  Z3_string s,
) {
  return _optimize_from_file(
    c,
    o,
    s,
  );
}