Created
November 28, 2018 00:56
-
-
Save regehr/24b7f9cfd79596ec600c7d30f8586948 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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