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
fa31b837
Commit
fa31b837
authored
Sep 27, 2017
by
Heiko Becker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish IEEE Range Validator to show range to be 0, denormal or normal
parent
17217499
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
hol4/FPRangeValidatorScript.sml
hol4/FPRangeValidatorScript.sml
+2
-2
hol4/Infra/MachineTypeScript.sml
hol4/Infra/MachineTypeScript.sml
+1
-1
No files found.
hol4/FPRangeValidatorScript.sml
View file @
fa31b837
...
...
@@ -37,8 +37,8 @@ val FPRangeValidator_def = Define `
in
if
(
validValue
(
IVhi
iv_e_float
)
m
/\
validValue
(
IVlo
iv_e_float
)
m
)
then
(
normal
(
IVlo
iv_e_float
)
m
)
\/
((
IVlo
iv_e_float
)
=
0
)
\/
normal
(
IVhi
iv_e_float
)
m
\/
(
IVhi
iv_e_float
)
=
0
then
(
(
normal
(
IVlo
iv_e_float
)
m
)
\/
((
IVlo
iv_e_float
)
=
0
)
\/
normal
(
IVhi
iv_e_float
)
m
\/
(
IVhi
iv_e_float
)
=
0
)
/\
recRes
else
F
|
NONE
=>
F`
;
...
...
hol4/Infra/MachineTypeScript.sml
View file @
fa31b837
...
...
@@ -180,7 +180,7 @@ val normal_def = Define `
val
denormal_def
=
Define
`
denormal
(
v
:
real
)
(
m
:
mType
)
=
((
abs
v
)
<
=
(
minValue
m
)
/\
v
<>
0
)
`
;
((
abs
v
)
<
(
minValue
m
)
/\
v
<>
0
)
`
;
val
validValue_def
=
Define
`
validValue
(
v
:
real
)
(
m
:
mType
)
=
...
...
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