@@ -300,10 +300,10 @@ def print_statements(
300300 html_parts .append ('<div class="block">' )
301301 html_parts .append (f"<h2>{ cost_stmt .type } </h2>" )
302302 html_parts .append (f'<p><span class="label">Statement:</span> { cost_stmt .text } </p>' )
303- html_parts .append ('<p><span class="label">Formalization:</span> ' )
304303 if cost_stmt .formalization is None :
305304 html_parts .append ("UNFORMALIZED" )
306305 else :
306+ html_parts .append ('<p><span class="label">Formalization:</span> ' )
307307 code = cost_stmt .formalization .code
308308 if cost_stmt .formalization .mapping is not None :
309309 for var_name , computation in cost_stmt .formalization .mapping .items ():
@@ -314,7 +314,7 @@ def print_statements(
314314 )
315315 code = code .replace (var_name , f"{ computation .name } ({ args_str } )" )
316316 html_parts .append (f"<code>{ code } </code>" )
317- html_parts .append ("</p>" )
317+ html_parts .append ("</p>" )
318318 val = cost_stmt .validation or cost_val
319319 if val .satisfiable is not None and val .message is not None :
320320 html_parts .append (f'<p><span class="label">Satisfiable:</span> { val .satisfiable } </p>' )
@@ -335,10 +335,10 @@ def print_statements(
335335 html_parts .append (f'<div class="block { holds_tag } ">' )
336336 html_parts .append (f"<h2>{ param_stmt .type } </h2>" )
337337 html_parts .append (f'<p><span class="label">Statement:</span> { param_stmt .text } </p>' )
338- html_parts .append ('<p><span class="label">Formalization:</span> ' )
339338 if param_stmt .formalization is None :
340339 html_parts .append ("UNFORMALIZED" )
341340 else :
341+ html_parts .append ('<p><span class="label">Formalization:</span> ' )
342342 code = param_stmt .formalization .code
343343 if param_stmt .formalization .mapping is not None :
344344 for var_name , computation in param_stmt .formalization .mapping .items ():
@@ -349,7 +349,7 @@ def print_statements(
349349 )
350350 code = code .replace (var_name , f"{ computation .name } ({ args_str } )" )
351351 html_parts .append (f"<code>{ code } </code>" )
352- html_parts .append ("</p>" )
352+ html_parts .append ("</p>" )
353353 if val .satisfiable is not None and val .message is not None and val .holds is not None :
354354 html_parts .append (f'<p><span class="label">Satisfiable:</span> { val .satisfiable } </p>' )
355355 html_parts .append (f'<p><span class="label">Holds:</span> { val .holds } </p>' )
@@ -370,18 +370,18 @@ def print_statements(
370370 html_parts .append (f'<div class="block { holds_tag } ">' )
371371 html_parts .append (f"<h2>Type: { struct_stmt .type } </h2>" )
372372 html_parts .append (f'<p><span class="label ">Statement:</span> { struct_stmt .text } </p>' )
373- html_parts .append ('<p><span class="label">Formalization:</span> ' )
374373 if struct_stmt .formalization is None :
375374 html_parts .append ("UNFORMALIZED" )
376375 else :
376+ html_parts .append ('<p><span class="label">Formalization:</span> ' )
377377 func_constr = struct_stmt .formalization
378378 args_str = ", " .join (
379379 f"{ argname } =" + (f"'{ argvalue } '" if isinstance (argvalue , str ) else str (argvalue ))
380380 for argname , argvalue in func_constr .arguments .items ()
381381 )
382382 func_str = f"{ func_constr .function_name } ({ args_str } ) == { func_constr .expected_result } "
383383 html_parts .append (f"<code>{ func_str } </code>" )
384- html_parts .append ("</p>" )
384+ html_parts .append ("</p>" )
385385 val = struct_stmt .validation or struct_val
386386 if val .satisfiable is not None and val .holds is not None :
387387 html_parts .append (f'<p><span class="label">Satisfiable:</span> { val .satisfiable } </p>' )
@@ -394,7 +394,7 @@ def print_statements(
394394 html_parts .append ('<div class="block not-hold">' )
395395 html_parts .append (f"<h2>Type: { unf_stmt .type } </h2>" )
396396 html_parts .append (f'<p><span class="label">Statement:</span> { unf_stmt .text } </p>' )
397- html_parts .append ('<p><span class="label">Formalization:</span> UNFORMALIZABLE</p>' )
397+ # html_parts.append('<p><span class="label">Formalization:</span> UNFORMALIZABLE</p>')
398398 html_parts .append ("</div>" )
399399
400400 # End of HTML document
0 commit comments