Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
frama-c
Commits
44196c3c
Commit
44196c3c
authored
Jul 07, 2020
by
Michele Alberti
Browse files
[Eva] Again on rebasing on new server API.
parent
602f9624
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/value/api/values_request.ml
View file @
44196c3c
...
...
@@ -25,11 +25,9 @@ open Data
open
Cil_types
module
Md
=
Markdown
let
chapter
=
`Plugin
"Eva"
let
package
=
Package
.
package
~
plugin
:
"
E
va"
~
plugin
:
"
e
va"
~
name
:
"eva"
~
title
:
"Eva Values"
~
readme
:
"eva.md"
...
...
@@ -70,11 +68,10 @@ let get_after_value =
(
function
Unchanged
->
"unchanged"
|
Reduced
eval
->
get_value
eval
)
module
CallStackId
=
Data
.
Index
(
Value_types
.
Callstack
.
Map
)
Data
.
Index
(
Value_types
.
Callstack
.
Map
)
(
struct
let
page
=
page
let
name
=
"eva-callstack-id"
let
descr
=
Md
.
plain
"CallStack"
end
)
(* This pretty-printer drops the toplevel kf, which is always the function
...
...
@@ -129,12 +126,14 @@ module CallStack = struct
(
val
(
Record
.
publish
~
package
~
name
:
"eva
-c
allstack"
~
name
:
"eva
C
allstack"
~
descr
:
(
Md
.
plain
"CallStack"
)
record
)
:
Record
.
S
with
type
r
=
record
)
type
t
=
Value_types
.
callstack
option
let
jtype
=
R
.
jtype
let
pp_callstack
~
short
=
function
|
None
->
"all"
|
Some
callstack
->
...
...
@@ -205,7 +204,7 @@ let array =
in
States
.
register_array
~
package
~
name
:
"eva
.v
alues"
~
name
:
"eva
V
alues"
~
descr
:
(
Md
.
plain
"Abstract values inferred by the Eva analysis"
)
~
key
:
(
fun
(
cs
,
_
)
->
CallStack
.
key
cs
)
~
iter
...
...
@@ -351,7 +350,7 @@ let () =
Server
.
Request
.
register
~
package
~
kind
:
`GET
~
name
:
"
eva.values.compute
"
~
name
:
"
getEvaValues
"
~
descr
:
(
Md
.
plain
"Get the abstract values computed for an expression or lvalue"
)
~
input
:
(
module
Kernel_ast
.
Marker
)
~
output
:
(
module
Junit
)
...
...
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