| 91 | } |
| 92 | |
| 93 | unsigned Z3_API Z3_optimize_assert_soft(Z3_context c, Z3_optimize o, Z3_ast a, Z3_string weight, Z3_symbol id) { |
| 94 | Z3_TRY; |
| 95 | LOG_Z3_optimize_assert_soft(c, o, a, weight, id); |
| 96 | RESET_ERROR_CODE(); |
| 97 | CHECK_FORMULA(a,0); |
| 98 | rational w(weight); |
| 99 | return to_optimize_ptr(o)->add_soft_constraint(to_expr(a), w, to_symbol(id)); |
| 100 | Z3_CATCH_RETURN(0); |
| 101 | } |
| 102 | |
| 103 | unsigned Z3_API Z3_optimize_maximize(Z3_context c, Z3_optimize o, Z3_ast t) { |
| 104 | Z3_TRY; |
no test coverage detected