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
89b437a7
Commit
89b437a7
authored
9 years ago
by
Manos Koukoutos
Browse files
Options
Downloads
Patches
Plain Diff
out file in SMTLIBSolver can be a lazy Option
parent
a7ffa7c6
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/SMTLIBSolver.scala
+7
-7
7 additions, 7 deletions
src/main/scala/leon/solvers/smtlib/SMTLIBSolver.scala
with
7 additions
and
7 deletions
src/main/scala/leon/solvers/smtlib/SMTLIBSolver.scala
+
7
−
7
View file @
89b437a7
...
...
@@ -52,7 +52,7 @@ abstract class SMTLIBSolver(val context: LeonContext,
/* Printing VCs */
protected
val
out
:
java.io.FileWriter
=
if
(
reporter
.
isDebugEnabled
)
{
protected
lazy
val
out
:
Option
[
java.io.FileWriter
]
=
if
(
reporter
.
isDebugEnabled
)
Some
{
val
file
=
context
.
files
.
headOption
.
map
(
_
.
getName
).
getOrElse
(
"NA"
)
val
n
=
VCNumbers
.
getNext
(
targetName
+
file
)
...
...
@@ -63,7 +63,7 @@ abstract class SMTLIBSolver(val context: LeonContext,
}
new
java
.
io
.
FileWriter
(
s
"vcs/$targetName-$file-$n.smt2"
,
false
)
}
else
null
}
else
None
/* Interruptible interface */
...
...
@@ -788,10 +788,10 @@ abstract class SMTLIBSolver(val context: LeonContext,
/* Send a command to the solver */
def
sendCommand
(
cmd
:
Command
)
:
CommandResponse
=
{
reporter
.
ifDebug
{
debug
=>
SMTPrinter
.
printCommand
(
cmd
,
o
ut
)
o
ut
.
write
(
"\n"
)
o
ut
.
flush
()
out
foreach
{
o
=>
SMTPrinter
.
printCommand
(
cmd
,
o
)
o
.
write
(
"\n"
)
o
.
flush
()
}
interpreter
.
eval
(
cmd
)
match
{
case
err
@ErrorResponse
(
msg
)
if
!
hasError
&&
!
interrupted
=>
...
...
@@ -810,7 +810,7 @@ abstract class SMTLIBSolver(val context: LeonContext,
def
free
()
=
{
interpreter
.
free
()
context
.
interruptManager
.
unregisterForInterrupts
(
this
)
reporter
.
ifDebug
{
_
=>
out
.
close
()
}
out
foreach
{
_
.
close
}
}
override
def
assertCnstr
(
expr
:
Expr
)
:
Unit
=
if
(!
hasError
)
{
...
...
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