Skip to content

Instantly share code, notes, and snippets.

@regehr
Created November 28, 2018 00:56
Show Gist options
  • Save regehr/24b7f9cfd79596ec600c7d30f8586948 to your computer and use it in GitHub Desktop.
Save regehr/24b7f9cfd79596ec600c7d30f8586948 to your computer and use it in GitHub Desktop.
(define-fun div3 ((i Int)) Bool
(= (mod i 3) 0)
)
(define-fun-rec sumit ((i Int)) Int
(ite (< i 10)
i
(+ (mod i 10) (sumit (div i 10))))
)
(declare-const x Int)
(assert (> x 0))
(assert (not (= (div3 x) (div3 (sumit x)))))
(check-sat)
(get-model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment