-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmy.lisp
26 lines (20 loc) · 932 Bytes
/
my.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(bps-load-file (make-bps-path "ltms") "ltre" :action :compile)
(compile-ltre)
(bps-load-file (make-bps-path "ltms") "ltms" :action :compile)
(bps-load-file (make-bps-path "ltms") "cltms" :action :compile)
(bps-load-file (make-bps-path "ltms") "ltms-ex" :action :compile)
(test-explain)
(run-tests)
(bps-load-file (make-bps-path "ltms") "counterfactual" :action :compile)
;; pages 292-293 of BPS
(setq *ltms* (create-ltms "Simple"))
(setq x (tms-create-node *ltms* "x" :ASSUMPTIONP t) y (tms-create-node *ltms* "y") z (tms-create-node *ltms* "z") r (tms-create-node *ltms* "r"))
(add-formula *ltms* `(:OR ,x ,y))
(add-formula *ltms* `(:OR (:NOT ,y) ,z))
(add-formula *ltms* `(:OR (:NOT ,z) ,r))
(enable-assumption x :FALSE)
(explain-node r)
(bps-load-file (make-bps-path "ltms") "dds" :action :compile)
(Test-DD-search)
(bps-load-file (make-bps-path "ltms") "sudoku" :action :compile)
(solve-sudoku *easy-puzzle* :debugging t)