Created
July 10, 2017 18:12
-
-
Save Sumith1896/52c96870ef2c53f4c2d669196da81881 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 num-asserts (length (asserts))) | |
(printf "Number of asserts made ~a~%" num-asserts) | |
; (define old-asserts (asserts)) | |
; (clear-asserts!) | |
; (displayln "Printing time for filtering out clauses") | |
; (for ([asrt old-asserts]) | |
; (when (! (sat? (solve (assert (not asrt))))) | |
; (displayln asrt))) | |
; (define new-asserts | |
; (time (filter (lambda (a) (sat? (solve (assert (not a))))) | |
; old-asserts))) | |
; (printf "Num old asserts: ~a~%Num new asserts: ~a~%" (length old-asserts) (length new-asserts)) | |
; (for-each (lambda (a) (assert a)) new-asserts) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment