Currently any of the functions/imports that use the lfortran_intrinsics architecture do not work with the --fast option.
Functions that are supposed to return integer/float values, return 0 or garbage values.
For example:
importtimeimportrandomimportmathprint(time.time())
print(random.randrange(10,20))
print(random.random())
print(math.atanh(0.90))
(lp) sarthak@pop-os:~/lpython$ lpython examples/time.py1.68124988955907702e+09133.94382926819093038e-011.47221948958322035e+00(lp) sarthak@pop-os:~/lpython$ lpython --fast examples/time.py0.00000000000000000e+0009.53282412436823800e-1309.53282412436823800e-130
Update : The issue is somewhere in inline_function_calls pass.
Currently any of the functions/imports that use the lfortran_intrinsics architecture do not work with the
--fastoption.Functions that are supposed to return integer/float values, return 0 or garbage values.
For example:
Update : The issue is somewhere in
inline_function_callspass.