3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-08 00:41:56 +00:00
z3/test_pb_max.smt2
copilot-swe-agent[bot] 016539cd61 Implement max PB constraints optimization feature
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
2025-09-19 21:27:53 +00:00

10 lines
No EOL
293 B
Text

(declare-fun x1 () Bool)
(declare-fun x2 () Bool)
(declare-fun y1 () Bool)
(declare-fun y2 () Bool)
; Create two PB maximize objectives - must be integer expressions
(maximize (+ (ite x1 2 0) (ite x2 1 0))) ; PB1: max = 3
(maximize (+ (ite y1 1 0) (ite y2 2 0))) ; PB2: max = 3
(check-sat)