Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
b1717ead
Commit
b1717ead
authored
14 years ago
by
Philippe Suter
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
2f1d9ea4
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
WISHLIST
+1
-0
1 addition, 0 deletions
WISHLIST
src/funcheck/FunCheckPlugin.scala
+2
-0
2 additions, 0 deletions
src/funcheck/FunCheckPlugin.scala
src/purescala/Settings.scala
+1
-0
1 addition, 0 deletions
src/purescala/Settings.scala
src/purescala/Z3Solver.scala
+2
-2
2 additions, 2 deletions
src/purescala/Z3Solver.scala
with
6 additions
and
2 deletions
WISHLIST
+
1
−
0
View file @
b1717ead
...
...
@@ -5,6 +5,7 @@ PS: rewrite pattern-matching translator to use if-then-else
PS: generate VCs for preconditions
PS: generate VCs for pattern-matching
PS: support multiple top-level objects, and use 'private' accessor to indicate what's part of the interface
PS: support tuples (including natively in Z3)
Wishes granted so far
...
...
This diff is collapsed.
Click to expand it.
src/funcheck/FunCheckPlugin.scala
+
2
−
0
View file @
b1717ead
...
...
@@ -27,6 +27,7 @@ class FunCheckPlugin(val global: Global) extends Plugin {
" -P:funcheck:axioms Generate simple forall axioms for recursive functions when possible"
+
"\n"
+
" -P:funcheck:tolerant Silently extracts non-pure function bodies as ''unknown''"
+
"\n"
+
" -P:funcheck:nobapa Disable BAPA Z3 extension"
+
"\n"
+
" -P:funcheck:newPM Use the new pattern-matching translator"
+
"\n"
+
" -P:funcheck:quiet No info and warning messages from the extensions"
+
"\n"
+
" -P:funcheck:XP Enable weird transformations and other bug-producing features"
)
...
...
@@ -44,6 +45,7 @@ class FunCheckPlugin(val global: Global) extends Plugin {
case
"nodefaults"
=>
purescala
.
Settings
.
runDefaultExtensions
=
false
case
"axioms"
=>
purescala
.
Settings
.
noForallAxioms
=
false
case
"nobapa"
=>
purescala
.
Settings
.
useBAPA
=
false
case
"newPM"
=>
purescala
.
Settings
.
useNewPatternMatchingTranslator
=
true
case
"XP"
=>
purescala
.
Settings
.
experimental
=
true
case
s
if
s
.
startsWith
(
"unrolling="
)
=>
purescala
.
Settings
.
unrollingLevel
=
try
{
s
.
substring
(
"unrolling="
.
length
,
s
.
length
).
toInt
}
catch
{
case
_
=>
0
}
case
s
if
s
.
startsWith
(
"functions="
)
=>
purescala
.
Settings
.
functionsToAnalyse
=
Set
(
splitList
(
s
.
substring
(
"functions="
.
length
,
s
.
length
))
:
_
*
)
...
...
This diff is collapsed.
Click to expand it.
src/purescala/Settings.scala
+
1
−
0
View file @
b1717ead
...
...
@@ -13,4 +13,5 @@ object Settings {
var
noForallAxioms
:
Boolean
=
true
var
unrollingLevel
:
Int
=
0
var
useBAPA
:
Boolean
=
true
var
useNewPatternMatchingTranslator
:
Boolean
=
false
}
This diff is collapsed.
Click to expand it.
src/purescala/Z3Solver.scala
+
2
−
2
View file @
b1717ead
...
...
@@ -9,7 +9,7 @@ import TypeTrees._
import
z3plugins.bapa.
{
BAPATheory
,
BAPATheoryEqc
,
BAPATheoryBubbles
}
class
Z3Solver
(
reporter
:
Reporter
)
extends
Solver
(
reporter
)
{
class
Z3Solver
(
reporter
:
Reporter
)
extends
Solver
(
reporter
)
with
Z3ModelReconstruction
{
import
Settings.useBAPA
val
description
=
"Z3 Solver"
override
val
shortDescription
=
"Z3"
...
...
@@ -23,7 +23,7 @@ class Z3Solver(reporter: Reporter) extends Solver(reporter) {
// this is fixed
private
val
z3cfg
=
new
Z3Config
(
"MODEL"
->
true
,
"SOFT_TIMEOUT"
->
1
80000
,
// this one doesn't work apparently
"SOFT_TIMEOUT"
->
1
00
,
"TYPE_CHECK"
->
true
,
"WELL_SORTED_CHECK"
->
true
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment