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
8ff790d2
Commit
8ff790d2
authored
Jan 21, 2011
by
Andrei Paskevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print [tf]_labels only when --debug print_labels is set
parent
e147ff68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/core/pretty.ml
src/core/pretty.ml
+6
-0
No files found.
src/core/pretty.ml
View file @
8ff790d2
...
...
@@ -27,6 +27,8 @@ open Decl
open
Theory
open
Task
let
debug_print_labels
=
Debug
.
register_flag
"print_labels"
let
iprinter
,
tprinter
,
lprinter
,
pprinter
=
let
bl
=
[
"theory"
;
"type"
;
"logic"
;
"inductive"
;
"meta"
;
"axiom"
;
"lemma"
;
"goal"
;
"use"
;
"clone"
;
"prop"
;
...
...
@@ -189,11 +191,15 @@ let rec print_term fmt t = print_lterm 0 fmt t
and
print_fmla
fmt
f
=
print_lfmla
0
fmt
f
and
print_lterm
pri
fmt
t
=
match
t
.
t_label
with
|
_
when
Debug
.
nottest_flag
debug_print_labels
->
print_tnode
pri
fmt
t
|
[]
->
print_tnode
pri
fmt
t
|
ll
->
fprintf
fmt
(
protect_on
(
pri
>
0
)
"%a %a"
)
(
print_list
space
print_label
)
ll
(
print_tnode
0
)
t
and
print_lfmla
pri
fmt
f
=
match
f
.
f_label
with
|
_
when
Debug
.
nottest_flag
debug_print_labels
->
print_fnode
pri
fmt
f
|
[]
->
print_fnode
pri
fmt
f
|
ll
->
fprintf
fmt
(
protect_on
(
pri
>
0
)
"%a %a"
)
(
print_list
space
print_label
)
ll
(
print_fnode
0
)
f
...
...
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