@@ -317,30 +317,36 @@ def build_HTML_interface_to_slicing_tasks(root_dir,sub_dir,ofile):
317
317
ofile .write ("<p></p>\n " )
318
318
319
319
with open (os .path .join (full_sub_dir ,"instrumented_goto_programs.json" )) as json_file :
320
- sliced_goto_programs = json .load (json_file )
321
- if sliced_goto_programs is not None :
320
+ instrumented_goto_programs = json .load (json_file )
321
+ if instrumented_goto_programs is not None :
322
322
ofile .write ("<table>\n "
323
323
"<caption>Slicing tasks (per root function).</caption>\n "
324
324
" <tr>\n "
325
325
" <th>Root function</th>\n "
326
326
" <th>Functions</th>\n "
327
327
" <th>Symbol table</th>\n "
328
+ " <th>Stats (JSON)</th>\n "
329
+ " <th>File</th>\n "
328
330
" </tr>\n " )
329
- for slice in sliced_goto_programs :
330
- dir_name = text_to_file_or_dir_name (slice ["root_function" ])
331
+ for slicing_task in instrumented_goto_programs :
332
+ dir_name = text_to_file_or_dir_name (slicing_task ["root_function" ])
331
333
ofile .write (" <tr>\n " )
332
- ofile .write (" <td>" + escape_text_to_HTML (slice ["root_function" ]) + "</td>\n " )
334
+ ofile .write (" <td>" + escape_text_to_HTML (slicing_task ["root_function" ]) + "</td>\n " )
333
335
ofile .write (" <td align=\" center\" ><a href=\" ./" + os .path .join (sub_dir ,dir_name ,"index.html" ) +
334
336
"\" >here</a></td>\n " )
335
337
ofile .write (" <td align=\" center\" ><a href=\" ./" + os .path .join (sub_dir ,dir_name ,"symbol_table.html" ) +
336
338
"\" >here</a></td>\n " )
339
+ ofile .write (" <td align=\" center\" ><a href=\" ./" +
340
+ os .path .relpath (os .path .splitext (slicing_task ["goto_binary_file" ])[0 ] + ".stats.json" , root_dir ) +
341
+ "\" >here</a></td>\n " )
342
+ ofile .write (" <td>" + escape_text_to_HTML (slicing_task ["goto_binary_file" ]) + "</td>\n " )
337
343
ofile .write (" </tr>\n " )
338
344
ofile .write ("</table>\n " )
339
345
340
346
ofile .write ("<p>Resulting JSON file containing the configuration of all slicing tasks: "
341
347
"<a href=\" ./" + sub_dir + "/instrumented_goto_programs.json\" >here</a></p>\n " )
342
348
343
- return len (sliced_goto_programs )
349
+ return len (instrumented_goto_programs )
344
350
345
351
346
352
def build_HTML_interface_to_group_of_error_traces (traces ,tool_name ,tgt_file ,tgt_line ,ofile ):
@@ -383,7 +389,7 @@ def build_HTML_interface_to_error_traces(root_dir,sub_dir,ofile):
383
389
return
384
390
385
391
ofile .write ("<table>\n "
386
- "<caption>Error traces (grouped by target locations) found by CBMC and SYMEX .</caption>\n "
392
+ "<caption>Error traces (grouped by target locations).</caption>\n "
387
393
" <tr>\n "
388
394
" <th>File</th>\n "
389
395
" <th>Line</th>\n "
0 commit comments