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
ad6b90b5
Commit
ad6b90b5
authored
9 years ago
by
Regis Blanc
Browse files
Options
Downloads
Patches
Plain Diff
use scala-smtlib from official repo
parent
46eb6df7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.sbt
+3
-3
3 additions, 3 deletions
build.sbt
src/main/scala/leon/solvers/smtlib/SMTLIBTarget.scala
+4
-4
4 additions, 4 deletions
src/main/scala/leon/solvers/smtlib/SMTLIBTarget.scala
with
7 additions
and
7 deletions
build.sbt
+
3
−
3
View file @
ad6b90b5
...
...
@@ -42,7 +42,8 @@ libraryDependencies ++= Seq(
"info.hupel"
%%
"pide-2015"
%
libisabelleVersion
,
"org.slf4j"
%
"slf4j-nop"
%
"1.7.13"
,
"org.ow2.asm"
%
"asm-all"
%
"5.0.4"
,
"com.fasterxml.jackson.module"
%%
"jackson-module-scala"
%
"2.6.0-rc2"
"com.fasterxml.jackson.module"
%%
"jackson-module-scala"
%
"2.6.0-rc2"
,
"com.regblanc"
%%
"scala-smtlib"
%
"0.2"
)
lazy
val
scriptName
=
"leon"
...
...
@@ -169,11 +170,10 @@ parallelExecution in GenCTest := false
def
ghProject
(
repo
:
String
,
version
:
String
)
=
RootProject
(
uri
(
s
"${repo}#${version}"
))
lazy
val
bonsai
=
ghProject
(
"git://github.com/colder/bonsai.git"
,
"10eaaee4ea0ff6567f4f866922cb871bae2da0ac"
)
lazy
val
scalaSmtLib
=
ghProject
(
"git://github.com/regb/scala-smtlib.git"
,
"372bb14d0c84953acc17f9a7e1592087adb0a3e1"
)
lazy
val
root
=
(
project
in
file
(
"."
)).
configs
(
RegressionTest
,
IsabelleTest
,
GenCTest
,
IntegrTest
).
dependsOn
(
bonsai
,
scalaSmtLib
).
dependsOn
(
bonsai
).
settings
(
inConfig
(
RegressionTest
)(
Defaults
.
testTasks
++
testSettings
)
:
_
*
).
settings
(
inConfig
(
IntegrTest
)(
Defaults
.
testTasks
++
testSettings
)
:
_
*
).
settings
(
inConfig
(
IsabelleTest
)(
Defaults
.
testTasks
++
testSettings
)
:
_
*
).
...
...
This diff is collapsed.
Click to expand it.
src/main/scala/leon/solvers/smtlib/SMTLIBTarget.scala
+
4
−
4
View file @
ad6b90b5
...
...
@@ -31,7 +31,7 @@ import _root_.smtlib.parser.Terms.{
_
}
import
_root_.smtlib.parser.CommandsResponses.
{
Error
=>
ErrorResponse
,
_
}
import
_root_.smtlib.theories.
_
import
_root_.smtlib.theories.
{
Constructors
=>
SmtLibConstructors
,
_
}
import
_root_.smtlib.theories.experimental._
import
_root_.smtlib.interpreters.ProcessInterpreter
...
...
@@ -415,7 +415,7 @@ trait SMTLIBTarget extends Interruptible {
case
more
=>
val
es
=
freshSym
(
"e"
)
SMTLet
(
VarBinding
(
es
,
toSMT
(
e
)),
Seq
(),
Core
.
O
r
(
oneOf
.
map
(
FunctionApplication
(
_
,
Seq
(
es
:
Term
)))
:
_
*
))
SmtLibConstructors
.
o
r
(
oneOf
.
map
(
FunctionApplication
(
_
,
Seq
(
es
:
Term
)))))
}
case
CaseClass
(
cct
,
es
)
=>
...
...
@@ -615,8 +615,8 @@ trait SMTLIBTarget extends Interruptible {
case
RealTimes
(
a
,
b
)
=>
Reals
.
Mul
(
toSMT
(
a
),
toSMT
(
b
))
case
RealDivision
(
a
,
b
)
=>
Reals
.
Div
(
toSMT
(
a
),
toSMT
(
b
))
case
And
(
sub
)
=>
Core
.
A
nd
(
sub
.
map
(
toSMT
)
:
_
*
)
case
Or
(
sub
)
=>
Core
.
O
r
(
sub
.
map
(
toSMT
)
:
_
*
)
case
And
(
sub
)
=>
SmtLibConstructors
.
a
nd
(
sub
.
map
(
toSMT
))
case
Or
(
sub
)
=>
SmtLibConstructors
.
o
r
(
sub
.
map
(
toSMT
))
case
IfExpr
(
cond
,
thenn
,
elze
)
=>
Core
.
ITE
(
toSMT
(
cond
),
toSMT
(
thenn
),
toSMT
(
elze
))
case
f
@
FunctionInvocation
(
_
,
sub
)
=>
if
(
sub
.
isEmpty
)
declareFunction
(
f
.
tfd
)
else
{
...
...
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