Skip to content
Snippets Groups Projects
Commit f9b17818 authored by Thibault Martin's avatar Thibault Martin
Browse files

Rename get_spec to generate_spec

parent 7180b074
No related branches found
No related tags found
No related merge requests found
...@@ -36,11 +36,10 @@ class pathcrawlerVisitor prj = ...@@ -36,11 +36,10 @@ class pathcrawlerVisitor prj =
end end
let startup () = let startup () =
let open Populate_spec in let generate_spec kf =
let get_spec kf = Populate_spec.populate_funspec ~do_body:true kf [`Exits]
populate_funspec ~do_body:true kf [`Exits]
in in
Globals.Functions.iter get_spec; Globals.Functions.iter generate_spec;
Format.printf "Starting visit@."; Format.printf "Starting visit@.";
let prj = File.create_project_from_visitor "pcanalyzer" let prj = File.create_project_from_visitor "pcanalyzer"
(fun prj -> new pathcrawlerVisitor prj) (fun prj -> new pathcrawlerVisitor prj)
......
...@@ -12,11 +12,10 @@ let gen_allocates _ _ = FreeAllocAny ...@@ -12,11 +12,10 @@ let gen_allocates _ _ = FreeAllocAny
let status_allocates = Property_status.Dont_know let status_allocates = Property_status.Dont_know
let run () = let run () =
let open Populate_spec in let generate_spec kf =
let get_spec kf = Populate_spec.populate_funspec kf [`Exits; `Assigns; `Requires; `Allocates]
populate_funspec kf [`Exits; `Assigns; `Requires; `Allocates]
in in
Globals.Functions.iter get_spec Globals.Functions.iter generate_spec
let populate () = let populate () =
Format.printf "Registering an mode that does nothing@."; Format.printf "Registering an mode that does nothing@.";
......
...@@ -27,12 +27,11 @@ let status_allocates = Property_status.Dont_know ...@@ -27,12 +27,11 @@ let status_allocates = Property_status.Dont_know
let status_terminates = Property_status.Dont_know let status_terminates = Property_status.Dont_know
let run () = let run () =
let open Populate_spec in let generate_spec kf =
let get_spec kf = Populate_spec.populate_funspec ~do_body:true kf
populate_funspec ~do_body:true kf
[`Exits; `Assigns; `Requires; `Allocates; `Terminates] [`Exits; `Assigns; `Requires; `Allocates; `Terminates]
in in
Globals.Functions.iter get_spec Globals.Functions.iter generate_spec
let populate () = let populate () =
Format.printf "Registering an empty spec generation mode@."; Format.printf "Registering an empty spec generation mode@.";
......
let run () = let run () =
let open Populate_spec in let open Populate_spec in
let get_spec kf = let generate_spec kf =
let funspec = Annotations.funspec kf in let funspec = Annotations.funspec kf in
populate_funspec ~do_body:true kf [`Exits]; populate_funspec ~do_body:true kf [`Exits];
(* Populates assigns using old deprecated API function. *) (* Populates assigns using old deprecated API function. *)
...@@ -13,7 +13,7 @@ let run () = ...@@ -13,7 +13,7 @@ let run () =
populate_funspec ~do_body:true kf populate_funspec ~do_body:true kf
[`Exits; `Assigns; `Requires; `Allocates; `Terminates] [`Exits; `Assigns; `Requires; `Allocates; `Terminates]
in in
Globals.Functions.iter get_spec Globals.Functions.iter generate_spec
[@@ warning "-3"] [@@ warning "-3"]
let () = Db.Main.extend run let () = Db.Main.extend run
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