Skip to content

Allow const arrays with symbolic elements #762

@yav

Description

@yav

Consider the following specification fragment:

(declare-const x Int)                                                            
(assert (= (select ((as const (Array Int Int)) x) 0) 0)) 

This results in:

(error "Parse Error: test.cvc5:2.49: invalid argument 'x' for 'val', expected a value")

It would appear that CVC5 wants the values of the constant arrays to be a value, but x is not one. This works as expected in Z3.

This happens with version 1.2.0 of CVC5.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions