Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sumith1896/52c96870ef2c53f4c2d669196da81881 to your computer and use it in GitHub Desktop.
Save Sumith1896/52c96870ef2c53f4c2d669196da81881 to your computer and use it in GitHub Desktop.
(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