Skip to content

Reserved keyword 'min' in *.smt files #1

Open
@Baranowski

Description

@Baranowski

It seems that Z3's SMT2.0 parser treats 'min' as a builtin symbol and so cannot process files created by hcc.

For example when I run:
z3 -smt2 -nw Simple.unjuggle_not.smt

I get:
(error "line 3 column 25: invalid declaration, builtin symbol min")
(error "line 13 column 41: invalid number of arguments to floating point operator")
(error "line 16 column 35: invalid number of arguments to floating point operator")
(error "line 18 column 35: invalid number of arguments to floating point operator")
(error "line 20 column 34: invalid number of arguments to floating point operator")
(error "line 22 column 34: invalid number of arguments to floating point operator")
(error "line 32 column 57: invalid number of arguments to floating point operator")
(error "line 34 column 46: invalid number of arguments to floating point operator")
(error "line 36 column 48: invalid number of arguments to floating point operator")
(error "line 38 column 47: invalid number of arguments to floating point operator")
(error "line 41 column 62: invalid number of arguments to floating point operator")
(error "line 53 column 36: invalid number of arguments to floating point operator")
(error "line 56 column 37: invalid number of arguments to floating point operator")
(error "line 57 column 35: invalid number of arguments to floating point operator")
(error "line 61 column 30: invalid number of arguments to floating point operator")
(error "line 62 column 30: invalid number of arguments to floating point operator")
(error "line 66 column 43: invalid number of arguments to floating point operator")
(error "line 67 column 56: invalid number of arguments to floating point operator")

I'm using Z3 v. 4.3.1.

I've created a quick fix at Baranowski@98addaf. Not making a pull request since there is probably a better way to deal with it.

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