-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/526-kanig-unused' into 'master'
Remove unused constants in SPARK VCs Issue: eng/spark/spark2014#526 See merge request eng/spark/why3!53
- Loading branch information
Showing
6 changed files
with
110 additions
and
79 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,76 @@ | ||
(** Why3 driver for CVC5 1.0.0 *) | ||
|
||
prelude ";; produced by cvc5.drv ;;" | ||
prelude "(set-logic ALL)" | ||
prelude "(set-info :smt-lib-version 2.6)" | ||
|
||
unknown "^(error \"Can't get-info :reason-unknown when the last result wasn't unknown!\")$" "(not unknown!)" | ||
|
||
outofmemory "cvc5 suffered a segfault" | ||
outofmemory "cvc5::internal::Minisat::OutOfMemoryException" | ||
|
||
steps "resource::resourceUnitsUsed = \\([0-9]+\\)" 1 | ||
|
||
theory BuiltIn | ||
meta "supports_smt_get_info_unknown_reason" "" | ||
end | ||
|
||
import "smt-libv2.gen" | ||
filename "%f-%t-%g.smt2" | ||
printer "smtv2.6" | ||
import "smt-libv2-bv.gen" | ||
import "cvc4_bv.gen" | ||
import "smt-libv2-floats.gen" | ||
|
||
import "discrimination.gen" | ||
theory BuiltIn | ||
meta "select_alginst_default" "local" | ||
meta "eliminate_algebraic" "keep_mono" | ||
end | ||
|
||
(** Error messages specific to CVC4 *) | ||
|
||
outofmemory "(error \".*out of memory\")" | ||
outofmemory "CVC4 suffered a segfault" | ||
outofmemory "CVC4::BVMinisat::OutOfMemoryException" | ||
outofmemory "std::bad_alloc" | ||
outofmemory "Cannot allocate memory" | ||
timeout "interrupted by timeout" | ||
steps "smt::SmtEngine::resourceUnitsUsed, \\([0-9]+.?[0-9]*\\)" 1 | ||
(* | ||
specific output message when CVC4 reaches its resource limit | ||
*) | ||
steplimitexceeded "unknown (RESOURCEOUT)" | ||
|
||
theory real.Real | ||
remove prop add_div | ||
remove prop sub_div | ||
remove prop neg_div | ||
remove prop assoc_mul_div | ||
remove prop assoc_div_mul | ||
remove prop assoc_div_div | ||
remove prop CompatOrderMult | ||
end | ||
|
||
(** Extra theories supported by CVC4 *) | ||
|
||
(* CVC4 division seems to be the Euclidean one, not the Computer one *) | ||
theory int.EuclideanDivision | ||
syntax function div "(div %1 %2)" | ||
syntax function mod "(mod %1 %2)" | ||
remove prop Mod_bound | ||
remove prop Div_mod | ||
remove prop Mod_1 | ||
remove prop Div_1 | ||
end | ||
|
||
(* | ||
theory int.ComputerDivision | ||
syntax function div "(div %1 %2)" | ||
syntax function mod "(mod %1 %2)" | ||
remove prop Mod_bound | ||
remove prop Div_mod | ||
remove prop Mod_1 | ||
remove prop Div_1 | ||
end | ||
*) |
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