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
69ba85c7
Commit
69ba85c7
authored
Mar 29, 2018
by
Heiko Becker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a simple regression test for fixed-point checking
parent
124cb845
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
testcases/regression/certificate_AdditionSimple_Fixed.v
testcases/regression/certificate_AdditionSimple_Fixed.v
+20
-0
No files found.
testcases/regression/certificate_AdditionSimple_Fixed.v
0 → 100644
View file @
69ba85c7
Require
Import
Flover
.
CertificateChecker
.
Definition
C12
:
expr
Q
:=
Const
(
F
32
22
)
((
1657
)#(
5
)).
Definition
u0
:
expr
Q
:=
Var
Q
0.
Definition
e3
:
expr
Q
:=
Binop
Plus
C12
u0
.
Definition
Rete3
:=
Ret
e3
.
Definition
defVars_additionSimple
:
(
nat
->
option
mType
)
:=
fun
n
=>
if
n
=?
0
then
Some
(
F
32
24
)
else
None
.
Definition
thePrecondition_additionSimple
:
precond
:=
fun
(
n
:
nat
)
=>
if
n
=?
0
then
(
(
-
100
)#(
1
),
(
100
)#(
1
))
else
(
0
#
1
,
0
#
1
).
Definition
absenv_additionSimple
:
analysisResult
:=
Eval
compute
in
FloverMap
.
add
e3
((
(
1157
)#(
5
),
(
2157
)#(
5
)),
(
9
)#(
16777216
))
(
FloverMap
.
add
u0
((
(
-
100
)#(
1
),
(
100
)#(
1
)),
(
1
)#(
16777216
))
(
FloverMap
.
add
C12
((
(
1657
)#(
5
),
(
1657
)#(
5
)),
(
1
)#(
4194304
))
(
FloverMap
.
empty
(
intv
*
error
)))).
Theorem
ErrorBound_additionSimple_Sound
:
CertificateCheckerCmd
Rete3
absenv_additionSimple
thePrecondition_additionSimple
defVars_additionSimple
=
true
.
Proof
.
vm_compute
;
auto
.
Qed
.
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