-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Solvers can inform us that they cache constants by setting the flag `caches_consts = true` in their mappings. This should avoid having a `Map.find_opt` everytime we call `make_symbol`. Concretely `caches_consts = true` is when we have: `assert(ty1 = ty2) => M.eq (M.const "x" ty1) (M.const "x" ty2)` is sat. Currently the mappings that behave like this are only Z3
- Loading branch information
Showing
6 changed files
with
217 additions
and
206 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 |
---|---|---|
|
@@ -34,6 +34,8 @@ module Nop = struct | |
|
||
type func_decl = unit | ||
|
||
let caches_consts = false | ||
|
||
let true_ = () | ||
|
||
let false_ = () | ||
|
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 |
---|---|---|
|
@@ -39,6 +39,8 @@ module type M = sig | |
|
||
type func_decl | ||
|
||
val caches_consts : bool | ||
|
||
val true_ : term | ||
|
||
val false_ : term | ||
|
Oops, something went wrong.