Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
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
frama-c
Commits
49146e6f
Commit
49146e6f
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[server] activate printing of stdlib
parent
18092bd2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/server/kernel_ast.ml
+17
-7
17 additions, 7 deletions
src/plugins/server/kernel_ast.ml
with
17 additions
and
7 deletions
src/plugins/server/kernel_ast.ml
+
17
−
7
View file @
49146e6f
...
@@ -338,11 +338,13 @@ let () = Request.register ~package
...
@@ -338,11 +338,13 @@ let () = Request.register ~package
~
input
:
(
module
Kf
)
~
output
:
(
module
Jtext
)
~
input
:
(
module
Kf
)
~
output
:
(
module
Jtext
)
begin
fun
kf
->
begin
fun
kf
->
let
libc
=
Kernel
.
PrintLibc
.
get
()
in
let
libc
=
Kernel
.
PrintLibc
.
get
()
in
if
not
libc
then
Kernel
.
PrintLibc
.
set
true
;
try
let
global
=
Kernel_function
.
get_global
kf
in
if
not
libc
then
Kernel
.
PrintLibc
.
set
true
;
let
ast
=
Jbuffer
.
to_json
Printer
.
pp_global
global
in
let
global
=
Kernel_function
.
get_global
kf
in
if
not
libc
then
Kernel
.
PrintLibc
.
set
false
;
let
ast
=
Jbuffer
.
to_json
Printer
.
pp_global
global
in
ast
if
not
libc
then
Kernel
.
PrintLibc
.
set
false
;
ast
with
err
->
if
not
libc
then
Kernel
.
PrintLibc
.
set
false
;
raise
err
end
end
module
Functions
=
module
Functions
=
...
@@ -352,9 +354,17 @@ struct
...
@@ -352,9 +354,17 @@ struct
let
signature
kf
=
let
signature
kf
=
let
global
=
Kernel_function
.
get_global
kf
in
let
global
=
Kernel_function
.
get_global
kf
in
Rich_text
.
to_string
Printer_tag
.
pretty
(
PGlobal
global
)
let
libc
=
Kernel
.
PrintLibc
.
get
()
in
try
if
not
libc
then
Kernel
.
PrintLibc
.
set
true
;
let
txt
=
Rich_text
.
to_string
Printer_tag
.
pretty
(
PGlobal
global
)
in
if
not
libc
then
Kernel
.
PrintLibc
.
set
false
;
if
Kernel_function
.
is_main
kf
then
(
txt
^
" /* main */"
)
else
txt
with
err
->
if
not
libc
then
Kernel
.
PrintLibc
.
set
false
;
raise
err
let
is_builtin
kf
=
Cil
.
is_builtin
(
Kernel_function
.
get_vi
kf
)
let
is_builtin
kf
=
Cil_builtins
.
is_builtin
(
Kernel_function
.
get_vi
kf
)
let
is_stdlib
kf
=
let
is_stdlib
kf
=
let
vi
=
Kernel_function
.
get_vi
kf
in
let
vi
=
Kernel_function
.
get_vi
kf
in
...
...
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