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
71e5bffc
Commit
71e5bffc
authored
9 years ago
by
Manos Koukoutos
Browse files
Options
Downloads
Patches
Plain Diff
Catch some errors
parent
df563bc0
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/smtlib/SMTLIBCVC4QuantifiedTarget.scala
+12
-2
12 additions, 2 deletions
...cala/leon/solvers/smtlib/SMTLIBCVC4QuantifiedTarget.scala
with
12 additions
and
2 deletions
src/main/scala/leon/solvers/smtlib/SMTLIBCVC4QuantifiedTarget.scala
+
12
−
2
View file @
71e5bffc
...
@@ -95,7 +95,12 @@ abstract class SMTLIBCVC4QuantifiedTarget(context: LeonContext, program: Program
...
@@ -95,7 +95,12 @@ abstract class SMTLIBCVC4QuantifiedTarget(context: LeonContext, program: Program
tfd
.
precondition
getOrElse
BooleanLiteral
(
true
),
tfd
.
precondition
getOrElse
BooleanLiteral
(
true
),
application
(
post
,
Seq
(
FunctionInvocation
(
tfd
,
tfd
.
params
map
{
_
.
toVariable
})))
application
(
post
,
Seq
(
FunctionInvocation
(
tfd
,
tfd
.
params
map
{
_
.
toVariable
})))
)
)
sendCommand
(
SMTAssert
(
quantifiedTerm
(
ForAll
,
term
)))
try
{
sendCommand
(
SMTAssert
(
quantifiedTerm
(
ForAll
,
term
)))
}
catch
{
case
_
:
IllegalArgumentException
=>
addError
()
}
}
}
}
}
...
@@ -107,6 +112,11 @@ abstract class SMTLIBCVC4QuantifiedTarget(context: LeonContext, program: Program
...
@@ -107,6 +112,11 @@ abstract class SMTLIBCVC4QuantifiedTarget(context: LeonContext, program: Program
// For this solver, we prefer the variables of assert() commands to be exist. quantified instead of free
// For this solver, we prefer the variables of assert() commands to be exist. quantified instead of free
override
def
assertCnstr
(
expr
:
Expr
)
=
override
def
assertCnstr
(
expr
:
Expr
)
=
sendCommand
(
SMTAssert
(
quantifiedTerm
(
Exists
,
expr
)))
try
{
sendCommand
(
SMTAssert
(
quantifiedTerm
(
Exists
,
expr
)))
}
catch
{
case
_
:
IllegalArgumentException
=>
addError
()
}
}
}
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