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
122
Issues
122
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
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
9ed7c6bc
Commit
9ed7c6bc
authored
Jun 17, 2018
by
Sylvain Dailler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for
#138
Corrected typo in Pretty.ml
parent
3e802ac9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
1 deletion
+43
-1
examples/bts/138.mlw
examples/bts/138.mlw
+27
-0
examples/bts/138/why3session.xml
examples/bts/138/why3session.xml
+15
-0
examples/bts/138/why3shapes.gz
examples/bts/138/why3shapes.gz
+0
-0
src/core/pretty.ml
src/core/pretty.ml
+1
-1
No files found.
examples/bts/138.mlw
0 → 100644
View file @
9ed7c6bc
module Test
use int.Int
type a = < range 22 46 >
let f (b : a) =
requires {a'int b = 42}
ensures {a'int result = a'int b}
(42:a)
end
module Test2
use int.Int
let f (b : int) =
requires {b = 42}
ensures {result = b}
42
end
module Test1
clone Test2 as T (* Replace with Test does not work *)
end
\ No newline at end of file
examples/bts/138/why3session.xml
0 → 100644
View file @
9ed7c6bc
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE why3session PUBLIC "-//Why3//proof session v5//EN"
"http://why3.lri.fr/why3session.dtd">
<why3session
shape_version=
"5"
>
<file
name=
"../138.mlw"
>
<theory
name=
"Test"
>
<goal
name=
"VC f"
expl=
"VC for f"
>
</goal>
</theory>
<theory
name=
"Test2"
>
<goal
name=
"VC f"
expl=
"VC for f"
>
</goal>
</theory>
</file>
</why3session>
examples/bts/138/why3shapes.gz
0 → 100644
View file @
9ed7c6bc
File added
src/core/pretty.ml
View file @
9ed7c6bc
...
...
@@ -403,7 +403,7 @@ let print_ty_decl fmt ts =
|
NoDef
->
()
|
Alias
ty
->
fprintf
fmt
" =@ %a"
print_ty
ty
|
Range
ir
->
fprintf
fmt
" =@ <range %s
..
%s>"
fprintf
fmt
" =@ <range %s %s>"
(
BigInt
.
to_string
ir
.
Number
.
ir_lower
)
(
BigInt
.
to_string
ir
.
Number
.
ir_upper
)
|
Float
irf
->
...
...
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