Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
119
Issues
119
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
63f8633b
Commit
63f8633b
authored
Sep 20, 2011
by
MARCHE Claude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propagate labels on functions
parent
035bb826
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/programs/pgm_wp.ml
src/programs/pgm_wp.ml
+3
-1
tests/my_cosine.mlw
tests/my_cosine.mlw
+1
-1
No files found.
src/programs/pgm_wp.ml
View file @
63f8633b
...
...
@@ -691,7 +691,9 @@ let rec remove_at f = match f.t_node with
let
add_wp_decl
ps
f
uc
=
let
name
=
ps
.
ps_pure
.
ls_name
in
let
s
=
"WP_"
^
name
.
id_string
in
let
label
=
[
"expl:"
^
name
.
id_string
]
in
let
label
=
(
"expl:"
^
name
.
id_string
)
::
ps
.
ps_pure
.
ls_name
.
id_label
in
let
id
=
id_fresh
~
label
?
loc
:
name
.
id_loc
s
in
let
f
=
bool_to_prop
uc
(
remove_at
f
)
in
let
km
=
get_known
(
pure_uc
uc
)
in
...
...
tests/my_cosine.mlw
View file @
63f8633b
...
...
@@ -36,7 +36,7 @@ lemma method_error
forall x:real.
abs x <=. 0x1p-5 -> abs (1.0 -. x*.x*.0.5 -. cos x) <=. 0x1p-24
let my_cosine "Safety of function my_cosine" #"my_cosine.c" 8 0 153#
let my_cosine "
expl:
Safety of function my_cosine" #"my_cosine.c" 8 0 153#
(x:single) : single =
{ abs (value x) <=. 0x1p-5 }
assert {
...
...
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