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
d5536f7c
Commit
d5536f7c
authored
9 years ago
by
Manos Koukoutos
Browse files
Options
Downloads
Patches
Plain Diff
Choose GroupedTactic even if subsolver of Portfolio needs it
parent
25a98f63
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/scala/leon/solvers/combinators/PortfolioSolver.scala
+1
-1
1 addition, 1 deletion
...main/scala/leon/solvers/combinators/PortfolioSolver.scala
src/main/scala/leon/verification/AnalysisPhase.scala
+13
-5
13 additions, 5 deletions
src/main/scala/leon/verification/AnalysisPhase.scala
with
14 additions
and
6 deletions
src/main/scala/leon/solvers/combinators/PortfolioSolver.scala
+
1
−
1
View file @
d5536f7c
...
...
@@ -14,7 +14,7 @@ import scala.concurrent.duration._
import
ExecutionContext.Implicits.global
class
PortfolioSolver
[
S
<:
Solver
with
Interruptible
](
val
context
:
LeonContext
,
solvers
:
Seq
[
SolverFactory
[
S
]])
class
PortfolioSolver
[
S
<:
Solver
with
Interruptible
](
val
context
:
LeonContext
,
val
solvers
:
Seq
[
SolverFactory
[
S
]])
extends
Solver
with
Interruptible
{
val
name
=
"Pfolio"
...
...
This diff is collapsed.
Click to expand it.
src/main/scala/leon/verification/AnalysisPhase.scala
+
13
−
5
View file @
d5536f7c
...
...
@@ -9,6 +9,7 @@ import purescala.ExprOps._
import
scala.concurrent.duration._
import
solvers._
import
solvers.combinators.PortfolioSolver
import
solvers.smtlib.SMTLIBCVC4QuantifiedSolver
object
AnalysisPhase
extends
LeonPhase
[
Program
,
VerificationReport
]
{
...
...
@@ -33,10 +34,17 @@ object AnalysisPhase extends LeonPhase[Program,VerificationReport] {
baseSolverF
}
val
isSMTQuantified
=
{
val
solver
=
baseSolverF
.
getNewSolver
val
res
=
solver
.
isInstanceOf
[
SMTLIBCVC4QuantifiedSolver
]
solver
.
free
def
isSMTQuantified
[
S
<:
Solver
](
sf
:
SolverFactory
[
S
])
:
Boolean
=
{
val
solver
:
S
=
sf
.
getNewSolver
()
val
res
=
solver
match
{
case
_
:
SMTLIBCVC4QuantifiedSolver
=>
true
case
ps
:
PortfolioSolver
[
_
]
=>
ps
.
solvers
exists
isSMTQuantified
case
_
=>
false
}
solver
.
free
()
res
}
...
...
@@ -45,7 +53,7 @@ object AnalysisPhase extends LeonPhase[Program,VerificationReport] {
reporter
.
debug
(
"Generating Verification Conditions..."
)
try
{
val
vcs
=
generateVCs
(
vctx
,
filterFuns
,
forceGrouped
=
isSMTQuantified
)
val
vcs
=
generateVCs
(
vctx
,
filterFuns
,
forceGrouped
=
isSMTQuantified
(
baseSolverF
)
)
reporter
.
debug
(
"Checking Verification Conditions..."
)
...
...
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