Skip to content

Commit

Permalink
Don't call prepareCFG & computeCFGInfo
Browse files Browse the repository at this point in the history
Fix #6
  • Loading branch information
keremc committed Mar 8, 2022
1 parent d0d5b06 commit f8c509d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/App.re
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,17 @@ let init_goblint = (solver, spec, registered_name, config, cil) => {
Maingoblint.handle_extraspecials();
Maingoblint.handle_flags();

// Don't remove these either
Cil.iterGlobals(cil, glob =>
switch (glob) {
| GFun(fd, _) =>
Cil.prepareCFG(fd);
Cil.computeCFGInfo(fd, true);
| _ => ()
}
);
// NOTE: Commenting this out since it breaks the node view. Semantic search
// may depend on this code but it is currently broken because of unrelated
// (and uknown) reasons anyway.
// Cil.iterGlobals(cil, glob =>
// switch (glob) {
// | GFun(fd, _) =>
// Cil.prepareCFG(fd);
// Cil.computeCFGInfo(fd, true);
// | _ => ()
// }
// );
Cilfacade.current_file := cil;

let goblint = GvGoblint.unmarshal(spec, cil);
Expand Down

0 comments on commit f8c509d

Please sign in to comment.