A bug arises when using the modulo operator with the interactive shell. LLVM jit cannot find _lfortran_caimag and _lfortran_zaimag functions. I used grep to find any definition of the two functions but I did not find any. I believe the functions are not required.
Example to replicate:
>>> print(2 % 3)
JIT session error: Symbols not found: [ _lfortran_zaimag, _lfortran_caimag ]
< Stack Track ... >
You will find that they are declared at
|
@ccall |
|
def _lfortran_caimag(x: c32) -> f32: |
|
pass |
|
|
|
@ccall |
|
def _lfortran_zaimag(x: c64) -> f64: |
|
pass |
.