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
903c9cda
Commit
903c9cda
authored
1 year ago
by
Loïc Correnson
Committed by
Allan Blanchard
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[eva/api] more signals on requests
parent
3d301261
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ivette/src/frama-c/plugins/eva/api/general/index.ts
+4
-4
4 additions, 4 deletions
ivette/src/frama-c/plugins/eva/api/general/index.ts
src/plugins/eva/api/general_requests.ml
+6
-0
6 additions, 0 deletions
src/plugins/eva/api/general_requests.ml
with
10 additions
and
4 deletions
ivette/src/frama-c/plugins/eva/api/general/index.ts
+
4
−
4
View file @
903c9cda
...
@@ -132,7 +132,7 @@ const getCallers_internal: Server.GetRequest<fct,CallSite[]> = {
...
@@ -132,7 +132,7 @@ const getCallers_internal: Server.GetRequest<fct,CallSite[]> = {
name
:
'
plugins.eva.general.getCallers
'
,
name
:
'
plugins.eva.general.getCallers
'
,
input
:
jFct
,
input
:
jFct
,
output
:
Json
.
jArray
(
jCallSite
),
output
:
Json
.
jArray
(
jCallSite
),
signals
:
[],
signals
:
[
{
name
:
'
plugins.eva.general.signalComputationState
'
}
],
};
};
/** Get the list of call site of a function */
/** Get the list of call site of a function */
export
const
getCallers
:
Server
.
GetRequest
<
fct
,
CallSite
[]
>=
getCallers_internal
;
export
const
getCallers
:
Server
.
GetRequest
<
fct
,
CallSite
[]
>=
getCallers_internal
;
...
@@ -142,7 +142,7 @@ const getCallees_internal: Server.GetRequest<marker,fct[]> = {
...
@@ -142,7 +142,7 @@ const getCallees_internal: Server.GetRequest<marker,fct[]> = {
name
:
'
plugins.eva.general.getCallees
'
,
name
:
'
plugins.eva.general.getCallees
'
,
input
:
jMarker
,
input
:
jMarker
,
output
:
Json
.
jArray
(
jFct
),
output
:
Json
.
jArray
(
jFct
),
signals
:
[],
signals
:
[
{
name
:
'
plugins.eva.general.signalComputationState
'
}
],
};
};
/** Return the functions pointed to by a function pointer */
/** Return the functions pointed to by a function pointer */
export
const
getCallees
:
Server
.
GetRequest
<
marker
,
fct
[]
>=
getCallees_internal
;
export
const
getCallees
:
Server
.
GetRequest
<
marker
,
fct
[]
>=
getCallees_internal
;
...
@@ -330,7 +330,7 @@ const taintedLvalues_internal: Server.GetRequest<fct,LvalueTaints[]> = {
...
@@ -330,7 +330,7 @@ const taintedLvalues_internal: Server.GetRequest<fct,LvalueTaints[]> = {
name
:
'
plugins.eva.general.taintedLvalues
'
,
name
:
'
plugins.eva.general.taintedLvalues
'
,
input
:
jFct
,
input
:
jFct
,
output
:
Json
.
jArray
(
jLvalueTaints
),
output
:
Json
.
jArray
(
jLvalueTaints
),
signals
:
[],
signals
:
[
{
name
:
'
plugins.eva.general.signalComputationState
'
}
],
};
};
/** Get the tainted lvalues of a given function */
/** Get the tainted lvalues of a given function */
export
const
taintedLvalues
:
Server
.
GetRequest
<
fct
,
LvalueTaints
[]
>=
taintedLvalues_internal
;
export
const
taintedLvalues
:
Server
.
GetRequest
<
fct
,
LvalueTaints
[]
>=
taintedLvalues_internal
;
...
@@ -702,7 +702,7 @@ const getStates_internal: Server.GetRequest<
...
@@ -702,7 +702,7 @@ const getStates_internal: Server.GetRequest<
input
:
Json
.
jPair
(
jMarker
,
Json
.
jBoolean
,),
input
:
Json
.
jPair
(
jMarker
,
Json
.
jBoolean
,),
output
:
Json
.
jArray
(
output
:
Json
.
jArray
(
Json
.
jTriple
(
Json
.
jString
,
Json
.
jString
,
Json
.
jString
,)),
Json
.
jTriple
(
Json
.
jString
,
Json
.
jString
,
Json
.
jString
,)),
signals
:
[],
signals
:
[
{
name
:
'
plugins.eva.general.signalComputationState
'
}
],
};
};
/** Get the domain states about the given marker */
/** Get the domain states about the given marker */
export
const
getStates
:
Server
.
GetRequest
<
export
const
getStates
:
Server
.
GetRequest
<
...
...
This diff is collapsed.
Click to expand it.
src/plugins/eva/api/general_requests.ml
+
6
−
0
View file @
903c9cda
...
@@ -85,6 +85,7 @@ let () = Request.register ~package
...
@@ -85,6 +85,7 @@ let () = Request.register ~package
~
kind
:
`GET
~
name
:
"getCallers"
~
kind
:
`GET
~
name
:
"getCallers"
~
descr
:
(
Markdown
.
plain
"Get the list of call site of a function"
)
~
descr
:
(
Markdown
.
plain
"Get the list of call site of a function"
)
~
input
:
(
module
Kernel_ast
.
Function
)
~
output
:
(
module
Data
.
Jlist
(
CallSite
))
~
input
:
(
module
Kernel_ast
.
Function
)
~
output
:
(
module
Data
.
Jlist
(
CallSite
))
~
signals
:
[
computation_signal
]
callers
callers
let
eval_callee
stmt
lval
=
let
eval_callee
stmt
lval
=
...
@@ -106,6 +107,7 @@ let () = Request.register ~package
...
@@ -106,6 +107,7 @@ let () = Request.register ~package
"Return the functions pointed to by a function pointer"
)
"Return the functions pointed to by a function pointer"
)
~
input
:
(
module
Kernel_ast
.
Marker
)
~
input
:
(
module
Kernel_ast
.
Marker
)
~
output
:
(
module
Data
.
Jlist
(
Kernel_ast
.
Function
))
~
output
:
(
module
Data
.
Jlist
(
Kernel_ast
.
Function
))
~
signals
:
[
computation_signal
]
callees
callees
(* ----- Functions ---------------------------------------------------------- *)
(* ----- Functions ---------------------------------------------------------- *)
...
@@ -474,6 +476,7 @@ module LvalueTaints = struct
...
@@ -474,6 +476,7 @@ module LvalueTaints = struct
~
descr
:
(
Markdown
.
plain
"Get the tainted lvalues of a given function"
)
~
descr
:
(
Markdown
.
plain
"Get the tainted lvalues of a given function"
)
~
input
:
(
module
(
Kernel_ast
.
Fundec
))
~
input
:
(
module
(
Kernel_ast
.
Fundec
))
~
output
:
(
module
(
Data
.
Jlist
(
Status
)))
~
output
:
(
module
(
Data
.
Jlist
(
Status
)))
~
signals
:
[
computation_signal
]
get_tainted_lvals
get_tainted_lvals
end
end
...
@@ -829,4 +832,7 @@ let () = Request.register ~package
...
@@ -829,4 +832,7 @@ let () = Request.register ~package
~
input
:
(
module
Data
.
Jpair
(
Kernel_ast
.
Marker
)
(
Data
.
Jbool
))
~
input
:
(
module
Data
.
Jpair
(
Kernel_ast
.
Marker
)
(
Data
.
Jbool
))
~
output
:
(
module
Data
.
Jlist
~
output
:
(
module
Data
.
Jlist
(
Data
.
Jtriple
(
Data
.
Jstring
)
(
Data
.
Jstring
)
(
Data
.
Jstring
)))
(
Data
.
Jtriple
(
Data
.
Jstring
)
(
Data
.
Jstring
)
(
Data
.
Jstring
)))
~
signals
:
[
computation_signal
]
get_states
get_states
(* -------------------------------------------------------------------------- *)
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