mirror of
https://github.com/Veridise/Picus.git
synced 2026-04-19 03:00:11 -04:00
small triggers
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#lang rosette
|
||||
(require rosette/solver/smt/boolector)
|
||||
(when (boolector-available?)
|
||||
(define use-boolector #t) ; use boolector or not?
|
||||
(when (and use-boolector (boolector-available?))
|
||||
; (current-solver (boolector #:logic 'QF_BV))
|
||||
(current-solver (boolector))
|
||||
)
|
||||
(printf "# using solver: ~a\n" (current-solver))
|
||||
@@ -17,9 +19,9 @@
|
||||
|
||||
; set the example
|
||||
; (define json-path "./examples/test1a.json") ; not equivalent
|
||||
(define json-path "./examples/test1.json") ; equivalent
|
||||
(define r1cs-path "./examples/test1.r1cs")
|
||||
(define sym-path "./examples/test1.sym")
|
||||
(define json-path "./examples/test2.json") ; equivalent
|
||||
(define r1cs-path "./examples/test2.r1cs")
|
||||
(define sym-path "./examples/test2.sym")
|
||||
|
||||
; =======================
|
||||
; load and interpret r1cs
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#lang rosette
|
||||
(require rosette/solver/smt/boolector)
|
||||
(when (boolector-available?)
|
||||
(define use-boolector #f) ; use boolector or not?
|
||||
(when (and use-boolector (boolector-available?))
|
||||
; (current-solver (boolector #:logic 'QF_BV))
|
||||
(current-solver (boolector))
|
||||
)
|
||||
(printf "# using solver: ~a\n" (current-solver))
|
||||
@@ -12,8 +14,8 @@
|
||||
(require "./picus/r1cs.rkt")
|
||||
(require "./picus/r1cs-interpreter.rkt")
|
||||
|
||||
;(define r0 (read-r1cs "./examples/test0.r1cs"))
|
||||
(define r0 (read-r1cs "./examples/test2.r1cs"))
|
||||
(define r0 (read-r1cs "./examples/test0.r1cs"))
|
||||
;(define r0 (read-r1cs "./examples/test2.r1cs"))
|
||||
;(define r0 (read-r1cs "./examples/bigmod_5_2.r1cs"))
|
||||
;(define r0 (read-r1cs "./examples/bigmod_10_2.r1cs"))
|
||||
;(define r0 (read-r1cs "./examples/bigmod_86_3.r1cs"))
|
||||
|
||||
Reference in New Issue
Block a user