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
126
Issues
126
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
4fa83226
Commit
4fa83226
authored
Dec 14, 2010
by
François Bobot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pp : add one ansi-code function
parent
87db1335
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
src/bench/whybench.ml
src/bench/whybench.ml
+2
-1
src/util/pp.ml
src/util/pp.ml
+6
-0
src/util/pp.mli
src/util/pp.mli
+5
-0
No files found.
src/bench/whybench.ml
View file @
4fa83226
...
@@ -377,7 +377,8 @@ let () =
...
@@ -377,7 +377,8 @@ let () =
|
Call_provers
.
Valid
->
incr
nb_valid
|
Call_provers
.
Valid
->
incr
nb_valid
|
_
->
()
end
|
_
->
()
end
|
_
->
()
;
|
_
->
()
;
Format
.
printf
"
\027
[0G(%i/%i) valid : %i%!"
Format
.
printf
"%a(%i/%i) valid : %i%!"
Pp
.
Ansi
.
set_column
0
!
nb_done
!
nb_scheduled
!
nb_valid
!
nb_done
!
nb_scheduled
!
nb_valid
end
;
end
;
Debug
.
dprintf
Scheduler
.
debug
"%s.%s %a %i with %s : %a@."
Debug
.
dprintf
Scheduler
.
debug
"%s.%s %a %i with %s : %a@."
...
...
src/util/pp.ml
View file @
4fa83226
...
@@ -167,3 +167,9 @@ let string_of_wnl p x =
...
@@ -167,3 +167,9 @@ let string_of_wnl p x =
wnl
fmt
;
wnl
fmt
;
fprintf
fmt
"%a@?"
p
x
;
fprintf
fmt
"%a@?"
p
x
;
Buffer
.
contents
b
Buffer
.
contents
b
module
Ansi
=
struct
let
set_column
fmt
n
=
fprintf
fmt
"
\027
[%iG"
n
end
src/util/pp.mli
View file @
4fa83226
...
@@ -124,3 +124,8 @@ val string_of_wnl : (Format.formatter -> 'a -> unit) -> 'a -> string
...
@@ -124,3 +124,8 @@ val string_of_wnl : (Format.formatter -> 'a -> unit) -> 'a -> string
(** same as {!string_of} but without newline *)
(** same as {!string_of} but without newline *)
val
wnl
:
Format
.
formatter
->
unit
val
wnl
:
Format
.
formatter
->
unit
module
Ansi
:
sig
val
set_column
:
Format
.
formatter
->
int
->
unit
end
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