Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Get error with regexp-replace* when running test #1

@philnguyen

Description

@philnguyen

When I try running a test case directly, e.g. one in test-integers.rkt:

(smt:with-context
    (smt:new-context)
    (smt:declare-fun a () Int)
    (smt:assert (>/s a 10))
    (smt:assert (</s a 20))
    (check-eq? (smt:check-sat) 'sat)
    (define a-eval (smt:eval a))
    (check-true (and (> a-eval 10) (< a-eval 20)))
    (smt:assert (=/s (+/s a 5) 14))
    (check-eq? (smt:check-sat) 'unsat))

I get this error:

; regexp-replace*: contract violation
;   expected: (or/c string? bytes?)
;   given: 'mk-config
;   argument position: 2nd
;   other arguments...:
;    #rx"-"
;    "_"

This is Racket 6.5 and Z3 4.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions