forked from OCamlPro/alt-ergo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
During model extraction, we only should store accesses to arrays whose the representative elements are names. Indeed, if the representative is not a name, this array cannot appear in a model. The embedded case is correctly managed because we generate fresh names that will become the representative elements.
- Loading branch information
Showing
3 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
unknown | ||
( | ||
(define-fun a () (Array Int Int) (as @a3 (Array Int Int))) | ||
(define-fun b () (Array Int Int) (as @a2 (Array Int Int))) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(set-option :produce-models true) | ||
(set-logic ALL) | ||
(declare-const a (Array Int Int)) | ||
(declare-const b (Array Int Int)) | ||
(assert (= (store a 0 0) (store b 0 0))) | ||
(check-sat) | ||
(get-model) |