This is an automatically generated file.
Part 1
Part 2
milestone = 220  # ==============================
pause()
print("")
msg = ["FAILUREs  encountered =",
       "SERIOUS DEFECTs  discovered =",
       "DEFECTs  discovered =",
       "FLAWs  discovered ="
       ]
for i in range(0, 4):
    if error_count[i]:
        print("The number of  {:>29s} {:d}.".format(msg[i], error_count[i]))
Part 3
print("")
if (error_count[err_failure] or error_count[err_serious] or
        error_count[err_defect] or error_count[err_flaw]):
    if (error_count[err_failure] + error_count[err_serious]
        + error_count[err_defect] == 0) and (error_count[err_flaw] > 0):
        print("The arithmetic diagnosed seems ", end="")
        print("Satisfactory though flawed.")
Part 4
    elif ((error_count[err_failure] + error_count[err_serious] == 0)
          and error_count[err_defect] > 0):
        print("The arithmetic diagnosed may be Acceptable", end="")
        print(" despite inconvenient Defects.")
Part 5
    elif error_count[err_failure] or error_count[err_serious]:
        print("The arithmetic diagnosed has", end="")
        print(" unacceptable Serious Defects.")
    if error_count[err_failure]:
        print("Potentially fatal FAILURE may have spoiled this", end="")
        print(" program's subsequent diagnoses.")
Part 6
else:
    print("No failures, defects nor flaws have been discovered.")
    if not (flags["mult_rounding"] == "rounded"
            and flags["div_rounding"] == "rounded"
            and flags["add_sub_rounding"] == "rounded"
            and flags["sqrt_rounding"] == "rounded"):
        print("The arithmetic diagnosed seems Satisfactory.")
    else:
        if (flags["uses_sticky_bit"] and
                (B - TWO) * (B - NINE - ONE) == ZERO):
            print("Rounding appears to conform to ", end="")
            print("IEEE standard ", end="")
            if ((B == TWO) and
                    ((PRECISION - FOUR * THREE * TWO)
                     * (PRECISION - TWENTY_SEVEN
                        - TWENTY_SEVEN + ONE) == ZERO)):
                print("754", end="")
            else:
                print("854", end="")
            if flags["IEEE"]:
                print(".")
            else:
                print(",\nexcept for possibly Double Rounding", end="")
                print(" during Gradual Underflow.")
        print("The arithmetic diagnosed appears to be Excellent!")
Part 7
if fpecount:
    print("\nA total of {:d} floating point exceptions were registered."
          .format(fpecount))
print("END OF TEST.")
exit(0)
Part 8