@@ -89,7 +89,7 @@ let init_goblint = (solver, spec, registered_name, config, cil) => {
8989 (goblint, cil);
9090};
9191
92- let init = (solver, spec, config, meta, cil, analyses, warnings, stats) => {
92+ let init = (solver, spec, config, meta, cil, analyses, warnings, stats, file_loc ) => {
9393 let cil =
9494 switch (cil) {
9595 | Ok (s ) =>
@@ -128,9 +128,15 @@ let init = (solver, spec, config, meta, cil, analyses, warnings, stats) => {
128128 | _ => raise (InitFailed ("Failed to load runtime stats" ))
129129 };
130130
131+ let file_loc =
132+ switch (file_loc) {
133+ | Ok (s ) => Marshal . from_string(s, 0 )
134+ | _ => raise (InitFailed ("Failed to load file path table" ))
135+ };
136+
131137 print_endline("Rendering app..." );
132138 React . Dom . renderToElementWithId(
133- <Main cil goblint warnings meta stats />,
139+ <Main cil goblint warnings meta stats file_loc />,
134140 "app" ,
135141 );
136142};
@@ -153,15 +159,16 @@ let handle_error = exc => {
153159 "./analyses.marshalled" ,
154160 "./warnings.marshalled" ,
155161 "./stats.marshalled" ,
162+ "./file_loc.marshalled" ,
156163]
157164|> List . map(HttpClient . get)
158165|> Lwt . all
159166>>= (
160167 l =>
161168 Lwt . return(
162169 switch (l) {
163- | [ solver , spec , config , meta , cil , analyses , warnings , stats ] =>
164- try (init(solver, spec, config, meta, cil, analyses, warnings, stats)) {
170+ | [ solver , spec , config , meta , cil , analyses , warnings , stats , file_loc ] =>
171+ try (init(solver, spec, config, meta, cil, analyses, warnings, stats, file_loc )) {
165172 | exc => handle_error(exc)
166173 }
167174 | _ => ()
0 commit comments