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
2b09cd4c
Commit
2b09cd4c
authored
12 years ago
by
Etienne Kneuss
Browse files
Options
Downloads
Patches
Plain Diff
Export userland flag to use unsat cores to drive the fairz3 unrolling
parent
7687b797
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/scala/leon/solvers/z3/FairZ3Solver.scala
+12
-10
12 additions, 10 deletions
src/main/scala/leon/solvers/z3/FairZ3Solver.scala
with
12 additions
and
10 deletions
src/main/scala/leon/solvers/z3/FairZ3Solver.scala
+
12
−
10
View file @
2b09cd4c
...
@@ -29,26 +29,28 @@ class FairZ3Solver(context : LeonContext)
...
@@ -29,26 +29,28 @@ class FairZ3Solver(context : LeonContext)
val
description
=
"Fair Z3 Solver"
val
description
=
"Fair Z3 Solver"
override
val
definedOptions
:
Set
[
LeonOptionDef
]
=
Set
(
override
val
definedOptions
:
Set
[
LeonOptionDef
]
=
Set
(
LeonFlagOptionDef
(
"evalground"
,
"--evalground"
,
"Use evaluator on functions applied to ground arguments"
),
LeonFlagOptionDef
(
"evalground"
,
"--evalground"
,
"Use evaluator on functions applied to ground arguments"
),
LeonFlagOptionDef
(
"checkmodels"
,
"--checkmodels"
,
"Double-check counter-examples with evaluator"
),
LeonFlagOptionDef
(
"checkmodels"
,
"--checkmodels"
,
"Double-check counter-examples with evaluator"
),
LeonFlagOptionDef
(
"feelinglucky"
,
"--feelinglucky"
,
"Use evaluator to find counter-examples early"
),
LeonFlagOptionDef
(
"feelinglucky"
,
"--feelinglucky"
,
"Use evaluator to find counter-examples early"
),
LeonFlagOptionDef
(
"codegen"
,
"--codegen"
,
"Use compiled evaluator instead of interpreter"
)
LeonFlagOptionDef
(
"codegen"
,
"--codegen"
,
"Use compiled evaluator instead of interpreter"
),
LeonFlagOptionDef
(
"fairz3:unrollcores"
,
"--fairz3:unrollcores"
,
"Use unsat-cores to drive unrolling while remaining fair"
)
)
)
// What wouldn't we do to avoid defining vars?
// What wouldn't we do to avoid defining vars?
val
(
feelingLucky
,
checkModels
,
useCodeGen
,
evalGroundApps
,
unrollUnsatCores
,
pruneUnsatCores
)
=
locally
{
val
(
feelingLucky
,
checkModels
,
useCodeGen
,
evalGroundApps
,
unrollUnsatCores
,
pruneUnsatCores
)
=
locally
{
var
lucky
=
tru
e
var
lucky
=
fals
e
var
check
=
false
var
check
=
false
var
codegen
=
false
var
codegen
=
false
var
evalground
=
false
var
evalground
=
false
var
unrollUnsatCores
=
tru
e
var
unrollUnsatCores
=
fals
e
var
pruneUnsatCores
=
true
var
pruneUnsatCores
=
true
for
(
opt
<-
context
.
options
)
opt
match
{
for
(
opt
<-
context
.
options
)
opt
match
{
case
LeonFlagOption
(
"checkmodels"
)
=>
check
=
true
case
LeonFlagOption
(
"checkmodels"
)
=>
check
=
true
case
LeonFlagOption
(
"feelinglucky"
)
=>
lucky
=
true
case
LeonFlagOption
(
"feelinglucky"
)
=>
lucky
=
true
case
LeonFlagOption
(
"codegen"
)
=>
codegen
=
true
case
LeonFlagOption
(
"codegen"
)
=>
codegen
=
true
case
LeonFlagOption
(
"evalground"
)
=>
evalground
=
true
case
LeonFlagOption
(
"evalground"
)
=>
evalground
=
true
case
LeonFlagOption
(
"fairz3:unrollcores"
)
=>
unrollUnsatCores
=
true
case
_
=>
case
_
=>
}
}
...
...
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