(: bad-mult (-> Real Real Real))
(define (bad-mult x y)
(if (= x 10417)
0
(* x y)))
(check-contract bad-mult)
(: bad-mult-prop (-> Real Real True))
(define (bad-mult-prop x y)
(= (bad-mult x y)
(* x y)))
(check-contract bad-mult-prop)
(verify-contract bad-mult-prop)
Rosette correctly identifies that this is buggy, but doesn't give us the right counter-example (seems like it is printing the output?)
With the following example:
Rosette correctly identifies that this is buggy, but doesn't give us the right counter-example (seems like it is printing the output?)