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.
Restore record printing functionality (OCamlPro#793)
This got lost somewhere along the way as the conditions for model generation changed. Note that it is a bit weird that the accumulation of record accesses happens in `models.ml` while the accumulation of array accesses happens in `uf.ml`. We should pick a single one for both (probably in `models` but even better would be to expose the appropriate APIs so that each theory can build its own model values), but for now this patch should wrangle the `if`s properly and restore the existing functionality.
- Loading branch information
1 parent
0d3a4e2
commit 3fa9b54
Showing
5 changed files
with
48 additions
and
2 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
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,5 @@ | ||
|
||
unknown | ||
( | ||
(define-fun a () Pair (pair 5 0)) | ||
) |
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,8 @@ | ||
(set-logic ALL) | ||
(set-option :produce-models true) | ||
(declare-datatype Pair | ||
((pair (first Int) (second Int)))) | ||
(declare-const a Pair) | ||
(assert (= (first a) 5)) | ||
(check-sat) | ||
(get-model) |