Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
b6867842
Commit
b6867842
authored
15 years ago
by
MARCHE Claude
Browse files
Options
Downloads
Patches
Plain Diff
more tests
parent
490d5fbe
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile.in
+6
-0
6 additions, 0 deletions
Makefile.in
theories/floating_point.why
+8
-0
8 additions, 0 deletions
theories/floating_point.why
theories/int.why
+34
-2
34 additions, 2 deletions
theories/int.why
with
48 additions
and
2 deletions
Makefile.in
+
6
−
0
View file @
b6867842
...
@@ -178,6 +178,10 @@ test: bin/why.byte $(TOOLS)
...
@@ -178,6 +178,10 @@ test: bin/why.byte $(TOOLS)
echo
bin/why.byte
--call
--timeout
1
--driver
drivers/alt_ergo.drv
-I
theories/
\
echo
bin/why.byte
--call
--timeout
1
--driver
drivers/alt_ergo.drv
-I
theories/
\
--all-goals
theories/real.why
--all-goals
theories/real.why
mkdir
-p
theories/coq
mkdir
-p
theories/coq
bin/why.byte
--driver
drivers/coq.drv
-I
theories/
\
--output-dir
theories/coq
--goals-of
int.Abs
bin/why.byte
--driver
drivers/coq.drv
-I
theories/
\
--output-dir
theories/coq
--goals-of
int.EuclideanDivision
--goals-of
int.ComputerDivision
bin/why.byte
--driver
drivers/coq.drv
-I
theories/
\
bin/why.byte
--driver
drivers/coq.drv
-I
theories/
\
--output-dir
theories/coq
--goals-of
real.Abs
--output-dir
theories/coq
--goals-of
real.Abs
bin/why.byte
--driver
drivers/coq.drv
-I
theories/
\
bin/why.byte
--driver
drivers/coq.drv
-I
theories/
\
...
@@ -186,6 +190,8 @@ test: bin/why.byte $(TOOLS)
...
@@ -186,6 +190,8 @@ test: bin/why.byte $(TOOLS)
--output-dir
theories/coq
--goals-of
real.ExpLog
--output-dir
theories/coq
--goals-of
real.ExpLog
bin/why.byte
--driver
drivers/coq.drv
-I
theories/
\
bin/why.byte
--driver
drivers/coq.drv
-I
theories/
\
--output-dir
theories/coq
--goals-of
real.Trigonometric
--output-dir
theories/coq
--goals-of
real.Trigonometric
bin/why.byte
--driver
drivers/coq.drv
-I
theories/
\
--output-dir
theories/coq
--goals-of
floating_point.Test
for
i
in
theories/coq/
*
.v
;
do
echo
coq
$$
i
;
(
coqc
$$
i
||
true
)
done
for
i
in
theories/coq/
*
.v
;
do
echo
coq
$$
i
;
(
coqc
$$
i
||
true
)
done
testl
:
bin/whyl.byte
testl
:
bin/whyl.byte
...
...
This diff is collapsed.
Click to expand it.
theories/floating_point.why
+
8
−
0
View file @
b6867842
...
@@ -115,4 +115,12 @@ theory Double
...
@@ -115,4 +115,12 @@ theory Double
end
end
theory Test
use import Rounding
use import Single
lemma Round_01: round(Near,0.1) = 0x0.199999Ap0
end
This diff is collapsed.
Click to expand it.
theories/int.why
+
34
−
2
View file @
b6867842
...
@@ -45,10 +45,42 @@ end
...
@@ -45,10 +45,42 @@ end
theory EuclideanDivision
theory EuclideanDivision
(* TODO *)
use import Int
use import Abs
logic div(int,int) : int
logic mod(int,int) : int
axiom Div_mod:
forall x,y:int. y <> 0 -> x = y * div(x,y) + mod(x,y)
axiom Mod_bound:
forall x,y:int. y <> 0 -> 0 <= mod(x,y) and mod(x,y) < abs(y)
lemma Mod_1: forall x:int. mod(x,1) = 0
lemma Div_1: forall x:int. div(x,1) = x
end
end
theory ComputerDivision
theory ComputerDivision
(* TODO *)
use import Int
use import Abs
logic div(int,int) : int
logic mod(int,int) : int
axiom Div_mod:
forall x,y:int. y <> 0 -> x = y * div(x,y) + mod(x,y)
axiom Mod_bound:
forall x,y:int. y <> 0 -> -abs(y) < mod(x,y) and mod(x,y) < abs(y)
lemma Mod_1: forall x:int. mod(x,1) = 0
lemma Div_1: forall x:int. div(x,1) = x
end
end
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