@@ -145,6 +145,14 @@ def build_HTML_interface_to_slicer_instrumentation_props(props,fname):
145
145
ofile .write (" <td>" + str (loc ["instruction_id" ]) + "</td>\n " )
146
146
ofile .write (" </tr>\n " )
147
147
ofile .write (" <tr>\n " )
148
+ ofile .write (" <td>Source file</td>\n " )
149
+ ofile .write (" <td>" + escape_text_to_HTML (loc ["file" ]) + "</td>\n " )
150
+ ofile .write (" </tr>\n " )
151
+ ofile .write (" <tr>\n " )
152
+ ofile .write (" <td>Source line</td>\n " )
153
+ ofile .write (" <td>" + str (loc ["line" ]) + "</td>\n " )
154
+ ofile .write (" </tr>\n " )
155
+ ofile .write (" <tr>\n " )
148
156
ofile .write (" <td>Rule ID</td>\n " )
149
157
ofile .write (" <td>" + loc ["rule_id" ] + "</td>\n " )
150
158
ofile .write (" </tr>\n " )
@@ -170,6 +178,10 @@ def build_HTML_interface_to_slicer_instrumentation_props(props,fname):
170
178
ofile .write (" <td>Is sink?</td>\n " )
171
179
ofile .write (" <td>" + str (state_index in props ["sinks" ]) + "</td>\n " )
172
180
ofile .write (" </tr>\n " )
181
+ ofile .write (" <tr>\n " )
182
+ ofile .write (" <td>Description</td>\n " )
183
+ ofile .write (" <td>" + escape_text_to_HTML (" " .join (loc ["messages" ])) + "</td>\n " )
184
+ ofile .write (" </tr>\n " )
173
185
ofile .write ("</table>\n " )
174
186
ofile .write ("<p></p>\n " )
175
187
state_index += 1
@@ -380,14 +392,15 @@ def make_reduction_string(orig_value, reduced_value, add_percentage=True):
380
392
ofile .write ("</table>\n " )
381
393
382
394
383
- def build_HTML_interface_to_group_of_error_traces (traces ,tool_name ,tgt_file ,tgt_line ,ofile ):
395
+ def build_HTML_interface_to_group_of_error_traces (traces , tool_name , tgt_file , tgt_line , message , ofile ):
384
396
ofile .write (get_html_prefix ("Error traces " + tool_name ))
385
397
386
398
ofile .write ("<h1>Error traces found by " + tool_name + "</h1>\n " )
387
399
ofile .write ("<p>Target location:</p>\n " )
388
400
ofile .write ("<ul>\n " )
389
- ofile .write (" <li><b>File</b>: " + tgt_file + "</li>\n " )
401
+ ofile .write (" <li><b>File</b>: " + escape_text_to_HTML ( tgt_file ) + "</li>\n " )
390
402
ofile .write (" <li><b>Line</b>: " + str (tgt_line ) + "</li>\n " )
403
+ ofile .write (" <li><b>Message</b>: " + escape_text_to_HTML (message ) + "</li>\n " )
391
404
ofile .write ("</ul>\n " )
392
405
ofile .write ("<table>\n "
393
406
"<caption>Error traces leading to the traget location.</caption>\n "
@@ -441,6 +454,7 @@ def build_HTML_interface_to_error_traces(root_dir,sub_dir,ofile):
441
454
"jbmc" ,
442
455
traces_group ["file" ],
443
456
traces_group ["line" ],
457
+ traces_group ["message" ],
444
458
group_ofile )
445
459
else :
446
460
ofile .write (" <td>none</td>\n " )
@@ -453,6 +467,7 @@ def build_HTML_interface_to_error_traces(root_dir,sub_dir,ofile):
453
467
"symex" ,
454
468
traces_group ["file" ],
455
469
traces_group ["line" ],
470
+ traces_group ["message" ],
456
471
group_ofile )
457
472
else :
458
473
ofile .write (" <td>none</td>\n " )
0 commit comments