---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-4-3ac42300d0dc> in <module>()
4 bench.iter_1arg(range(-14, 16), range(1, 11), 1),
5 64,
----> 6 bench.ctx128)
~/anaconda3/lib/python3.6/site-packages/titanfp/bench.py in sweep_single(core, cases, nbits, ctx)
145 print('{:s}\nrunning with {:d} total bits'.format(str(core), nbits), flush=True)
146
--> 147 records = sweep(core, cases, nbits, ctx)
148
149 if progress_update > 0:
~/anaconda3/lib/python3.6/site-packages/titanfp/bench.py in sweep(core, cases, nbits, ctx)
135 continue
136
--> 137 records.append(bench_core(core, hi_args, lo_args, ctx))
138 if progress_update > 0 and len(records) % progress_update == 0:
139 print('.', end='', flush=True)
~/anaconda3/lib/python3.6/site-packages/titanfp/bench.py in bench_core(core, hi_args, lo_args, ctx)
97
98 def bench_core(core, hi_args, lo_args, ctx):
---> 99 hi_result = ieee754.interpret(core, hi_args, ctx=ctx)
100 lo_result = ieee754.interpret(core, lo_args, ctx=ctx)
101 sunk = optimistic.interpret(core, lo_args, ctx)
~/anaconda3/lib/python3.6/site-packages/titanfp/arithmetic/ieee754.py in interpret(core, args, ctx)
244 ctx.let([(name, argval)])
245
--> 246 return evaluate(core.e, ctx)
247
248
~/anaconda3/lib/python3.6/site-packages/titanfp/arithmetic/ieee754.py in evaluate(e, ctx)
342
343 elif isinstance(e, ast.Sqrt):
--> 344 return sqrt(*children, ctx)
345
346 elif isinstance(e, ast.Add):
~/anaconda3/lib/python3.6/site-packages/titanfp/arithmetic/ieee754.py in sqrt(x, ctx)
194 prec = max(2, ctx.p + 1)
195 result = compute_with_backend(OP.sqrt, x, prec=prec)
--> 196 return round_to_ieee_ctx(result, ctx)
197
198 def floor(x, ctx):
~/anaconda3/lib/python3.6/site-packages/titanfp/arithmetic/ieee754.py in round_to_ieee_ctx(x, ctx)
42
43 if ctx.rm == RM.RNE:
---> 44 if x_emag >= ctx.fbound:
45 return sinking.Sink(negative=x.negative, c=0, exp=0, inf=True, rc=-1)
46 else:
~/anaconda3/lib/python3.6/site-packages/titanfp/titanic/sinking.py in __ge__(self, x)
1101
1102 def __ge__(self, x):
-> 1103 order, sharp = self.compareto(x)
1104 return 0 <= order
1105
~/anaconda3/lib/python3.6/site-packages/titanfp/titanic/sinking.py in compareto(self, x, strict)
1032
1033 # integer comparison
-> 1034 if not (lower_ord <= upper_ord and xlower_ord <= xupper_ord):
1035 # TODO: assertion
1036 print(lower_ord, upper_ord, xlower_ord, xupper_ord)
KeyboardInterrupt: