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
e85df7df
Commit
e85df7df
authored
14 years ago
by
Philippe Suter
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
d37cae25
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sas2011-testcases/AmortizedQueue.scala
+1
-1
1 addition, 1 deletion
sas2011-testcases/AmortizedQueue.scala
src/purescala/FairZ3Solver.scala
+5
-3
5 additions, 3 deletions
src/purescala/FairZ3Solver.scala
with
6 additions
and
4 deletions
sas2011-testcases/AmortizedQueue.scala
+
1
−
1
View file @
e85df7df
...
@@ -76,7 +76,7 @@ object AmortizedQueue {
...
@@ -76,7 +76,7 @@ object AmortizedQueue {
asList
(
enqueue
(
queue
,
elem
))
==
concat
(
list
,
Cons
(
elem
,
Nil
()))
asList
(
enqueue
(
queue
,
elem
))
==
concat
(
list
,
Cons
(
elem
,
Nil
()))
}
else
}
else
true
true
}
//
holds
}
holds
@induct
@induct
def
propFront
(
queue
:
AbsQueue
,
list
:
List
,
elem
:
Int
)
:
Boolean
=
{
def
propFront
(
queue
:
AbsQueue
,
list
:
List
,
elem
:
Int
)
:
Boolean
=
{
...
...
This diff is collapsed.
Click to expand it.
src/purescala/FairZ3Solver.scala
+
5
−
3
View file @
e85df7df
...
@@ -248,9 +248,11 @@ class FairZ3Solver(val reporter: Reporter) extends Solver(reporter) with Abstrac
...
@@ -248,9 +248,11 @@ class FairZ3Solver(val reporter: Reporter) extends Solver(reporter) with Abstrac
var
forceStop
:
Boolean
=
false
var
forceStop
:
Boolean
=
false
def
stopCallback
()
:
Unit
=
{
def
stopCallback
()
:
Unit
=
{
reporter
.
error
(
" - Timeout reached."
)
if
(!
foundDefinitiveAnswer
)
{
forceStop
=
true
reporter
.
error
(
" - Timeout reached."
)
z3
.
softCheckCancel
forceStop
=
true
z3
.
softCheckCancel
}
}
}
val
timer
:
Option
[
Timer
]
=
Settings
.
solverTimeout
.
map
(
t
=>
new
Timer
(
stopCallback
,
t
))
val
timer
:
Option
[
Timer
]
=
Settings
.
solverTimeout
.
map
(
t
=>
new
Timer
(
stopCallback
,
t
))
...
...
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