search for: try_for_more

Displaying 1 result from an estimated 1 matches for "try_for_more".

2016 Sep 29
4
a proposed script to help with test-suite programs that output _lots_ of FP numbers
...other than e.g. "yes, do that". My apologies for not uploading the script yet; the LLVM Phabricator seems to be down over the past few minutes. Regards, Abe test-suite/tools/count_and_sum_floats.py ---------------------------------------- #!/usr/bin/python import math, sys try_for_more = True count = 0 total = 0.0 while try_for_more: line = sys.stdin.readline() if line: split_line = line.split() # handles ASCII horizontal tabs as well as ASCII horizontal spaces as_floats = [float(x) for x in split_line] for the_float in as_floats: if not ( math.isinf...