Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Remove duplicate empty set representations in arrays encoding #1100

Closed
rodrigo7491 opened this issue Nov 15, 2021 · 0 comments · Fixed by #1158
Closed

[FEATURE] Remove duplicate empty set representations in arrays encoding #1100

rodrigo7491 opened this issue Nov 15, 2021 · 0 comments · Fixed by #1158
Assignees
Labels
Farrays Feature: New SMT encoding with arrays

Comments

@rodrigo7491
Copy link
Collaborator

In the initial version of the arrays encoding, every set declaration is followed by an equality to a new empty set, as shown below.

(declare-const set1 (Array some_sort Bool))
(assert (= set1 ((as const (Array some_sort Bool)) false)))

As suggested by Nikolaj Bjorner in an e-mail exchange, we should define constant empty sets for every type used in the spec and refer to them instead, as shown below for integers.

(define-const emptyIntSet (Array Int Bool) ((as const (Array Int Bool)) false))
(declare-const set1 (Array Int Bool))
(assert (= set1 emptyIntSet))
@rodrigo7491 rodrigo7491 added the Farrays Feature: New SMT encoding with arrays label Nov 15, 2021
@rodrigo7491 rodrigo7491 self-assigned this Nov 15, 2021
@shonfeder shonfeder added this to the Arrays Encoding milestone Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Farrays Feature: New SMT encoding with arrays
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants