Skip to content
Snippets Groups Projects
Commit 903c9cda authored by Loïc Correnson's avatar Loïc Correnson Committed by Allan Blanchard
Browse files

[eva/api] more signals on requests

parent 3d301261
No related branches found
No related tags found
No related merge requests found
...@@ -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<
......
...@@ -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
(* -------------------------------------------------------------------------- *)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment