8000 Datatype constructors aren't visible · Issue #5486 · Z3Prover/z3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Datatype constructors aren't visible #5486
Closed
@LeventErkok

Description

@LeventErkok

This script:

(set-logic ALL)

(declare-datatypes ((Pair 2)) ((par (X Y) ((pair (first X) (second Y))))))

; Uncomment the following line and it works!
; (define-fun x () (Pair Bool Bool) (pair true true))

(assert (= (first (pair true true))  true))

Causes z3 to say:

(error "line 8 column 33: unknown constant pair (Bool Bool) ")

Interestingly, if you uncomment the 6th line with define-fun, it goes through without any complaint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0