Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
caisar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
caisar
Commits
9e1bfc9c
Commit
9e1bfc9c
authored
1 year ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
[log] Create and use new tag for call prover logging.
parent
877a0da1
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
src/logging.ml
+12
-2
12 additions, 2 deletions
src/logging.ml
src/logging.mli
+1
-0
1 addition, 0 deletions
src/logging.mli
src/verification.ml
+2
-2
2 additions, 2 deletions
src/verification.ml
with
15 additions
and
4 deletions
src/logging.ml
+
12
−
2
View file @
9e1bfc9c
...
...
@@ -23,9 +23,10 @@
type
tag
=
|
Autodetect
|
Specification
|
CallProver
[
@@
deriving
show
{
with_path
=
false
}]
let
tags_available
()
=
[
Autodetect
;
Specification
]
let
tags_available
()
=
[
Autodetect
;
Specification
;
CallProver
]
let
tag_defs_enabled
=
ref
[]
let
tag_def_auto
=
...
...
@@ -34,13 +35,22 @@ let tag_def_auto =
let
tag_def_spec
=
Logs
.
Tag
.
def
"spec"
~
doc
:
"Prover-tailored specification"
Fmt
.
string
let
tag_def_call
=
Logs
.
Tag
.
def
"call_prover"
~
doc
:
"Call prover"
Fmt
.
string
let
tag_def_of_tag
=
function
|
Autodetect
->
tag_def_auto
|
Specification
->
tag_def_spec
|
CallProver
->
tag_def_call
let
tag_auto
=
Logs
.
Tag
.
add
tag_def_auto
"AUTO"
let
tag_spec
=
Logs
.
Tag
.
add
tag_def_spec
"SPEC"
let
add_tag
=
function
Autodetect
->
tag_auto
|
Specification
->
tag_spec
let
tag_call
=
Logs
.
Tag
.
add
tag_def_call
"CALL_PROVER"
let
add_tag
=
function
|
Autodetect
->
tag_auto
|
Specification
->
tag_spec
|
CallProver
->
tag_call
let
tag
dt
=
add_tag
dt
Logs
.
Tag
.
empty
let
is_tag_enabled
tag
=
...
...
This diff is collapsed.
Click to expand it.
src/logging.mli
+
1
−
0
View file @
9e1bfc9c
...
...
@@ -25,6 +25,7 @@
type
tag
=
|
Autodetect
|
Specification
|
CallProver
[
@@
deriving
show
{
with_path
=
false
}]
val
tags_available
:
unit
->
tag
list
...
...
This diff is collapsed.
Click to expand it.
src/verification.ml
+
2
−
2
View file @
9e1bfc9c
...
...
@@ -304,8 +304,8 @@ let open_file ?format env file =
let
verify
?
format
~
loadpath
?
memlimit
?
timelimit
?
dataset
prover
?
prover_altern
file
=
(
if
Logging
.
is_debug_level
()
then
Debug
.(
set_flag
(
lookup_flag
"call_prover"
)));
let
debug
=
Logging
.
(
is_debug_level
()
||
is_tag_enabled
CallProver
)
in
(
if
debug
then
Debug
.(
set_flag
(
lookup_flag
"call_prover"
)));
let
env
,
config
=
create_env
loadpath
in
let
main
=
Whyconf
.
get_main
config
in
let
limit
=
...
...
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