Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FloVer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
AVA
FloVer
Commits
173ba3fd
Commit
173ba3fd
authored
Feb 15, 2018
by
Heiko Becker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in Certificate Phase
parent
aa571dab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/main/scala/daisy/analysis/SpecsProcessingPhase.scala
src/main/scala/daisy/analysis/SpecsProcessingPhase.scala
+0
-3
src/main/scala/daisy/backend/CertificatePhase.scala
src/main/scala/daisy/backend/CertificatePhase.scala
+3
-1
No files found.
src/main/scala/daisy/analysis/SpecsProcessingPhase.scala
View file @
173ba3fd
...
...
@@ -81,9 +81,6 @@ object SpecsProcessingPhase extends DaisyPhase with PrecisionsParser {
case
None
=>
}
// ctx.reporter.info("precision map:")
// ctx.reporter.info(precisionMap)
var
allRanges
:
Map
[
Identifier
,
Map
[
Identifier
,
Interval
]]
=
Map
()
var
allErrors
:
Map
[
Identifier
,
Map
[
Identifier
,
Rational
]]
=
Map
()
var
resRanges
:
Map
[
Identifier
,
PartialInterval
]
=
Map
()
...
...
src/main/scala/daisy/backend/CertificatePhase.scala
View file @
173ba3fd
...
...
@@ -73,7 +73,7 @@ object CertificatePhase extends DaisyPhase {
reporter
.
info
(
s
"Generating certificate for ${fnc.id}"
)
val
precisionMap
:
Map
[
Identifier
,
Precision
]
=
if
(
mixedPrecision
)
{
ctx
.
spec
ResultPrecisions
ctx
.
spec
InputPrecisions
.
get
(
fnc
.
id
).
get
}
else
{
allVariablesOf
(
fnc
.
body
.
get
).
map
(
id
=>
(
id
->
constPrecision
)).
toMap
}
...
...
@@ -81,7 +81,9 @@ object CertificatePhase extends DaisyPhase {
//first retrieve the values
//these should be defined, otherwise the generation will fail
val
thePrecondition
=
fnc
.
precondition
.
get
reporter
.
info
(
s
"${fnc.body.get}"
)
val
theBody
=
(
changeType
(
fnc
.
body
.
get
,
precisionMap
)).
_1
reporter
.
info
(
s
"$theBody"
)
val
errorMap
=
ctx
.
intermediateAbsErrors
.
get
(
fnc
.
id
).
get
val
rangeMap
=
ctx
.
intermediateRanges
.
get
(
fnc
.
id
).
get
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment