diff --git a/integration_tests/CMakeLists.txt b/integration_tests/CMakeLists.txt index aaf57e693e..5dee2bff7d 100644 --- a/integration_tests/CMakeLists.txt +++ b/integration_tests/CMakeLists.txt @@ -118,7 +118,7 @@ macro(RUN) add_test(${name} python ${CMAKE_CURRENT_SOURCE_DIR}/${name}.py) set_tests_properties(${name} PROPERTIES - ENVIRONMENT "PYTHONPATH=${CMAKE_SOURCE_DIR}/../src/runtime/ltypes:${CMAKE_SOURCE_DIR}/..;LPYTHON_PY_MOD_NAME=${PY_MOD};LPYTHON_PY_MOD_PATH=${CMAKE_CURRENT_BINARY_DIR}") + ENVIRONMENT "PYTHONPATH=${CMAKE_SOURCE_DIR}/../src/runtime/lpython:${CMAKE_SOURCE_DIR}/..;LPYTHON_PY_MOD_NAME=${PY_MOD};LPYTHON_PY_MOD_PATH=${CMAKE_CURRENT_BINARY_DIR}") if (RUN_LABELS) set_tests_properties(${name} PROPERTIES LABELS "${RUN_LABELS}") endif() @@ -409,6 +409,8 @@ RUN(NAME test_str_comparison LABELS cpython llvm c) RUN(NAME test_bit_length LABELS cpython llvm c) RUN(NAME str_to_list_cast LABELS cpython llvm c) +RUN(NAME test_package_01 LABELS cpython llvm) + RUN(NAME generics_01 LABELS cpython llvm c) RUN(NAME generics_02 LABELS cpython llvm c) RUN(NAME generics_array_01 LABELS cpython llvm c) diff --git a/integration_tests/array_01.py b/integration_tests/array_01.py index 779b3934e1..7549a3975e 100644 --- a/integration_tests/array_01.py +++ b/integration_tests/array_01.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 from numpy import empty def main0(): diff --git a/integration_tests/array_01_decl.py b/integration_tests/array_01_decl.py index 52812a030a..153f7c9557 100644 --- a/integration_tests/array_01_decl.py +++ b/integration_tests/array_01_decl.py @@ -1,4 +1,4 @@ -from ltypes import i16, i32, i64, f32, f64, c32, c64 +from lpython import i16, i32, i64, f32, f64, c32, c64 from numpy import empty, int16, int32, int64, float32, float64, complex64, complex128 from enum import Enum diff --git a/integration_tests/array_02.py b/integration_tests/array_02.py index 6e3c7bca7d..cdc2135099 100644 --- a/integration_tests/array_02.py +++ b/integration_tests/array_02.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 from numpy import empty def main0(): diff --git a/integration_tests/array_02_decl.py b/integration_tests/array_02_decl.py index 5969ba8a85..78acf1b115 100644 --- a/integration_tests/array_02_decl.py +++ b/integration_tests/array_02_decl.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, f32, f64, c32, c64 +from lpython import i32, i64, f32, f64, c32, c64 from numpy import empty def accept_multidim_i32_array(xi32: i32[:, :]) -> i32: diff --git a/integration_tests/array_03_decl.py b/integration_tests/array_03_decl.py index 7b38806fc4..e2d0d75581 100644 --- a/integration_tests/array_03_decl.py +++ b/integration_tests/array_03_decl.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, dataclass +from lpython import i32, f64, dataclass from numpy import empty @dataclass diff --git a/integration_tests/array_expr_01.py b/integration_tests/array_expr_01.py index 8890fd621f..97ed54365b 100644 --- a/integration_tests/array_expr_01.py +++ b/integration_tests/array_expr_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64 +from lpython import i32, f32, f64 from numpy import empty, reshape, int32, float64 def array_expr_01(): diff --git a/integration_tests/array_expr_02.py b/integration_tests/array_expr_02.py index 332a223653..6f94d89070 100644 --- a/integration_tests/array_expr_02.py +++ b/integration_tests/array_expr_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, TypeVar +from lpython import i32, f32, TypeVar from numpy import empty, sqrt, float32 n: i32 diff --git a/integration_tests/bindc_01.py b/integration_tests/bindc_01.py index 5c758339e5..139f821e6a 100644 --- a/integration_tests/bindc_01.py +++ b/integration_tests/bindc_01.py @@ -1,4 +1,4 @@ -from ltypes import c_p_pointer, CPtr, i16, Pointer, empty_c_void_p +from lpython import c_p_pointer, CPtr, i16, Pointer, empty_c_void_p queries: CPtr = empty_c_void_p() x: Pointer[i16] = c_p_pointer(queries, i16) diff --git a/integration_tests/bindc_02.py b/integration_tests/bindc_02.py index 0ad7845489..68b2cc3a69 100644 --- a/integration_tests/bindc_02.py +++ b/integration_tests/bindc_02.py @@ -1,4 +1,4 @@ -from ltypes import c_p_pointer, CPtr, pointer, i16, Pointer, empty_c_void_p +from lpython import c_p_pointer, CPtr, pointer, i16, Pointer, empty_c_void_p from numpy import empty, int16 queries: CPtr = empty_c_void_p() diff --git a/integration_tests/bindc_03.py b/integration_tests/bindc_03.py index 1138522b09..6e52299db0 100644 --- a/integration_tests/bindc_03.py +++ b/integration_tests/bindc_03.py @@ -1,4 +1,4 @@ -from ltypes import c_p_pointer, CPtr, pointer, i32, Pointer, ccall, p_c_pointer, dataclass +from lpython import c_p_pointer, CPtr, pointer, i32, Pointer, ccall, p_c_pointer, dataclass @dataclass class ArrayWrapped: diff --git a/integration_tests/bindc_04.py b/integration_tests/bindc_04.py index 1956c68c8c..0589fcee66 100644 --- a/integration_tests/bindc_04.py +++ b/integration_tests/bindc_04.py @@ -1,4 +1,4 @@ -from ltypes import pointer, i16, Pointer +from lpython import pointer, i16, Pointer # Testing Global Pointers x: Pointer[i16[:]] diff --git a/integration_tests/bindc_05.py b/integration_tests/bindc_05.py index ee936ab364..4b3121ccc9 100644 --- a/integration_tests/bindc_05.py +++ b/integration_tests/bindc_05.py @@ -1,4 +1,4 @@ -from ltypes import CPtr, empty_c_void_p, i32, f32, dataclass, Pointer, ccall, p_c_pointer, pointer +from lpython import CPtr, empty_c_void_p, i32, f32, dataclass, Pointer, ccall, p_c_pointer, pointer @dataclass class Void: diff --git a/integration_tests/bindc_06.py b/integration_tests/bindc_06.py index a80e1b5c4a..7d3b46a69a 100644 --- a/integration_tests/bindc_06.py +++ b/integration_tests/bindc_06.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, ccall, dataclass +from lpython import i32, f64, ccall, dataclass from numpy import empty, int32, float64 @dataclass diff --git a/integration_tests/bindc_07.py b/integration_tests/bindc_07.py index 038a2d659b..7c16623559 100644 --- a/integration_tests/bindc_07.py +++ b/integration_tests/bindc_07.py @@ -1,4 +1,4 @@ -from ltypes import CPtr, i64, sizeof, i32, i16, i8, ccall, c_p_pointer, empty_c_void_p, Pointer, pointer +from lpython import CPtr, i64, sizeof, i32, i16, i8, ccall, c_p_pointer, empty_c_void_p, Pointer, pointer from numpy import empty, int64 @ccall diff --git a/integration_tests/bit_operations_i32.py b/integration_tests/bit_operations_i32.py index 67934c8ce3..7d01f1d279 100644 --- a/integration_tests/bit_operations_i32.py +++ b/integration_tests/bit_operations_i32.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_bitnot(): x: i32 = 5 diff --git a/integration_tests/bit_operations_i64.py b/integration_tests/bit_operations_i64.py index c1ac77c413..efc61f6d33 100644 --- a/integration_tests/bit_operations_i64.py +++ b/integration_tests/bit_operations_i64.py @@ -1,4 +1,4 @@ -from ltypes import i64 +from lpython import i64 def test_bitnot(): x: i64 = i64(123) diff --git a/integration_tests/comp_01.py b/integration_tests/comp_01.py index b04eb9a1d0..41ac380a5a 100644 --- a/integration_tests/comp_01.py +++ b/integration_tests/comp_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def compI32(x: i32, y: i32): print(x) diff --git a/integration_tests/const_01.py b/integration_tests/const_01.py index 2db1a91b0f..14c7213a2f 100644 --- a/integration_tests/const_01.py +++ b/integration_tests/const_01.py @@ -1,4 +1,4 @@ -from ltypes import Const, i32, i64, f32, f64 +from lpython import Const, i32, i64, f32, f64 def test_const_variables(): xci: Const[i32] = i32(0.0) diff --git a/integration_tests/const_02.py b/integration_tests/const_02.py index c84fea5a9d..b8c69b743c 100644 --- a/integration_tests/const_02.py +++ b/integration_tests/const_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, Const +from lpython import i32, f64, Const def f(x: Const[i32]) -> i32: return x + 1 diff --git a/integration_tests/const_03.py b/integration_tests/const_03.py index 40ebf818d5..13d448c0a3 100644 --- a/integration_tests/const_03.py +++ b/integration_tests/const_03.py @@ -1,4 +1,4 @@ -from ltypes import i64, f64, i32, Const, ccall +from lpython import i64, f64, i32, Const, ccall CONST_1: Const[f64] = 32.0 CONST_2: Const[f64] = CONST_1 * 2.0 diff --git a/integration_tests/const_04.py b/integration_tests/const_04.py index 6acd01dbd0..e65b5292fd 100644 --- a/integration_tests/const_04.py +++ b/integration_tests/const_04.py @@ -1,4 +1,4 @@ -from ltypes import i32, i16, Const +from lpython import i32, i16, Const from numpy import empty, int16 def sum_const_array(array: Const[i16[:]], size: i32) -> i16: diff --git a/integration_tests/elemental_01.py b/integration_tests/elemental_01.py index 22b44b90ed..d07c7c51db 100644 --- a/integration_tests/elemental_01.py +++ b/integration_tests/elemental_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, f32 +from lpython import i32, f64, f32 from numpy import empty, sin, cos, reshape def verify1d(array: f32[:], result: f32[:], size: i32): diff --git a/integration_tests/elemental_02.py b/integration_tests/elemental_02.py index 0d574b76f4..4467dea8f8 100644 --- a/integration_tests/elemental_02.py +++ b/integration_tests/elemental_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, f32 +from lpython import i32, f64, f32 from numpy import empty, tan, sin, cos, reshape def elemental_tan64(): diff --git a/integration_tests/elemental_03.py b/integration_tests/elemental_03.py index c0f1aa0f9d..99431b1537 100644 --- a/integration_tests/elemental_03.py +++ b/integration_tests/elemental_03.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64 +from lpython import i32, f32, f64 from numpy import empty, sqrt, reshape def elemental_sqrt64(): diff --git a/integration_tests/elemental_04.py b/integration_tests/elemental_04.py index df99903a67..fd86a5846c 100644 --- a/integration_tests/elemental_04.py +++ b/integration_tests/elemental_04.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64 +from lpython import i32, f32, f64 from numpy import empty, log, log10, log2, reshape from math import exp diff --git a/integration_tests/elemental_05.py b/integration_tests/elemental_05.py index 49b80b72ef..8bb100dd08 100644 --- a/integration_tests/elemental_05.py +++ b/integration_tests/elemental_05.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, f32 +from lpython import i32, f64, f32 from numpy import empty, sinh, cosh, reshape, int32, float64, sin def verify1d(array: f32[:], result: f32[:], size: i32): diff --git a/integration_tests/elemental_06.py b/integration_tests/elemental_06.py index 4acc162e47..83af2b08a0 100644 --- a/integration_tests/elemental_06.py +++ b/integration_tests/elemental_06.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64 +from lpython import i32, f32, f64 from numpy import empty, arcsin, arccos, sin, cos, sqrt, arctan, tan, degrees, radians from math import pi diff --git a/integration_tests/elemental_07.py b/integration_tests/elemental_07.py index 44dd996d00..4637b8bc60 100644 --- a/integration_tests/elemental_07.py +++ b/integration_tests/elemental_07.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, f32 +from lpython import i32, f64, f32 from numpy import empty, tanh, reshape, int32, float64, sin, log10 def verify1d(array: f32[:], result: f32[:], size: i32): diff --git a/integration_tests/elemental_08.py b/integration_tests/elemental_08.py index 76d74430c4..b65ccee06e 100644 --- a/integration_tests/elemental_08.py +++ b/integration_tests/elemental_08.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, f32 +from lpython import i32, f64, f32 from numpy import empty, reshape, int32, exp def verify1d(array: f32[:], result: f32[:], size: i32): diff --git a/integration_tests/elemental_09.py b/integration_tests/elemental_09.py index fb840234cb..1e537f391d 100644 --- a/integration_tests/elemental_09.py +++ b/integration_tests/elemental_09.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, f32 +from lpython import i32, f64, f32 from numpy import empty, arcsinh, arccosh, reshape, float64, sinh, sqrt, sin, cosh def verify1d_arcsinh(array: f32[:], result: f32[:], size: i32): diff --git a/integration_tests/elemental_10.py b/integration_tests/elemental_10.py index ad742e2a13..3583d13806 100644 --- a/integration_tests/elemental_10.py +++ b/integration_tests/elemental_10.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, f64 +from lpython import i32, i64, f64 from numpy import mod, int64, empty def test_numpy_mod(): diff --git a/integration_tests/elemental_11.py b/integration_tests/elemental_11.py index 409150b2ac..c66335a8da 100644 --- a/integration_tests/elemental_11.py +++ b/integration_tests/elemental_11.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, f32 +from lpython import i32, f64, f32 from numpy import empty, arctanh, reshape, float64, sinh, sqrt, sin, cosh def verify1d_arctanh(array: f32[:], result: f32[:], size: i32): diff --git a/integration_tests/elemental_12.py b/integration_tests/elemental_12.py index 5bfbd1b3d7..93991c2579 100644 --- a/integration_tests/elemental_12.py +++ b/integration_tests/elemental_12.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64 +from lpython import i32, f32, f64 from numpy import empty, floor, ceil, sqrt, reshape def elemental_floor64(): diff --git a/integration_tests/enum_01.py b/integration_tests/enum_01.py index 1e2288e8c4..3c043c767e 100644 --- a/integration_tests/enum_01.py +++ b/integration_tests/enum_01.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 from enum import Enum class Color(Enum): diff --git a/integration_tests/enum_02.py b/integration_tests/enum_02.py index 5dec80442f..c36210d2dd 100644 --- a/integration_tests/enum_02.py +++ b/integration_tests/enum_02.py @@ -1,5 +1,5 @@ from enum import Enum -from ltypes import i32, f64 +from lpython import i32, f64 class MolecularMass(Enum): water: i32 = 18 diff --git a/integration_tests/enum_03.py b/integration_tests/enum_03.py index 2b82c1f32a..b087ee7426 100644 --- a/integration_tests/enum_03.py +++ b/integration_tests/enum_03.py @@ -1,5 +1,5 @@ from enum import Enum -from ltypes import i32 +from lpython import i32 class NegativeNumbers(Enum): a: i32 = -1 diff --git a/integration_tests/enum_04.py b/integration_tests/enum_04.py index 1356fe3600..4b01f3fb79 100644 --- a/integration_tests/enum_04.py +++ b/integration_tests/enum_04.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 from enum import Enum, auto class Color(Enum): diff --git a/integration_tests/enum_05.py b/integration_tests/enum_05.py index 1510aa2236..a3a424e7c9 100644 --- a/integration_tests/enum_05.py +++ b/integration_tests/enum_05.py @@ -1,4 +1,4 @@ -from ltypes import i32, ccall +from lpython import i32, ccall from enum import Enum @ccall diff --git a/integration_tests/enum_06.py b/integration_tests/enum_06.py index 70111ab890..e50a0ca0a7 100644 --- a/integration_tests/enum_06.py +++ b/integration_tests/enum_06.py @@ -1,4 +1,4 @@ -from ltypes import i32, dataclass, f64 +from lpython import i32, dataclass, f64 from numpy import empty from enum import Enum diff --git a/integration_tests/expr_01.py b/integration_tests/expr_01.py index 4baa148c68..3bd2e6b139 100644 --- a/integration_tests/expr_01.py +++ b/integration_tests/expr_01.py @@ -1,4 +1,4 @@ -from ltypes import inline, i32 +from lpython import inline, i32 @inline def add(x: i32, y: i32) -> i32: diff --git a/integration_tests/expr_04.py b/integration_tests/expr_04.py index 75a16e37f0..ad46256039 100644 --- a/integration_tests/expr_04.py +++ b/integration_tests/expr_04.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64, i64 +from lpython import i32, f32, f64, i64 def main0(): i: i32 sum: i32 diff --git a/integration_tests/expr_05.py b/integration_tests/expr_05.py index f02d26f1a1..29a5fb5e8b 100644 --- a/integration_tests/expr_05.py +++ b/integration_tests/expr_05.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64 +from lpython import i32, i64 def test_multiply(a: i32, b: i32) -> i32: return a*b diff --git a/integration_tests/expr_06.py b/integration_tests/expr_06.py index 3df110803c..546aad4ec1 100644 --- a/integration_tests/expr_06.py +++ b/integration_tests/expr_06.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64 +from lpython import i32, f32, f64 from numpy import empty, cos, sin def main0(): diff --git a/integration_tests/expr_07.py b/integration_tests/expr_07.py index 5e78dbf46d..788fc41b58 100644 --- a/integration_tests/expr_07.py +++ b/integration_tests/expr_07.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def g(x: i32): print(x) diff --git a/integration_tests/expr_08.py b/integration_tests/expr_08.py index 1956c68c8c..0589fcee66 100644 --- a/integration_tests/expr_08.py +++ b/integration_tests/expr_08.py @@ -1,4 +1,4 @@ -from ltypes import pointer, i16, Pointer +from lpython import pointer, i16, Pointer # Testing Global Pointers x: Pointer[i16[:]] diff --git a/integration_tests/expr_09.py b/integration_tests/expr_09.py index 4fb021173f..a64e5eb35f 100644 --- a/integration_tests/expr_09.py +++ b/integration_tests/expr_09.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, f32 +from lpython import i32, f64, f32 def main0(): i1: i32 = 10 diff --git a/integration_tests/expr_10.py b/integration_tests/expr_10.py index 24da1000ee..28a715f3e0 100644 --- a/integration_tests/expr_10.py +++ b/integration_tests/expr_10.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def g() -> i32: return 5 diff --git a/integration_tests/expr_11.py b/integration_tests/expr_11.py index b72fd1b982..1e27e821b5 100644 --- a/integration_tests/expr_11.py +++ b/integration_tests/expr_11.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def f(): i: i32 diff --git a/integration_tests/expr_12.py b/integration_tests/expr_12.py index 4933a04481..2707f0122f 100644 --- a/integration_tests/expr_12.py +++ b/integration_tests/expr_12.py @@ -1,4 +1,4 @@ -from ltypes import pointer, i16, Pointer +from lpython import pointer, i16, Pointer def g(x: Pointer[i16[:]], y: i16[:]): y[0] = i16(1) diff --git a/integration_tests/expr_13.py b/integration_tests/expr_13.py index 93ed7ba446..e9c386f12c 100644 --- a/integration_tests/expr_13.py +++ b/integration_tests/expr_13.py @@ -1,4 +1,4 @@ -from ltypes import CPtr, empty_c_void_p, i32, Pointer, ccall, Const +from lpython import CPtr, empty_c_void_p, i32, Pointer, ccall, Const @ccall def deref_array(x: Pointer[CPtr], idx: i32) -> CPtr: diff --git a/integration_tests/expr_14.py b/integration_tests/expr_14.py index 7cbd452bcd..5b22fee92c 100644 --- a/integration_tests/expr_14.py +++ b/integration_tests/expr_14.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, f32, f64, c32, c64 +from lpython import i32, i64, f32, f64, c32, c64 def test_divide(): a1: i32; a2: i32; a3: f64; diff --git a/integration_tests/expr_15.py b/integration_tests/expr_15.py index 51b47d7ced..2cf6dfa608 100644 --- a/integration_tests/expr_15.py +++ b/integration_tests/expr_15.py @@ -1,4 +1,4 @@ -from ltypes import i8, i16 +from lpython import i8, i16 def test_issue_1586(): x4: i16 @@ -13,7 +13,21 @@ def test_issue_1586(): b4 = i8(123) assert b4//a4 == i8(12) +def test_issue_1619(): + a: i16 + b: i16 + a = i16(10) + b = i16(12345) + assert b%a == i16(5) + + c: i8 + d: i8 + c = i8(10) + d = i8(123) + assert d%c == i8(3) + def check(): test_issue_1586() + test_issue_1619() check() diff --git a/integration_tests/float_01.py b/integration_tests/float_01.py index fe5152d670..2826e44ea1 100644 --- a/integration_tests/float_01.py +++ b/integration_tests/float_01.py @@ -1,4 +1,4 @@ -from ltypes import f64 +from lpython import f64 def sqr(x: f64) -> f64: return x * x diff --git a/integration_tests/func_dep_03.py b/integration_tests/func_dep_03.py index d65a81c487..1e39f62c6a 100644 --- a/integration_tests/func_dep_03.py +++ b/integration_tests/func_dep_03.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64 +from lpython import i32, i64 def casti32(x: i64) -> i32: y: i32 diff --git a/integration_tests/func_dep_04.py b/integration_tests/func_dep_04.py index 5319ef08d2..cb464eb716 100644 --- a/integration_tests/func_dep_04.py +++ b/integration_tests/func_dep_04.py @@ -1,5 +1,5 @@ from func_dep_04_module import manhattan_distance -from ltypes import i32 +from lpython import i32 def test_manhattan_distance(): a: i32; b: i32; c: i32; d: i32; diff --git a/integration_tests/func_dep_04_module.py b/integration_tests/func_dep_04_module.py index ec826ab60e..570d432088 100644 --- a/integration_tests/func_dep_04_module.py +++ b/integration_tests/func_dep_04_module.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def manhattan_distance(x1: i32, y1: i32, x2: i32, y2: i32) -> i32: return abs(x1 - x2) + abs(y1 - y2) diff --git a/integration_tests/func_inline_01.py b/integration_tests/func_inline_01.py index 856a04ab4a..26173b52bd 100644 --- a/integration_tests/func_inline_01.py +++ b/integration_tests/func_inline_01.py @@ -1,4 +1,4 @@ -from ltypes import i64 +from lpython import i64 def fib(n: i64) -> i64: if n < i64(2): diff --git a/integration_tests/func_inline_02.py b/integration_tests/func_inline_02.py index f093a42c7b..89331d37a7 100644 --- a/integration_tests/func_inline_02.py +++ b/integration_tests/func_inline_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, Const, inline +from lpython import i32, Const, inline @inline def f(x: i32) -> i32: diff --git a/integration_tests/func_static_01.py b/integration_tests/func_static_01.py index 0b0fbda394..c87377f36e 100644 --- a/integration_tests/func_static_01.py +++ b/integration_tests/func_static_01.py @@ -1,4 +1,4 @@ -from ltypes import i64, static +from lpython import i64, static @static def fib(n: i64) -> i64: diff --git a/integration_tests/func_static_02.py b/integration_tests/func_static_02.py index 74f802a126..85f8b0151d 100644 --- a/integration_tests/func_static_02.py +++ b/integration_tests/func_static_02.py @@ -1,4 +1,4 @@ -from ltypes import i64, static, inline +from lpython import i64, static, inline @static @inline diff --git a/integration_tests/generics_01.py b/integration_tests/generics_01.py index fd1603cf6a..c3f1357ade 100644 --- a/integration_tests/generics_01.py +++ b/integration_tests/generics_01.py @@ -1,4 +1,4 @@ -from ltypes import TypeVar, restriction, i32 +from lpython import TypeVar, restriction, i32 T = TypeVar('T') diff --git a/integration_tests/generics_02.py b/integration_tests/generics_02.py index 5e36813211..c9be2672b4 100644 --- a/integration_tests/generics_02.py +++ b/integration_tests/generics_02.py @@ -1,4 +1,4 @@ -from ltypes import TypeVar +from lpython import TypeVar T = TypeVar('T') diff --git a/integration_tests/generics_array_01.py b/integration_tests/generics_array_01.py index 4c733b7c4a..65bb7d8435 100644 --- a/integration_tests/generics_array_01.py +++ b/integration_tests/generics_array_01.py @@ -1,4 +1,4 @@ -from ltypes import TypeVar, i32 +from lpython import TypeVar, i32 from numpy import empty T = TypeVar('T') diff --git a/integration_tests/generics_array_02.py b/integration_tests/generics_array_02.py index 94b23085ca..96e67f24bc 100644 --- a/integration_tests/generics_array_02.py +++ b/integration_tests/generics_array_02.py @@ -1,4 +1,4 @@ -from ltypes import TypeVar, restriction, i32, f32 +from lpython import TypeVar, restriction, i32, f32 from numpy import empty n: i32 diff --git a/integration_tests/generics_array_03.py b/integration_tests/generics_array_03.py index 8de3fe5908..d486ee9e24 100644 --- a/integration_tests/generics_array_03.py +++ b/integration_tests/generics_array_03.py @@ -1,4 +1,4 @@ -from ltypes import TypeVar, restriction, i32, f32 +from lpython import TypeVar, restriction, i32, f32 from numpy import empty n: i32 diff --git a/integration_tests/generics_list_01.py b/integration_tests/generics_list_01.py index ec76496b70..9534bc675a 100644 --- a/integration_tests/generics_list_01.py +++ b/integration_tests/generics_list_01.py @@ -1,4 +1,4 @@ -from ltypes import TypeVar, f64, i32, restriction +from lpython import TypeVar, f64, i32, restriction T = TypeVar('T') diff --git a/integration_tests/global_syms_01.py b/integration_tests/global_syms_01.py index 808d324fcf..fbf9cbb97a 100644 --- a/integration_tests/global_syms_01.py +++ b/integration_tests/global_syms_01.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 x: list[i32] x = [1, 2] diff --git a/integration_tests/global_syms_02.py b/integration_tests/global_syms_02.py index d6ed192bac..840732e4cc 100644 --- a/integration_tests/global_syms_02.py +++ b/integration_tests/global_syms_02.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 x: list[i32] x = [0, 1] diff --git a/integration_tests/global_syms_03_a.py b/integration_tests/global_syms_03_a.py index 4f61061d53..8eb775a9d4 100644 --- a/integration_tests/global_syms_03_a.py +++ b/integration_tests/global_syms_03_a.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 l_1: list[str] = ['Monday', 'Tuesday', 'Wednesday'] diff --git a/integration_tests/if_02.py b/integration_tests/if_02.py index e3a5b203b6..2a607f7ae3 100644 --- a/integration_tests/if_02.py +++ b/integration_tests/if_02.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_if_01(): x: bool = True diff --git a/integration_tests/kwargs_01.py b/integration_tests/kwargs_01.py index 16fc30e5ea..2752769a15 100644 --- a/integration_tests/kwargs_01.py +++ b/integration_tests/kwargs_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, f32, f64, c64, overload +from lpython import i32, i64, f32, f64, c64, overload def func01(a: i32, b: i64) -> i64: return int(a) + b diff --git a/integration_tests/logical_binop1.py b/integration_tests/logical_binop1.py index e7fe3a43e5..4c610e0236 100644 --- a/integration_tests/logical_binop1.py +++ b/integration_tests/logical_binop1.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_issue_1487_1(): # OR operator: a or b a : i32 diff --git a/integration_tests/loop_01.py b/integration_tests/loop_01.py index 1b4f54a3c9..306dc9a09b 100644 --- a/integration_tests/loop_01.py +++ b/integration_tests/loop_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, i16 +from lpython import i32, i64, i16 def main0(): s: str = 'aabbcc'; c: str diff --git a/integration_tests/loop_02.py b/integration_tests/loop_02.py index bfd7eca86c..447ef6e6ad 100644 --- a/integration_tests/loop_02.py +++ b/integration_tests/loop_02.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_loop_01(): i: i32 = 0 j: i32 = 0 diff --git a/integration_tests/loop_03.py b/integration_tests/loop_03.py index 9101f0889c..dca553b2ba 100644 --- a/integration_tests/loop_03.py +++ b/integration_tests/loop_03.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_loop_01(): i: i32 = 0 diff --git a/integration_tests/loop_04.py b/integration_tests/loop_04.py index 7adc970d1e..1374a4edc8 100644 --- a/integration_tests/loop_04.py +++ b/integration_tests/loop_04.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 j: i32 i: i32 diff --git a/integration_tests/loop_05.py b/integration_tests/loop_05.py index 8379e23c42..fe06d74acd 100644 --- a/integration_tests/loop_05.py +++ b/integration_tests/loop_05.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def f(): j: i32 = 0 diff --git a/integration_tests/nrp/__init__.py b/integration_tests/nrp/__init__.py new file mode 100644 index 0000000000..f5631d2af1 --- /dev/null +++ b/integration_tests/nrp/__init__.py @@ -0,0 +1 @@ +from .nr import newton_raphson diff --git a/integration_tests/nrp/nr.py b/integration_tests/nrp/nr.py new file mode 100644 index 0000000000..89be2fb0d0 --- /dev/null +++ b/integration_tests/nrp/nr.py @@ -0,0 +1,20 @@ +from ltypes import i32, f64 + + +def func(x: f64, c: f64) -> f64: + return x**2.0 - c**2.0 + + +def func_prime(x: f64) -> f64: + return 2.0*x + + +def newton_raphson(x: f64, c: f64, maxiter: i32) -> f64: + h: f64 + err: f64 = 1e-5 + i: i32 = 0 + while abs(func(x, c)) > err and i < maxiter: + h = func(x, c) / func_prime(x) + x -= h + i += 1 + return x diff --git a/integration_tests/overload_testing.py b/integration_tests/overload_testing.py index 5fa06f88f0..d7cf1cd96c 100644 --- a/integration_tests/overload_testing.py +++ b/integration_tests/overload_testing.py @@ -1,4 +1,4 @@ -from ltypes import i32, overload +from lpython import i32, overload @overload def foo(a: i32, b: i32) -> i32: diff --git a/integration_tests/overload_testing2.py b/integration_tests/overload_testing2.py index 84ed4d0a4c..c01ae9f6a9 100644 --- a/integration_tests/overload_testing2.py +++ b/integration_tests/overload_testing2.py @@ -1,4 +1,4 @@ -from ltypes import i32, overload +from lpython import i32, overload @overload def foo2(a: i32, b: i32) -> i32: diff --git a/integration_tests/print_02.py b/integration_tests/print_02.py index d87009c59c..5b53eac8f8 100644 --- a/integration_tests/print_02.py +++ b/integration_tests/print_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 # Test: Printing ListConstant def f(): diff --git a/integration_tests/print_04.py b/integration_tests/print_04.py index b6a7cc4766..b66175cefc 100644 --- a/integration_tests/print_04.py +++ b/integration_tests/print_04.py @@ -1,4 +1,4 @@ -from ltypes import i8, i16, i32, i64 +from lpython import i8, i16, i32, i64 u: i64 = i64(-922337203685477580) print(u) diff --git a/integration_tests/print_float.py b/integration_tests/print_float.py index bd43c93b99..66ccb3878b 100644 --- a/integration_tests/print_float.py +++ b/integration_tests/print_float.py @@ -1,4 +1,4 @@ -from ltypes import f64 +from lpython import f64 def main0(): x: f64 = 0.00012 diff --git a/integration_tests/print_list_tuple_01.py b/integration_tests/print_list_tuple_01.py index 17583c008f..841c8baea5 100644 --- a/integration_tests/print_list_tuple_01.py +++ b/integration_tests/print_list_tuple_01.py @@ -1,4 +1,4 @@ -from ltypes import f64, i32, c64 +from lpython import f64, i32, c64 def test_print_list(): diff --git a/integration_tests/print_list_tuple_02.py b/integration_tests/print_list_tuple_02.py index 71d85e19aa..3db9c45a1f 100644 --- a/integration_tests/print_list_tuple_02.py +++ b/integration_tests/print_list_tuple_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def insert_tuples_into_list(l: list[tuple[i32, f64, str]], size: i32) -> list[tuple[i32, f64, str]]: i: i32 diff --git a/integration_tests/recursive_01.py b/integration_tests/recursive_01.py index 9800bc4f26..b739255654 100644 --- a/integration_tests/recursive_01.py +++ b/integration_tests/recursive_01.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def fib(n: i32) -> i32: if n <= 1: diff --git a/integration_tests/sizeof_01.py b/integration_tests/sizeof_01.py index 10aae4437a..d6c042b50c 100644 --- a/integration_tests/sizeof_01.py +++ b/integration_tests/sizeof_01.py @@ -1,4 +1,4 @@ -from ltypes import sizeof, i64, i32, f32, f64, c32, c64, i16, ccall, CPtr +from lpython import sizeof, i64, i32, f32, f64, c32, c64, i16, ccall, CPtr @ccall def cmalloc(bytes: i64) -> CPtr: diff --git a/integration_tests/structs_01.py b/integration_tests/structs_01.py index cbf943867c..e88682d93b 100644 --- a/integration_tests/structs_01.py +++ b/integration_tests/structs_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64, dataclass +from lpython import i32, f32, f64, dataclass @dataclass class A: diff --git a/integration_tests/structs_02.py b/integration_tests/structs_02.py index 56a6a5217f..5dc1acb5e6 100644 --- a/integration_tests/structs_02.py +++ b/integration_tests/structs_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, dataclass, CPtr, Pointer, c_p_pointer, pointer, ccallable, empty_c_void_p, f64 +from lpython import i32, f32, dataclass, CPtr, Pointer, c_p_pointer, pointer, ccallable, empty_c_void_p, f64 @dataclass class A: diff --git a/integration_tests/structs_03.py b/integration_tests/structs_03.py index de92f83167..aa5e3214e2 100644 --- a/integration_tests/structs_03.py +++ b/integration_tests/structs_03.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64, dataclass, Pointer, pointer +from lpython import i32, f32, f64, dataclass, Pointer, pointer @dataclass class A: diff --git a/integration_tests/structs_04.py b/integration_tests/structs_04.py index ab3555b143..ac902839a8 100644 --- a/integration_tests/structs_04.py +++ b/integration_tests/structs_04.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64, dataclass +from lpython import i32, f32, f64, dataclass from copy import deepcopy @dataclass diff --git a/integration_tests/structs_05.py b/integration_tests/structs_05.py index 233aa8190c..05c9dda4ea 100644 --- a/integration_tests/structs_05.py +++ b/integration_tests/structs_05.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, i64, i16, i8, f32, dataclass +from lpython import i32, f64, i64, i16, i8, f32, dataclass @dataclass class A: diff --git a/integration_tests/structs_06.py b/integration_tests/structs_06.py index 74a928a4ac..f82e026cdb 100644 --- a/integration_tests/structs_06.py +++ b/integration_tests/structs_06.py @@ -1,4 +1,4 @@ -from ltypes import i8, i32, i64, i8, i8, dataclass, packed +from lpython import i8, i32, i64, i8, i8, dataclass, packed @packed(aligned=1) @dataclass diff --git a/integration_tests/structs_07.py b/integration_tests/structs_07.py index 7d124ffb2e..3d0508ab3a 100644 --- a/integration_tests/structs_07.py +++ b/integration_tests/structs_07.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, i8, CPtr, sizeof, dataclass, ccall +from lpython import i32, i64, i8, CPtr, sizeof, dataclass, ccall @dataclass class A: diff --git a/integration_tests/structs_08.py b/integration_tests/structs_08.py index ba13e3e2db..0085334584 100644 --- a/integration_tests/structs_08.py +++ b/integration_tests/structs_08.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, dataclass, union, Union +from lpython import i32, i64, dataclass, union, Union from enum import Enum @union diff --git a/integration_tests/structs_09.py b/integration_tests/structs_09.py index ceff0277d5..ea309529be 100644 --- a/integration_tests/structs_09.py +++ b/integration_tests/structs_09.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64, dataclass +from lpython import i32, f32, f64, dataclass @dataclass class C: diff --git a/integration_tests/structs_10.py b/integration_tests/structs_10.py index bab2800e61..59fd41cd5b 100644 --- a/integration_tests/structs_10.py +++ b/integration_tests/structs_10.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, dataclass +from lpython import i32, f64, dataclass from numpy import empty, float64 @dataclass diff --git a/integration_tests/structs_11.py b/integration_tests/structs_11.py index 4fc71e595e..1eea62eb75 100644 --- a/integration_tests/structs_11.py +++ b/integration_tests/structs_11.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, dataclass +from lpython import i32, f64, dataclass @dataclass class A: diff --git a/integration_tests/structs_12.py b/integration_tests/structs_12.py index cb48e11125..c7a2cfb715 100644 --- a/integration_tests/structs_12.py +++ b/integration_tests/structs_12.py @@ -1,4 +1,4 @@ -from ltypes import i32, i16, dataclass +from lpython import i32, i16, dataclass @dataclass class A: diff --git a/integration_tests/structs_13.py b/integration_tests/structs_13.py index 4a7bb51f32..a53a727488 100644 --- a/integration_tests/structs_13.py +++ b/integration_tests/structs_13.py @@ -1,4 +1,4 @@ -from ltypes import i32, i16, i64, CPtr, dataclass, ccall, Pointer, c_p_pointer, sizeof +from lpython import i32, i16, i64, CPtr, dataclass, ccall, Pointer, c_p_pointer, sizeof @dataclass class A: diff --git a/integration_tests/structs_14.py b/integration_tests/structs_14.py index 05e399758e..911ebc2094 100644 --- a/integration_tests/structs_14.py +++ b/integration_tests/structs_14.py @@ -1,4 +1,4 @@ -from ltypes import i8, dataclass, i32, f32, c32, f64, i16, i64, c64, ccallable, packed +from lpython import i8, dataclass, i32, f32, c32, f64, i16, i64, c64, ccallable, packed from numpy import empty, int8, int16, int32, int64, float32, complex64, complex128, float64 from copy import deepcopy @@ -71,7 +71,7 @@ def f(): buffer_.buffer3[i] = c32(i + 7) # buffer_clink_.buffer3 is a ctypes.Array # of type c_float_complex (a ctypes.Structure - # defined in ltypes.py) and c32(i + 8) is a + # defined in lpython.py) and c32(i + 8) is a # Python object. Python doesn't allow assigning # a Python object to ctypes.Structure. Hence, # the following line is commented out. diff --git a/integration_tests/structs_15.py b/integration_tests/structs_15.py index a7e9fc9c88..4918cf15fd 100644 --- a/integration_tests/structs_15.py +++ b/integration_tests/structs_15.py @@ -1,4 +1,4 @@ -from ltypes import i32, i16, i8, i64, CPtr, dataclass, ccall, Pointer, c_p_pointer, sizeof +from lpython import i32, i16, i8, i64, CPtr, dataclass, ccall, Pointer, c_p_pointer, sizeof @dataclass class A: diff --git a/integration_tests/structs_16.py b/integration_tests/structs_16.py index 1cb49e8e3f..6cf6e638d5 100644 --- a/integration_tests/structs_16.py +++ b/integration_tests/structs_16.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, dataclass, union, Union +from lpython import i32, i64, dataclass, union, Union @dataclass class A: diff --git a/integration_tests/structs_17.py b/integration_tests/structs_17.py index 10d9717451..95aeada9c3 100644 --- a/integration_tests/structs_17.py +++ b/integration_tests/structs_17.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64, dataclass +from lpython import i32, f32, f64, dataclass @dataclass class B: diff --git a/integration_tests/structs_18.py b/integration_tests/structs_18.py index 45ba10d1b5..d6a5fbd66b 100644 --- a/integration_tests/structs_18.py +++ b/integration_tests/structs_18.py @@ -1,4 +1,4 @@ -from ltypes import i8, dataclass, i32, f32, c32, f64, i16, i64, c64, ccallable, packed, ccall, CPtr, p_c_pointer, empty_c_void_p, pointer +from lpython import i8, dataclass, i32, f32, c32, f64, i16, i64, c64, ccallable, packed, ccall, CPtr, p_c_pointer, empty_c_void_p, pointer from numpy import empty, int8, int16, int32, int64, float32, complex64, complex128, float64 from copy import deepcopy diff --git a/integration_tests/structs_19.py b/integration_tests/structs_19.py index ac34ebf0a4..1ae675eb81 100644 --- a/integration_tests/structs_19.py +++ b/integration_tests/structs_19.py @@ -1,4 +1,4 @@ -from ltypes import (i8, dataclass, i32, f32, c32, f64, i16, i64, c64, +from lpython import (i8, dataclass, i32, f32, c32, f64, i16, i64, c64, ccall, CPtr, c_p_pointer, Pointer, ccallable) from numpy import empty, int32, int8, float32, float64, int16, int64, complex64, complex128 diff --git a/integration_tests/structs_20.py b/integration_tests/structs_20.py index 6270416cf1..0b26bb6398 100644 --- a/integration_tests/structs_20.py +++ b/integration_tests/structs_20.py @@ -1,4 +1,4 @@ -from ltypes import (i8, dataclass, i32, f32, c32, f64, i16, i64, c64, +from lpython import (i8, dataclass, i32, f32, c32, f64, i16, i64, c64, ccall, CPtr, c_p_pointer, Pointer, packed, ccallable) from numpy import empty, int8, int16, float32, complex64 diff --git a/integration_tests/structs_21.py b/integration_tests/structs_21.py index 24c672c149..26d83aee39 100644 --- a/integration_tests/structs_21.py +++ b/integration_tests/structs_21.py @@ -1,4 +1,4 @@ -from ltypes import i32, CPtr, dataclass, c_p_pointer, p_c_pointer, \ +from lpython import i32, CPtr, dataclass, c_p_pointer, p_c_pointer, \ pointer, empty_c_void_p, Pointer, ccallable @ccallable diff --git a/integration_tests/test_01_goto.py b/integration_tests/test_01_goto.py index 2857c01768..a0842344d4 100644 --- a/integration_tests/test_01_goto.py +++ b/integration_tests/test_01_goto.py @@ -1,4 +1,4 @@ -from ltypes import with_goto, i32 +from lpython import with_goto, i32 @with_goto def f() -> i32: diff --git a/integration_tests/test_argv_01.py b/integration_tests/test_argv_01.py index d22b468e37..8e2a75c4bb 100644 --- a/integration_tests/test_argv_01.py +++ b/integration_tests/test_argv_01.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 from sys import _lpython_argv def test(): diff --git a/integration_tests/test_bit_length.py b/integration_tests/test_bit_length.py index 68bccae13f..52b17eb70f 100644 --- a/integration_tests/test_bit_length.py +++ b/integration_tests/test_bit_length.py @@ -1,5 +1,5 @@ from math import floor, log2 -from ltypes import i8, i32, i16 +from lpython import i8, i32, i16 def ff(): assert -8 .bit_length() == -4 diff --git a/integration_tests/test_bool_binop.py b/integration_tests/test_bool_binop.py index 98e817b2fa..e869e8f060 100644 --- a/integration_tests/test_bool_binop.py +++ b/integration_tests/test_bool_binop.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def f(): i: i32 diff --git a/integration_tests/test_builtin.py b/integration_tests/test_builtin.py index 8980fc37bc..7df13c3833 100644 --- a/integration_tests/test_builtin.py +++ b/integration_tests/test_builtin.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_ord(): s: str diff --git a/integration_tests/test_builtin_abs.py b/integration_tests/test_builtin_abs.py index 1186b832ce..19c7c6d3de 100644 --- a/integration_tests/test_builtin_abs.py +++ b/integration_tests/test_builtin_abs.py @@ -1,4 +1,4 @@ -from ltypes import f32, f64, i32, i64, i8, i16 +from lpython import f32, f64, i32, i64, i8, i16 def test_abs(): x: f64 diff --git a/integration_tests/test_builtin_bin.py b/integration_tests/test_builtin_bin.py index ce38dd7cc4..b8c3f20e5a 100644 --- a/integration_tests/test_builtin_bin.py +++ b/integration_tests/test_builtin_bin.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_bin(): i: i32 diff --git a/integration_tests/test_builtin_bool.py b/integration_tests/test_builtin_bool.py index 03b68f592c..fee923a1f2 100644 --- a/integration_tests/test_builtin_bool.py +++ b/integration_tests/test_builtin_bool.py @@ -1,4 +1,4 @@ -from ltypes import i8, i16, i32, i64, f32, f64, c32, c64 +from lpython import i8, i16, i32, i64, f32, f64, c32, c64 def test_bool(): a: i32 diff --git a/integration_tests/test_builtin_divmod.py b/integration_tests/test_builtin_divmod.py index 7a2713a565..9296e0605d 100644 --- a/integration_tests/test_builtin_divmod.py +++ b/integration_tests/test_builtin_divmod.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def f(): i: i32 = 42356 diff --git a/integration_tests/test_builtin_float.py b/integration_tests/test_builtin_float.py index f2b2ea20ec..9b28b0b61a 100644 --- a/integration_tests/test_builtin_float.py +++ b/integration_tests/test_builtin_float.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, f64 +from lpython import i32, f32, f64 def test_float(): i: i32 diff --git a/integration_tests/test_builtin_hex.py b/integration_tests/test_builtin_hex.py index 38ae1b0d7b..bf63d59f48 100644 --- a/integration_tests/test_builtin_hex.py +++ b/integration_tests/test_builtin_hex.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_hex(): i: i32 diff --git a/integration_tests/test_builtin_int.py b/integration_tests/test_builtin_int.py index a1deb495ed..248a82c100 100644 --- a/integration_tests/test_builtin_int.py +++ b/integration_tests/test_builtin_int.py @@ -1,4 +1,4 @@ -from ltypes import f64, i32, i64 +from lpython import f64, i32, i64 def test_int(): f: f64 diff --git a/integration_tests/test_builtin_len.py b/integration_tests/test_builtin_len.py index 70f5ea9f98..8da4a0dfc5 100644 --- a/integration_tests/test_builtin_len.py +++ b/integration_tests/test_builtin_len.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def test_len(): s: str diff --git a/integration_tests/test_builtin_oct.py b/integration_tests/test_builtin_oct.py index 516ee9933c..5613323f1f 100644 --- a/integration_tests/test_builtin_oct.py +++ b/integration_tests/test_builtin_oct.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_oct(): i: i32 diff --git a/integration_tests/test_builtin_pow.py b/integration_tests/test_builtin_pow.py index f2869e10f5..4ee87579e3 100644 --- a/integration_tests/test_builtin_pow.py +++ b/integration_tests/test_builtin_pow.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, f32, f64, c32 +from lpython import i32, i64, f32, f64, c32 def test_pow(): # TODO: the commented tests should also work diff --git a/integration_tests/test_builtin_round.py b/integration_tests/test_builtin_round.py index 6ac3fd1d5e..ee158d18f3 100644 --- a/integration_tests/test_builtin_round.py +++ b/integration_tests/test_builtin_round.py @@ -1,4 +1,4 @@ -from ltypes import i8, i16, i32, i64, f32, f64 +from lpython import i8, i16, i32, i64, f32, f64 def test_round(): f: f64 diff --git a/integration_tests/test_builtin_str.py b/integration_tests/test_builtin_str.py index cb65a46b47..bf3c1c106f 100644 --- a/integration_tests/test_builtin_str.py +++ b/integration_tests/test_builtin_str.py @@ -1,4 +1,4 @@ -from ltypes import f32, f64, i32 +from lpython import f32, f64, i32 def test_str_int_float(): s: str diff --git a/integration_tests/test_builtin_str_02.py b/integration_tests/test_builtin_str_02.py index 6498a631b7..aef019b4bb 100644 --- a/integration_tests/test_builtin_str_02.py +++ b/integration_tests/test_builtin_str_02.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def _lpython_strcmp_eq(a: str, b: str) -> bool: if len(a) != len(b): diff --git a/integration_tests/test_builtin_sum.py b/integration_tests/test_builtin_sum.py index 6243565801..000198dad0 100644 --- a/integration_tests/test_builtin_sum.py +++ b/integration_tests/test_builtin_sum.py @@ -1,4 +1,4 @@ -from ltypes import f32, f64, i32, i64 +from lpython import f32, f64, i32, i64 def test_sum(): arr_i32 :list[i32] diff --git a/integration_tests/test_c_interop_01.py b/integration_tests/test_c_interop_01.py index 3d8c5e7852..a2cb49604a 100644 --- a/integration_tests/test_c_interop_01.py +++ b/integration_tests/test_c_interop_01.py @@ -1,4 +1,4 @@ -from ltypes import ccall, f32, f64, i32, i64 +from lpython import ccall, f32, f64, i32, i64 #from math import pi @ccall diff --git a/integration_tests/test_c_interop_02.py b/integration_tests/test_c_interop_02.py index 55efd59e1d..1500e09892 100644 --- a/integration_tests/test_c_interop_02.py +++ b/integration_tests/test_c_interop_02.py @@ -1,4 +1,4 @@ -from ltypes import ccall, f32, f64, i8, i16, i32, i64 +from lpython import ccall, f32, f64, i8, i16, i32, i64 @ccall def f_f64_f64(x: f64) -> f64: diff --git a/integration_tests/test_c_interop_03.py b/integration_tests/test_c_interop_03.py index c94037a4d4..516eee6cda 100644 --- a/integration_tests/test_c_interop_03.py +++ b/integration_tests/test_c_interop_03.py @@ -1,4 +1,4 @@ -from ltypes import (ccall, f32, f64, i32, i64, CPtr, pointer, Pointer, +from lpython import (ccall, f32, f64, i32, i64, CPtr, pointer, Pointer, p_c_pointer, empty_c_void_p) @ccall diff --git a/integration_tests/test_c_interop_04.py b/integration_tests/test_c_interop_04.py index 30bb8236b6..0be53d4841 100644 --- a/integration_tests/test_c_interop_04.py +++ b/integration_tests/test_c_interop_04.py @@ -1,4 +1,4 @@ -from ltypes import (ccall, f32, f64, i32, i64, CPtr, pointer, Pointer, +from lpython import (ccall, f32, f64, i32, i64, CPtr, pointer, Pointer, p_c_pointer, empty_c_void_p) from numpy import empty, int32 diff --git a/integration_tests/test_c_interop_05.py b/integration_tests/test_c_interop_05.py index 116779d8db..fd87074ad4 100644 --- a/integration_tests/test_c_interop_05.py +++ b/integration_tests/test_c_interop_05.py @@ -1,4 +1,4 @@ -from ltypes import ccall, f32, f64, i32, i64, CPtr, pointer, Pointer, p_c_pointer +from lpython import ccall, f32, f64, i32, i64, CPtr, pointer, Pointer, p_c_pointer @ccall def f_i32_i32(x: i32) -> i32: diff --git a/integration_tests/test_cmath.py b/integration_tests/test_cmath.py index 2721b04dfa..c01b64bf3a 100644 --- a/integration_tests/test_cmath.py +++ b/integration_tests/test_cmath.py @@ -1,6 +1,6 @@ from cmath import (exp, log, sqrt, acos, asin, atan, cos, sin, tan, acosh, asinh, atanh, cosh, sinh, tanh) -from ltypes import c64, c32 +from lpython import c64, c32 def test_power_logarithmic(): x: c64 diff --git a/integration_tests/test_complex_01.py b/integration_tests/test_complex_01.py index 16d712f1a1..04f88b6895 100644 --- a/integration_tests/test_complex_01.py +++ b/integration_tests/test_complex_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, f32, f64, c32, c64 +from lpython import i32, i64, f32, f64, c32, c64 def test_real_imag(): x: c64 diff --git a/integration_tests/test_complex_02.py b/integration_tests/test_complex_02.py index 0da86a3f33..9a48c6fcb9 100644 --- a/integration_tests/test_complex_02.py +++ b/integration_tests/test_complex_02.py @@ -1,4 +1,4 @@ -from ltypes import f64, c32, c64 +from lpython import f64, c32, c64 def test_complex_abs(): x: c32 diff --git a/integration_tests/test_dict_01.py b/integration_tests/test_dict_01.py index 99b3043248..e76fcf966a 100644 --- a/integration_tests/test_dict_01.py +++ b/integration_tests/test_dict_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def test_dict(): rollnumber2cpi: dict[i32, f64] = {} diff --git a/integration_tests/test_dict_02.py b/integration_tests/test_dict_02.py index 2c397ae90c..672fcb1a5f 100644 --- a/integration_tests/test_dict_02.py +++ b/integration_tests/test_dict_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def test_dict(): rollnumber2cpi: dict[i32, f64] = {0: 1.1} diff --git a/integration_tests/test_dict_03.py b/integration_tests/test_dict_03.py index fa9ecc4691..24583d4ba8 100644 --- a/integration_tests/test_dict_03.py +++ b/integration_tests/test_dict_03.py @@ -1,4 +1,4 @@ -from ltypes import f64, i32, i64 +from lpython import f64, i32, i64 def power2(i: i64, mod: i64) -> i64: if i == i64(0) or i == i64(1): diff --git a/integration_tests/test_dict_04.py b/integration_tests/test_dict_04.py index ae6a4ec919..2665f38c11 100644 --- a/integration_tests/test_dict_04.py +++ b/integration_tests/test_dict_04.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, f64 +from lpython import i32, i64, f64 from math import pi, sin, cos def test_dict(): diff --git a/integration_tests/test_dict_05.py b/integration_tests/test_dict_05.py index 68d93705e6..302894123e 100644 --- a/integration_tests/test_dict_05.py +++ b/integration_tests/test_dict_05.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def test_dict(): rollnumber2cpi: dict[i32, f64] = {} diff --git a/integration_tests/test_generics_01.py b/integration_tests/test_generics_01.py index e6074541be..871f8b48ac 100644 --- a/integration_tests/test_generics_01.py +++ b/integration_tests/test_generics_01.py @@ -1,5 +1,5 @@ from overload_testing import foo, test -from ltypes import overload, i32, i64 +from lpython import overload, i32, i64 import overload_testing2 diff --git a/integration_tests/test_global_decl.py b/integration_tests/test_global_decl.py index beb67fc441..dd0f952006 100644 --- a/integration_tests/test_global_decl.py +++ b/integration_tests/test_global_decl.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 from numpy import empty, int32 # issue-1368 diff --git a/integration_tests/test_ifexp.py b/integration_tests/test_ifexp.py index 3b10e39326..11729d744b 100644 --- a/integration_tests/test_ifexp.py +++ b/integration_tests/test_ifexp.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32 +from lpython import i32, f32 def f(): i: i32 diff --git a/integration_tests/test_import/import_module_01/test_import_4.py b/integration_tests/test_import/import_module_01/test_import_4.py index 7f0c7ac5c1..f85a664a12 100644 --- a/integration_tests/test_import/import_module_01/test_import_4.py +++ b/integration_tests/test_import/import_module_01/test_import_4.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, Const +from lpython import i32, f64, Const e: Const[f64] = 2.71828182845904523536 diff --git a/integration_tests/test_import/import_module_02/test_import_3.py b/integration_tests/test_import/import_module_02/test_import_3.py index 28bfbb7f0f..015ac2ae3f 100644 --- a/integration_tests/test_import/import_module_02/test_import_3.py +++ b/integration_tests/test_import/import_module_02/test_import_3.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, Const +from lpython import i32, f64, Const μ: Const[f64] = 1.45136923488338105028 diff --git a/integration_tests/test_integer_bitnot.py b/integration_tests/test_integer_bitnot.py index 2c12e8ecf4..48ba56fe5b 100644 --- a/integration_tests/test_integer_bitnot.py +++ b/integration_tests/test_integer_bitnot.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def f(): i: i32 diff --git a/integration_tests/test_issue_518.py b/integration_tests/test_issue_518.py index cb1a4eacb9..755719a27b 100644 --- a/integration_tests/test_issue_518.py +++ b/integration_tests/test_issue_518.py @@ -1,4 +1,4 @@ -from ltypes import i64 +from lpython import i64 def fib(n: i64) -> i64: if n < i64(2): diff --git a/integration_tests/test_list_01.py b/integration_tests/test_list_01.py index a9042aa5e0..415ba87953 100644 --- a/integration_tests/test_list_01.py +++ b/integration_tests/test_list_01.py @@ -1,4 +1,4 @@ -from ltypes import f64, i32 +from lpython import f64, i32 def fill_list_i32(size: i32) -> list[i32]: aarg: list[i32] = [0, 1, 2, 3, 4] diff --git a/integration_tests/test_list_02.py b/integration_tests/test_list_02.py index 7879ffc9d0..f96d1f23d0 100644 --- a/integration_tests/test_list_02.py +++ b/integration_tests/test_list_02.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def fill_list_str(size: i32) -> list[str]: a: list[str] = ["0_str", "1_str"] diff --git a/integration_tests/test_list_03.py b/integration_tests/test_list_03.py index ee7c33b86a..dc69e445b7 100644 --- a/integration_tests/test_list_03.py +++ b/integration_tests/test_list_03.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_list_01(n: i32) -> i32: a: list[i32] = [] diff --git a/integration_tests/test_list_04.py b/integration_tests/test_list_04.py index 687745bcf1..7c09061768 100644 --- a/integration_tests/test_list_04.py +++ b/integration_tests/test_list_04.py @@ -1,5 +1,5 @@ from math import sqrt -from ltypes import i32, f64 +from lpython import i32, f64 def test_list_01(): x: list[i32] = [] diff --git a/integration_tests/test_list_05.py b/integration_tests/test_list_05.py index 088048968e..325e047b6c 100644 --- a/integration_tests/test_list_05.py +++ b/integration_tests/test_list_05.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def check_list_of_tuples(l: list[tuple[i32, f64, str]], sign: i32): size: i32 = len(l) diff --git a/integration_tests/test_list_06.py b/integration_tests/test_list_06.py index dcede48d7e..b21b7c0ecc 100644 --- a/integration_tests/test_list_06.py +++ b/integration_tests/test_list_06.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 from copy import deepcopy def check_mat_and_vec(mat: list[list[f64]], vec: list[f64]): diff --git a/integration_tests/test_list_07.py b/integration_tests/test_list_07.py index bd33a079eb..54a0f4d406 100644 --- a/integration_tests/test_list_07.py +++ b/integration_tests/test_list_07.py @@ -1,4 +1,4 @@ -from ltypes import c64, i32 +from lpython import c64, i32 from copy import deepcopy def generate_complex_tensors(mat: list[list[c64]], vec: list[c64]) -> list[tuple[list[list[c64]], list[c64]]]: diff --git a/integration_tests/test_list_08.py b/integration_tests/test_list_08.py index 21b2eb7758..9b120f15ae 100644 --- a/integration_tests/test_list_08.py +++ b/integration_tests/test_list_08.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 from copy import deepcopy def sort(l: list[i32]) -> list[i32]: diff --git a/integration_tests/test_list_09.py b/integration_tests/test_list_09.py index 2aa4a369b3..650293e474 100644 --- a/integration_tests/test_list_09.py +++ b/integration_tests/test_list_09.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_list_concat(): x: list[i32] = [] diff --git a/integration_tests/test_list_10.py b/integration_tests/test_list_10.py index c938e56cbb..5216054ddf 100644 --- a/integration_tests/test_list_10.py +++ b/integration_tests/test_list_10.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_list_section(): x: list[i32] = [] diff --git a/integration_tests/test_list_section.py b/integration_tests/test_list_section.py index 3c59383d79..639e639a55 100644 --- a/integration_tests/test_list_section.py +++ b/integration_tests/test_list_section.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_issue_1369(): diff --git a/integration_tests/test_math.py b/integration_tests/test_math.py index 05fa8dd4a0..eee0404d54 100644 --- a/integration_tests/test_math.py +++ b/integration_tests/test_math.py @@ -2,7 +2,7 @@ ldexp, fabs, gcd, lcm, floor, ceil, remainder, expm1, fmod, log1p, trunc, modf, fsum, prod, dist) import math -from ltypes import i32, i64, f32, f64 +from lpython import i32, i64, f32, f64 eps: f64 eps = 1e-12 diff --git a/integration_tests/test_math1.py b/integration_tests/test_math1.py index b9e4bda987..41c4441660 100644 --- a/integration_tests/test_math1.py +++ b/integration_tests/test_math1.py @@ -1,6 +1,6 @@ import math from math import pi, e -from ltypes import i32 +from lpython import i32 def f(): diff --git a/integration_tests/test_math_02.py b/integration_tests/test_math_02.py index b154fcb152..60621facb0 100644 --- a/integration_tests/test_math_02.py +++ b/integration_tests/test_math_02.py @@ -1,7 +1,7 @@ from math import (sin, cos, tan, pi, sqrt, log, log10, log2, erf, erfc, gamma, lgamma, asin, acos, atan, atan2, asinh, acosh, atanh, tanh, sinh, cosh, hypot, copysign) -from ltypes import f64 +from lpython import f64 def test_trig(): eps: f64 = 1e-12 diff --git a/integration_tests/test_math_03.py b/integration_tests/test_math_03.py index adb6a2af09..8047ce2c24 100644 --- a/integration_tests/test_math_03.py +++ b/integration_tests/test_math_03.py @@ -1,5 +1,5 @@ from math import (cbrt, exp2) -from ltypes import f64 +from lpython import f64 eps: f64 eps = 1e-12 diff --git a/integration_tests/test_max_min.py b/integration_tests/test_max_min.py index 80eb924a10..79462ec2f4 100644 --- a/integration_tests/test_max_min.py +++ b/integration_tests/test_max_min.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def test_max_int(): a: i32 = 1 diff --git a/integration_tests/test_numpy_01.py b/integration_tests/test_numpy_01.py index 6b4119b972..97d4a2405a 100644 --- a/integration_tests/test_numpy_01.py +++ b/integration_tests/test_numpy_01.py @@ -1,6 +1,6 @@ # This test handles various aspects of local arrays using the `numpy.empty()` # function -from ltypes import f64, i32 +from lpython import f64, i32 from numpy import empty def test_local_arrays(): diff --git a/integration_tests/test_numpy_02.py b/integration_tests/test_numpy_02.py index 7b23ac2a4b..87ed3453cd 100644 --- a/integration_tests/test_numpy_02.py +++ b/integration_tests/test_numpy_02.py @@ -1,6 +1,6 @@ # This test handles actual LPython implementations of functions from the numpy # module. -from ltypes import i32, i64, f32, f64, c32, c64, TypeVar, overload +from lpython import i32, i64, f32, f64, c32, c64, TypeVar, overload from numpy import empty, int64 e: f64 = 2.718281828459045 diff --git a/integration_tests/test_numpy_03.py b/integration_tests/test_numpy_03.py index ea1058a19d..d0e60006ad 100644 --- a/integration_tests/test_numpy_03.py +++ b/integration_tests/test_numpy_03.py @@ -1,4 +1,4 @@ -from ltypes import f64, i32 +from lpython import f64, i32 from numpy import reshape, empty def test_nd_to_1d(a: f64[:, :]): diff --git a/integration_tests/test_numpy_04.py b/integration_tests/test_numpy_04.py index 1225b307a7..823c573af8 100644 --- a/integration_tests/test_numpy_04.py +++ b/integration_tests/test_numpy_04.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 from numpy import array def test_array_01(): diff --git a/integration_tests/test_os.py b/integration_tests/test_os.py index b513fbbcae..20f92c342d 100644 --- a/integration_tests/test_os.py +++ b/integration_tests/test_os.py @@ -1,4 +1,4 @@ -from ltypes import i64 +from lpython import i64 from os import (open, read, close, O_RDONLY) def test(): diff --git a/integration_tests/test_package_01.py b/integration_tests/test_package_01.py new file mode 100644 index 0000000000..0026a0c8c7 --- /dev/null +++ b/integration_tests/test_package_01.py @@ -0,0 +1,13 @@ +from nrp import newton_raphson +from ltypes import f64, i32 + + +def check(): + x0: f64 = 20.0 + c: f64 = 3.0 + maxiter: i32 = 20 + x: f64 + x = newton_raphson(x0, c, maxiter) + assert abs(x - 3.0) < 1e-5 + +check() diff --git a/integration_tests/test_pass_compare.py b/integration_tests/test_pass_compare.py index f98dee1416..f076366b83 100644 --- a/integration_tests/test_pass_compare.py +++ b/integration_tests/test_pass_compare.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def f(): diff --git a/integration_tests/test_random.py b/integration_tests/test_random.py index d1cded5add..db60a16d37 100644 --- a/integration_tests/test_random.py +++ b/integration_tests/test_random.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 import random diff --git a/integration_tests/test_statistics.py b/integration_tests/test_statistics.py index f6bb522899..d0f6b98747 100644 --- a/integration_tests/test_statistics.py +++ b/integration_tests/test_statistics.py @@ -1,7 +1,7 @@ from statistics import (mean, fmean, geometric_mean, harmonic_mean, variance, stdev, pvariance, pstdev, correlation, covariance, linear_regression, mode) -from ltypes import i32, f64, i64, f32 +from lpython import i32, f64, i64, f32 eps: f64 diff --git a/integration_tests/test_str_03.py b/integration_tests/test_str_03.py index 37f96c7632..5dd91d3d35 100644 --- a/integration_tests/test_str_03.py +++ b/integration_tests/test_str_03.py @@ -1,4 +1,4 @@ -from ltypes import i8, i16, i32, i64 +from lpython import i8, i16, i32, i64 def test_new_line(): print("abc\n") diff --git a/integration_tests/test_str_to_int.py b/integration_tests/test_str_to_int.py index 374ca141f0..0f530d302e 100644 --- a/integration_tests/test_str_to_int.py +++ b/integration_tests/test_str_to_int.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def f(): i: i32 diff --git a/integration_tests/test_tuple_01.py b/integration_tests/test_tuple_01.py index fdafb23b4e..726f7d0e18 100644 --- a/integration_tests/test_tuple_01.py +++ b/integration_tests/test_tuple_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def f(): t1: tuple[i32, f64, str, bool] = (1, 2.0, "3", True) diff --git a/integration_tests/test_tuple_02.py b/integration_tests/test_tuple_02.py index b2218288a5..85dc88381f 100644 --- a/integration_tests/test_tuple_02.py +++ b/integration_tests/test_tuple_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, c64 +from lpython import i32, f64, c64 def set_tuple(a: i32, b: f64) -> tuple[i32, f64, str, c64]: t: tuple[i32, f64, str, c64] diff --git a/integration_tests/test_tuple_03.py b/integration_tests/test_tuple_03.py index a2ba5f9543..affd983008 100644 --- a/integration_tests/test_tuple_03.py +++ b/integration_tests/test_tuple_03.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def f(): t1: tuple[i32, f64, str] = (1, 2.0, "3") diff --git a/integration_tests/test_types_01.py b/integration_tests/test_types_01.py index 1894ebe961..ee4c1e9169 100644 --- a/integration_tests/test_types_01.py +++ b/integration_tests/test_types_01.py @@ -1,4 +1,4 @@ -from ltypes import i8, i16, i32, i64 +from lpython import i8, i16, i32, i64 def test_i8(): i: i8 diff --git a/integration_tests/test_unary_minus.py b/integration_tests/test_unary_minus.py index 02de00715f..08182832f1 100644 --- a/integration_tests/test_unary_minus.py +++ b/integration_tests/test_unary_minus.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def f(): eps: f64 diff --git a/integration_tests/test_unary_plus.py b/integration_tests/test_unary_plus.py index 7067c03639..396b8e07cc 100644 --- a/integration_tests/test_unary_plus.py +++ b/integration_tests/test_unary_plus.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, c32 +from lpython import i32, f64, c32 def f(): eps: f64 diff --git a/integration_tests/union_01.py b/integration_tests/union_01.py index 05cff1bf78..7fda2326df 100644 --- a/integration_tests/union_01.py +++ b/integration_tests/union_01.py @@ -1,4 +1,4 @@ -from ltypes import Union, i32, i64, f64, f32, ccall, union +from lpython import Union, i32, i64, f64, f32, ccall, union @ccall @union diff --git a/integration_tests/union_02.py b/integration_tests/union_02.py index dd693ef041..12b340b3dd 100644 --- a/integration_tests/union_02.py +++ b/integration_tests/union_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, i64, dataclass, ccall, union, Union +from lpython import i32, f64, i64, dataclass, ccall, union, Union @dataclass class A: diff --git a/integration_tests/union_03.py b/integration_tests/union_03.py index 5033085158..4c8c538ac4 100644 --- a/integration_tests/union_03.py +++ b/integration_tests/union_03.py @@ -1,4 +1,4 @@ -from ltypes import Union, i32, i64, f64, f32, union +from lpython import Union, i32, i64, f64, f32, union # without ccall but same as union_01.py @union diff --git a/integration_tests/variable_decl_01.py b/integration_tests/variable_decl_01.py index 9672366969..dc42f55d99 100644 --- a/integration_tests/variable_decl_01.py +++ b/integration_tests/variable_decl_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64 +from lpython import i32, i64 from numpy import empty, int64 def f(n: i32, m: i32): diff --git a/integration_tests/variable_decl_02.py b/integration_tests/variable_decl_02.py index 08d1486552..9ee2a67034 100644 --- a/integration_tests/variable_decl_02.py +++ b/integration_tests/variable_decl_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64 +from lpython import i32, i64 def f(): d: i32 = 0 diff --git a/integration_tests/vec_01.py b/integration_tests/vec_01.py index 4bbcb87522..a84b9c6047 100644 --- a/integration_tests/vec_01.py +++ b/integration_tests/vec_01.py @@ -1,4 +1,4 @@ -from ltypes import f64 +from lpython import f64 from numpy import empty def loop_vec(): diff --git a/src/bin/bench_gen.py b/src/bin/bench_gen.py index a25957a5db..3c47106fd5 100755 --- a/src/bin/bench_gen.py +++ b/src/bin/bench_gen.py @@ -18,7 +18,7 @@ def A{i}(x: i32) -> i32: calls += f" y = A{i}(y)\n" source = f"""\ -from ltypes import i32 +from lpython import i32 {A_functions} diff --git a/src/libasr/codegen/wasm_decoder.h b/src/libasr/codegen/wasm_decoder.h index 9edb61080d..2e5ea8bd6d 100644 --- a/src/libasr/codegen/wasm_decoder.h +++ b/src/libasr/codegen/wasm_decoder.h @@ -349,41 +349,39 @@ class WASMDecoder { "Expected: 0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00"); } index += PREAMBLE_SIZE; + uint32_t expected_min_section_id = 1; while (index < wasm_bytes.size()) { uint32_t section_id = read_u32(wasm_bytes, index); uint32_t section_size = read_u32(wasm_bytes, index); + if (section_id < expected_min_section_id) { + throw CodeGenError("DecodeWASM: Invalid sectionId, expected id >= " + + std::to_string(expected_min_section_id)); + } + expected_min_section_id = section_id + 1; switch (section_id) { case 1U: decode_type_section(index); - // exit(0); break; case 2U: decode_imports_section(index); - // exit(0); break; case 3U: decode_function_section(index); - // exit(0); break; case 5U: decode_memory_section(index); - // exit(0); break; case 6U: decode_global_section(index); - // exit(0); break; case 7U: decode_export_section(index); - // exit(0); break; case 10U: decode_code_section(index); - // exit(0) break; case 11U: decode_data_section(index); - // exit(0) break; default: std::cout << "Unknown section id: " << section_id diff --git a/src/libasr/codegen/wasm_to_x64.cpp b/src/libasr/codegen/wasm_to_x64.cpp index 76074eff4c..dd5fb4711b 100644 --- a/src/libasr/codegen/wasm_to_x64.cpp +++ b/src/libasr/codegen/wasm_to_x64.cpp @@ -579,7 +579,7 @@ class X64Visitor : public WASMDecoder, void visit_F32Sqrt() { visit_F64Sqrt(); } void gen_x64_bytes() { - emit_elf64_header(m_a, 7U); + emit_elf64_header(m_a); // declare compile-time strings std::string base_memory = " "; /* in wasm backend, memory starts after 4 bytes*/ @@ -589,6 +589,9 @@ class X64Visitor : public WASMDecoder, label_to_str["base_memory"] = base_memory; NO_OF_IMPORTS = imports.size(); + + m_a.align_by_byte(0x1000); + m_a.add_label("text_segment_start"); for (uint32_t idx = 0; idx < type_indices.size(); idx++) { m_a.add_label(exports[idx + 1].name); { @@ -607,14 +610,18 @@ class X64Visitor : public WASMDecoder, } - for (auto &s : label_to_str) { - emit_data_string(m_a, s.first, s.second); - } - for (auto &d : double_consts) { emit_double_const(m_a, d.first, d.second); } + m_a.add_label("text_segment_end"); + + m_a.align_by_byte(0x1000); + m_a.add_label("data_segment_start"); + for (auto &s : label_to_str) { + emit_data_string(m_a, s.first, s.second); + } + for (size_t i = 0; i < globals.size(); i++) { uint32_t tmp_offset = globals[i].insts_start_idx; wasm::read_b8(wasm_bytes, tmp_offset); // read byte for i32/i64/f32/f64.const @@ -644,6 +651,7 @@ class X64Visitor : public WASMDecoder, default: throw CodeGenError("decode_global_section: Unsupport global type"); break; } } + m_a.add_label("data_segment_end"); emit_elf64_footer(m_a); } diff --git a/src/libasr/codegen/x86_assembler.cpp b/src/libasr/codegen/x86_assembler.cpp index eadff7b7ba..600239d2d8 100644 --- a/src/libasr/codegen/x86_assembler.cpp +++ b/src/libasr/codegen/x86_assembler.cpp @@ -62,7 +62,6 @@ void emit_elf32_header(X86Assembler &a, uint32_t p_flags) { a.asm_dw_imm16(0); // e_shnum a.asm_dw_imm16(0); // e_shstrndx - a.add_var("ehdrsize", a.pos()-a.get_defined_symbol("ehdr").value); /* Elf32_Phdr */ a.add_label("phdr"); @@ -74,13 +73,16 @@ void emit_elf32_header(X86Assembler &a, uint32_t p_flags) { a.asm_dd_label("filesize"); // p_memsz a.asm_dd_imm32(p_flags); // p_flags a.asm_dd_imm32(0x1000); // p_align + a.add_label("phdr_end"); - a.add_var("phdrsize", a.pos()-a.get_defined_symbol("phdr").value); - a.add_var("e_phoff", a.get_defined_symbol("phdr").value-a.origin()); + a.add_var("ehdrsize", "ehdr", "phdr"); + a.add_var("phdrsize", "phdr", "phdr_end"); + a.add_var("e_phoff", "ehdr", "phdr"); } void emit_elf32_footer(X86Assembler &a) { - a.add_var_size("filesize"); + a.add_label("footer"); + a.add_var("filesize", "ehdr", "footer"); } void emit_exit(X86Assembler &a, const std::string &name, @@ -281,8 +283,8 @@ void emit_print_float(X86Assembler &a, const std::string &name) { /************************* 64-bit functions **************************/ -void emit_elf64_header(X86Assembler &a, uint32_t p_flags) { - /* Elf32_Ehdr */ +void emit_elf64_header(X86Assembler &a) { + /* Elf64_Ehdr */ a.add_label("ehdr"); // e_ident a.asm_db_imm8(0x7F); @@ -313,30 +315,54 @@ void emit_elf64_header(X86Assembler &a, uint32_t p_flags) { a.asm_dd_imm32(0); // e_flags a.asm_dw_label("ehdrsize"); // e_ehsize a.asm_dw_label("phdrsize"); // e_phentsize - a.asm_dw_imm16(1); // e_phnum + a.asm_dw_imm16(3); // e_phnum a.asm_dw_imm16(0); // e_shentsize a.asm_dw_imm16(0); // e_shnum a.asm_dw_imm16(0); // e_shstrndx - a.add_var("ehdrsize", a.pos()-a.get_defined_symbol("ehdr").value); - - /* Elf32_Phdr */ + /* Elf64_Phdr */ a.add_label("phdr"); - a.asm_dd_imm32(1); // p_type - a.asm_dd_imm32(p_flags); // p_flags + a.asm_dd_imm32(1); // p_type + a.asm_dd_imm32(4); // p_flags (permission to read only) a.asm_dq_imm64(0); // p_offset a.asm_dq_imm64(a.origin()); // p_vaddr a.asm_dq_imm64(a.origin()); // p_paddr - a.asm_dq_label("filesize"); // p_filesz - a.asm_dq_label("filesize"); // p_memsz + a.asm_dq_label("phdr_size"); // p_filesz + a.asm_dq_label("phdr_size"); // p_memsz a.asm_dq_imm64(0x1000); // p_align - a.add_var("phdrsize", a.pos()-a.get_defined_symbol("phdr").value); - a.add_var64("e_phoff", a.get_defined_symbol("phdr").value-a.origin()); + /* text_segment_phdr */ + a.add_label("text_phdr"); + a.asm_dd_imm32(1); // p_type + a.asm_dd_imm32(5); // p_flags (permission to read and execute) + a.asm_dq_label("text_segment_offset"); // p_offset + a.asm_dq_label("text_segment_start"); // p_vaddr + a.asm_dq_label("text_segment_start"); // p_paddr + a.asm_dq_label("text_segment_size"); // p_filesz + a.asm_dq_label("text_segment_size"); // p_memsz + a.asm_dq_imm64(0x1000); // p_align + + /* data_segment_phdr */ + a.add_label("data_phdr"); + a.asm_dd_imm32(1); // p_type + a.asm_dd_imm32(6); // p_flags (permission to read and write) + a.asm_dq_label("data_segment_offset"); // p_offset + a.asm_dq_label("data_segment_start"); // p_vaddr + a.asm_dq_label("data_segment_start"); // p_paddr + a.asm_dq_label("data_segment_size"); // p_filesz + a.asm_dq_label("data_segment_size"); // p_memsz + a.asm_dq_imm64(0x1000); // p_align } void emit_elf64_footer(X86Assembler &a) { - a.add_var_size("filesize"); + a.add_var("ehdrsize", "ehdr", "phdr"); + a.add_var("phdrsize", "phdr", "text_phdr"); + a.add_var64("e_phoff", "ehdr", "phdr"); + a.add_var64("phdr_size", "ehdr", "text_segment_start"); + a.add_var64("text_segment_offset", "ehdr", "text_segment_start"); + a.add_var64("text_segment_size", "text_segment_start", "text_segment_end"); + a.add_var64("data_segment_offset", "ehdr", "data_segment_start"); + a.add_var64("data_segment_size", "data_segment_start", "data_segment_end"); } void emit_exit_64(X86Assembler &a, std::string name, int exit_code) { diff --git a/src/libasr/codegen/x86_assembler.h b/src/libasr/codegen/x86_assembler.h index 8cf73a4b09..8f21f3a7f2 100644 --- a/src/libasr/codegen/x86_assembler.h +++ b/src/libasr/codegen/x86_assembler.h @@ -30,6 +30,7 @@ Old Link: https://www.systutorials.com/go/intel-x86-64-reference-manual/ #include #include #include +#include #include #include @@ -40,13 +41,11 @@ Old Link: https://www.systutorials.com/go/intel-x86-64-reference-manual/ #ifdef LFORTRAN_ASM_PRINT # define EMIT(s) emit(" ", s) # define EMIT_LABEL(s) emit("", s) -# define EMIT_VAR(a, b) emit("\n", a + " equ " + i2s(b) + "\n") -# define EMIT_VAR_SIZE(a) emit("\n", a + " equ $ - $$\n") // $ is current addr, $$ is start addr +# define EMIT_VAR(a, b, c) emit(" ", a + " equ " + c + " - " + b) #else # define EMIT(s) # define EMIT_LABEL(s) # define EMIT_VAR(a, b) -# define EMIT_VAR_SIZE(a) #endif namespace LCompilers { @@ -465,6 +464,15 @@ class X86Assembler { return m_code; } + void align_by_byte(uint64_t alignment) { + uint64_t code_size = m_code.size() ; + uint64_t padding_size = (alignment * ceil(code_size / (double)alignment)) - code_size; + for (size_t i = 0; i < padding_size; i++) { + m_code.push_back(m_al, 0); + } + EMIT("\n\talign " + std::to_string(alignment) + ", db 0"); + } + void define_symbol(const std::string &name, uint32_t value) { if (m_symbols.find(name) == m_symbols.end()) { Symbol s; @@ -548,22 +556,17 @@ class X86Assembler { EMIT_LABEL(label + ":"); } - void add_var_size(const std::string &var) { - uint64_t val = pos() - origin(); - // TODO: Support 64-bit or 8 byte parameter val in define_symbol() - define_symbol(var, val); - EMIT_VAR_SIZE(var); - } - - void add_var64(const std::string &var, uint64_t val) { + void add_var64(const std::string &var, const std::string &start, const std::string &end) { // TODO: Support 64-bit or 8 byte parameter val in define_symbol() + uint64_t val = get_defined_symbol(end).value - get_defined_symbol(start).value; define_symbol(var, val); - EMIT_VAR(var, val); + EMIT_VAR(var, start, end); } - void add_var(const std::string &var, uint32_t val) { + void add_var(const std::string &var, const std::string &start, const std::string &end) { + uint32_t val = get_defined_symbol(end).value - get_defined_symbol(start).value; define_symbol(var, val); - EMIT_VAR(var, val); + EMIT_VAR(var, start, end); } uint32_t pos() { @@ -1539,7 +1542,7 @@ void emit_print_float(X86Assembler &a, const std::string &name); // Generate an ELF 64 bit header and footer // With these two functions, one only must generate a `_start` assembly // function to have a working binary on Linux. -void emit_elf64_header(X86Assembler &a, uint32_t p_flags=5); +void emit_elf64_header(X86Assembler &a); void emit_elf64_footer(X86Assembler &a); void emit_exit_64(X86Assembler &a, std::string label, int exit_code); diff --git a/src/lpython/semantics/python_ast_to_asr.cpp b/src/lpython/semantics/python_ast_to_asr.cpp index 980ca0a61a..71d94a0263 100644 --- a/src/lpython/semantics/python_ast_to_asr.cpp +++ b/src/lpython/semantics/python_ast_to_asr.cpp @@ -186,8 +186,8 @@ int save_pyc_files(const ASR::TranslationUnit_t &u, // * Then the LPython runtime directory Result get_full_path(const std::string &filename, const std::string &runtime_library_dir, std::string& input, - bool <ypes, bool& enum_py) { - ltypes = false; + bool &lpython, bool& enum_py) { + lpython = false; enum_py = false; std::string file_path; if( *(runtime_library_dir.rbegin()) == '/' ) { @@ -203,12 +203,12 @@ Result get_full_path(const std::string &filename, if (status) { return file_path; } else { - // If this is `ltypes`, do a special lookup - if (filename == "ltypes.py") { - file_path = runtime_library_dir + "/ltypes/" + filename; + // If this is `lpython`, do a special lookup + if (filename == "lpython.py") { + file_path = runtime_library_dir + "/lpython/" + filename; status = read_file(file_path, input); if (status) { - ltypes = true; + lpython = true; return file_path; } else { return Error(); @@ -233,9 +233,9 @@ Result get_full_path(const std::string &filename, bool set_module_path(std::string infile0, std::vector &rl_path, std::string& infile, std::string& path_used, std::string& input, - bool& ltypes, bool& enum_py) { + bool& lpython, bool& enum_py) { for (auto path: rl_path) { - Result rinfile = get_full_path(infile0, path, input, ltypes, enum_py); + Result rinfile = get_full_path(infile0, path, input, lpython, enum_py); if (rinfile.ok) { infile = rinfile.result; path_used = path; @@ -303,10 +303,10 @@ ASR::Module_t* load_module(Allocator &al, SymbolTable *symtab, const Location &loc, diag::Diagnostics &diagnostics, LocationManager &lm, bool intrinsic, std::vector &rl_path, - bool <ypes, bool& enum_py, bool& copy, + bool &lpython, bool& enum_py, bool& copy, const std::function err, bool allow_implicit_casting) { - ltypes = false; + lpython = false; enum_py = false; copy = false; if( module_name == "copy" ) { @@ -333,11 +333,11 @@ ASR::Module_t* load_module(Allocator &al, SymbolTable *symtab, std::string input; std::string module_dir_name = ""; bool found = set_module_path(infile0c, rl_path, infile, - path_used, input, ltypes, enum_py); + path_used, input, lpython, enum_py); if( !found ) { input.clear(); found = set_module_path(infile0, rl_path, infile, - path_used, input, ltypes, enum_py); + path_used, input, lpython, enum_py); } else { mod1 = load_pycfile(al, input, false); fix_external_symbols(*mod1, *ASRUtils::get_tu_symtab(symtab)); @@ -353,7 +353,7 @@ ASR::Module_t* load_module(Allocator &al, SymbolTable *symtab, err("Could not find the module '" + module_name + "'. If an import path " "is available, please use the `-I` option to specify it", loc); } - if (ltypes) return nullptr; + if (lpython) return nullptr; if( compile_module ) { diagnostics.add(diag::Diagnostic( @@ -578,13 +578,13 @@ class CommonVisitor : public AST::BaseVisitor { SymbolTable *tu_symtab = ASRUtils::get_tu_symtab(current_scope); std::string rl_path = get_runtime_library_dir(); std::vector paths = {rl_path, parent_dir}; - bool ltypes, enum_py, copy; + bool lpython, enum_py, copy; ASR::Module_t *m = load_module(al, tu_symtab, module_name, loc, diag, lm, true, paths, - ltypes, enum_py, copy, + lpython, enum_py, copy, [&](const std::string &msg, const Location &loc) { throw SemanticError(msg, loc); }, allow_implicit_casting); - LCOMPILERS_ASSERT(!ltypes && !enum_py) + LCOMPILERS_ASSERT(!lpython && !enum_py) ASR::symbol_t *t = m->m_symtab->resolve_symbol(remote_sym); if (!t) { @@ -3554,14 +3554,14 @@ class SymbolTableVisitor : public CommonVisitor { } /* - Return in case of ltypes module. + Return in case of lpython module. TODO: Restrict the check only if - ltypes is the same module as src/runtime/ltypes - For now its wild card i.e., ltypes.py present + lpython is the same module as src/runtime/lpython + For now its wild card i.e., lpython.py present in any directory other than src/runtime will also be ignored. */ - if (mod_sym == "ltypes") { + if (mod_sym == "lpython") { return ; } @@ -3630,14 +3630,14 @@ class SymbolTableVisitor : public CommonVisitor { if (!main_module) { st = st->parent; } - bool ltypes, enum_py, copy; + bool lpython, enum_py, copy; set_module_symbol(msym, paths); t = (ASR::symbol_t*)(load_module(al, st, - msym, x.base.base.loc, diag, lm, false, paths, ltypes, enum_py, copy, + msym, x.base.base.loc, diag, lm, false, paths, lpython, enum_py, copy, [&](const std::string &msg, const Location &loc) { throw SemanticError(msg, loc); }, allow_implicit_casting)); - if (ltypes || enum_py || copy) { - // TODO: For now we skip ltypes import completely. Later on we should note what symbols + if (lpython || enum_py || copy) { + // TODO: For now we skip lpython import completely. Later on we should note what symbols // got imported from it, and give an error message if an annotation is used without // importing it. tmp = nullptr; @@ -3688,14 +3688,14 @@ class SymbolTableVisitor : public CommonVisitor { st = st->parent; } for (auto &mod_sym : mods) { - bool ltypes, enum_py, copy; + bool lpython, enum_py, copy; set_module_symbol(mod_sym, paths); t = (ASR::symbol_t*)(load_module(al, st, - mod_sym, x.base.base.loc, diag, lm, false, paths, ltypes, enum_py, copy, + mod_sym, x.base.base.loc, diag, lm, false, paths, lpython, enum_py, copy, [&](const std::string &msg, const Location &loc) { throw SemanticError(msg, loc); }, allow_implicit_casting)); - if (ltypes || enum_py || copy) { - // TODO: For now we skip ltypes import completely. Later on we should note what symbols + if (lpython || enum_py || copy) { + // TODO: For now we skip lpython import completely. Later on we should note what symbols // got imported from it, and give an error message if an annotation is used without // importing it. tmp = nullptr; diff --git a/src/lpython/tests/test_asm.cpp b/src/lpython/tests/test_asm.cpp index a65010f256..1f1b5601dd 100644 --- a/src/lpython/tests/test_asm.cpp +++ b/src/lpython/tests/test_asm.cpp @@ -403,9 +403,6 @@ BITS 32 dw 0x0000 dw 0x0000 dw 0x0000 - -ehdrsize equ 0x00000034 - phdr: dd 0x00000001 dd 0x00000000 @@ -415,12 +412,10 @@ ehdrsize equ 0x00000034 dd filesize dd 0x00000005 dd 0x00001000 - -phdrsize equ 0x00000020 - - -e_phoff equ 0x00000034 - +phdr_end: + ehdrsize equ phdr - ehdr + phdrsize equ phdr_end - phdr + e_phoff equ phdr - ehdr msg: db 0x48 db 0x65 @@ -446,9 +441,8 @@ e_phoff equ 0x00000034 mov eax, 0x00000001 mov ebx, 0x00000000 int 0x80 - -filesize equ $ - $$ - +footer: + filesize equ footer - ehdr )"""); CHECK(asm_code == ref); #endif diff --git a/src/runtime/cmath.py b/src/runtime/cmath.py index f37c862045..445b72fe80 100644 --- a/src/runtime/cmath.py +++ b/src/runtime/cmath.py @@ -1,4 +1,4 @@ -from ltypes import c64, ccall, f64, overload, c32 +from lpython import c64, ccall, f64, overload, c32 pi: f64 = 3.141592653589793238462643383279502884197 e: f64 = 2.718281828459045235360287471352662497757 diff --git a/src/runtime/ltypes/goto.py b/src/runtime/lpython/goto.py similarity index 100% rename from src/runtime/ltypes/goto.py rename to src/runtime/lpython/goto.py diff --git a/src/runtime/ltypes/ltypes.py b/src/runtime/lpython/lpython.py similarity index 100% rename from src/runtime/ltypes/ltypes.py rename to src/runtime/lpython/lpython.py diff --git a/src/runtime/lpython_builtin.py b/src/runtime/lpython_builtin.py index 1e8306b75d..cc4b338d99 100644 --- a/src/runtime/lpython_builtin.py +++ b/src/runtime/lpython_builtin.py @@ -1,4 +1,4 @@ -from ltypes import i8, i16, i32, i64, f32, f64, c32, c64, overload +from lpython import i8, i16, i32, i64, f32, f64, c32, c64, overload #from sys import exit #: abs() as a generic procedure. @@ -516,6 +516,14 @@ def _lpython_floordiv(a: bool, b: bool) -> bool: return a +@overload +def _mod(a: i8, b: i8) -> i8: + return a - _lpython_floordiv(a, b)*b + +@overload +def _mod(a: i16, b: i16) -> i16: + return a - _lpython_floordiv(a, b)*b + @overload def _mod(a: i32, b: i32) -> i32: return a - _lpython_floordiv(a, b)*b diff --git a/src/runtime/lpython_intrinsic_numpy.py b/src/runtime/lpython_intrinsic_numpy.py index 19257c20e1..17243dd994 100644 --- a/src/runtime/lpython_intrinsic_numpy.py +++ b/src/runtime/lpython_intrinsic_numpy.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, f64, f32, ccall, vectorize, overload +from lpython import i32, i64, f64, f32, ccall, vectorize, overload pi_64: f64 = f64(3.141592653589793238462643383279502884197) pi_32: f32 = f32(3.141592653589793238462643383279502884197) diff --git a/src/runtime/math.py b/src/runtime/math.py index 635eb97a91..587c727a02 100644 --- a/src/runtime/math.py +++ b/src/runtime/math.py @@ -1,4 +1,4 @@ -from ltypes import i8, i16, i32, f32, i64, f64, ccall, overload +from lpython import i8, i16, i32, f32, i64, f64, ccall, overload pi: f64 = 3.141592653589793238462643383279502884197 diff --git a/src/runtime/os.py b/src/runtime/os.py index 9b4e2eb8b4..9b57d03768 100644 --- a/src/runtime/os.py +++ b/src/runtime/os.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, ccall +from lpython import i32, i64, ccall O_RDONLY: i32 # = 0 FIXME: Assign the value 0 to O_RDONLY # O_WRONLY: i32 = 1 diff --git a/src/runtime/random.py b/src/runtime/random.py index 98e0b87c25..280f5552db 100644 --- a/src/runtime/random.py +++ b/src/runtime/random.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, ccall +from lpython import i32, f64, ccall e: f64 = 2.718281828459045235360287471352662497757 eps: f64 = 1e-16 diff --git a/src/runtime/statistics.py b/src/runtime/statistics.py index 5280d2c65d..b625d36687 100644 --- a/src/runtime/statistics.py +++ b/src/runtime/statistics.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64, i64, f64, overload +from lpython import i32, f64, i64, f64, overload @overload diff --git a/src/runtime/sys.py b/src/runtime/sys.py index 6bed9c2e81..7aae07756f 100644 --- a/src/runtime/sys.py +++ b/src/runtime/sys.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def exit(error_code: i32): """ diff --git a/test_modules/mathfn/sin.py b/test_modules/mathfn/sin.py index d7724ea4f1..4d26103b13 100644 --- a/test_modules/mathfn/sin.py +++ b/test_modules/mathfn/sin.py @@ -1,4 +1,4 @@ -from ltypes import f64 +from lpython import f64 def sinx(x: f64) -> f64: return x + 1.0 diff --git a/tests/assign2.py b/tests/assign2.py index f1837d4d77..3742bcc9c6 100644 --- a/tests/assign2.py +++ b/tests/assign2.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, f32, f64 +from lpython import i32, i64, f32, f64 i: i32 = 5 i2: i64 = i64(53430903434) diff --git a/tests/c_interop1.py b/tests/c_interop1.py index 799b102ee8..bc5c8f13a6 100644 --- a/tests/c_interop1.py +++ b/tests/c_interop1.py @@ -1,4 +1,4 @@ -from ltypes import ccall, f32, f64, i32, i64 +from lpython import ccall, f32, f64, i32, i64 @ccall def f(x: f64) -> f64: diff --git a/tests/complex1.py b/tests/complex1.py index 9cadd65d14..5b16a6c7eb 100644 --- a/tests/complex1.py +++ b/tests/complex1.py @@ -1,4 +1,4 @@ -from ltypes import c32, c64 +from lpython import c32, c64 def test_complex(): c: c32 diff --git a/tests/constants1.py b/tests/constants1.py index 34d4eaff3d..db702beddd 100644 --- a/tests/constants1.py +++ b/tests/constants1.py @@ -1,4 +1,4 @@ -from ltypes import f32, i32, i64, f64 +from lpython import f32, i32, i64, f64 def test_boz(): b: str diff --git a/tests/doconcurrentloop_01.py b/tests/doconcurrentloop_01.py index d84cef2bd5..cd67aa41dc 100644 --- a/tests/doconcurrentloop_01.py +++ b/tests/doconcurrentloop_01.py @@ -1,4 +1,4 @@ -from ltypes import f32, i32 +from lpython import f32, i32 def triad(a: f32[:], b: f32[:], scalar: f32, c: f32[:]): N: i32 diff --git a/tests/errors/bindc_01.py b/tests/errors/bindc_01.py index 02deb1b821..03f5794fac 100644 --- a/tests/errors/bindc_01.py +++ b/tests/errors/bindc_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, CPtr, ccall +from lpython import i32, CPtr, ccall @ccall def cptr_arg(arg1: CPtr): diff --git a/tests/errors/bindc_02.py b/tests/errors/bindc_02.py index b429779502..54ee4b8926 100644 --- a/tests/errors/bindc_02.py +++ b/tests/errors/bindc_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, CPtr, ccall, dataclass +from lpython import i32, CPtr, ccall, dataclass @dataclass class Struct: diff --git a/tests/errors/bindc_03.py b/tests/errors/bindc_03.py index c49a84fbfe..3b2967b2d8 100644 --- a/tests/errors/bindc_03.py +++ b/tests/errors/bindc_03.py @@ -1,5 +1,5 @@ -from ltypes import c_p_pointer, CPtr, i32, Pointer, i16 +from lpython import c_p_pointer, CPtr, i32, Pointer, i16 def fill_A(k: i32, n: i32, b: CPtr) -> None: nk: i32 = n * k diff --git a/tests/errors/const_01.py b/tests/errors/const_01.py index 224a20f4ba..79de7a7d23 100644 --- a/tests/errors/const_01.py +++ b/tests/errors/const_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, Const +from lpython import i32, Const def f(): x: Const[i32] diff --git a/tests/errors/const_02.py b/tests/errors/const_02.py index 63fe1c3514..a4e7664a96 100644 --- a/tests/errors/const_02.py +++ b/tests/errors/const_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, Const +from lpython import i32, Const def f(): x: Const[i32] = 4 diff --git a/tests/errors/cptr_01.py b/tests/errors/cptr_01.py index 2f5a4c3d78..bb37ac79cd 100644 --- a/tests/errors/cptr_01.py +++ b/tests/errors/cptr_01.py @@ -1,4 +1,4 @@ -from ltypes import CPtr, empty_c_void_p +from lpython import CPtr, empty_c_void_p def f(): x: CPtr = empty_c_void_p() diff --git a/tests/errors/enum_01.py b/tests/errors/enum_01.py index 589c4b2689..dcc2bcf462 100644 --- a/tests/errors/enum_01.py +++ b/tests/errors/enum_01.py @@ -1,4 +1,4 @@ -from ltypes import f64, ccall +from lpython import f64, ccall from enum import Enum @ccall diff --git a/tests/errors/enum_02.py b/tests/errors/enum_02.py index 055c5e5259..139b281195 100644 --- a/tests/errors/enum_02.py +++ b/tests/errors/enum_02.py @@ -1,4 +1,4 @@ -from ltypes import i32, ccall +from lpython import i32, ccall from enum import Enum @ccall diff --git a/tests/errors/func_01.py b/tests/errors/func_01.py index a60e80d505..8db760e63f 100644 --- a/tests/errors/func_01.py +++ b/tests/errors/func_01.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def f(i: i32): print(i) diff --git a/tests/errors/generics_error_01.py b/tests/errors/generics_error_01.py index 9db8eeb1da..d4370a1e04 100644 --- a/tests/errors/generics_error_01.py +++ b/tests/errors/generics_error_01.py @@ -1,4 +1,4 @@ -from ltypes import TypeVar +from lpython import TypeVar T = TypeVar('T') diff --git a/tests/errors/generics_error_02.py b/tests/errors/generics_error_02.py index 66aa819b4a..84b0778081 100644 --- a/tests/errors/generics_error_02.py +++ b/tests/errors/generics_error_02.py @@ -1,4 +1,4 @@ -from ltypes import TypeVar, f64, i32, restriction +from lpython import TypeVar, f64, i32, restriction T = TypeVar('T') diff --git a/tests/errors/generics_error_03.py b/tests/errors/generics_error_03.py index dba9fd04ac..85210dbc3a 100644 --- a/tests/errors/generics_error_03.py +++ b/tests/errors/generics_error_03.py @@ -1,4 +1,4 @@ -from ltypes import TypeVar, f64, i32, restriction +from lpython import TypeVar, f64, i32, restriction T = TypeVar('T') diff --git a/tests/errors/kwargs_01_error.py b/tests/errors/kwargs_01_error.py index 6329caa5a5..7a8b218fc6 100644 --- a/tests/errors/kwargs_01_error.py +++ b/tests/errors/kwargs_01_error.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, f32, f64, c64, overload +from lpython import i32, i64, f32, f64, c64, overload def func01(a: i32, b: i64) -> i64: return int(a) + b diff --git a/tests/errors/kwargs_02_error.py b/tests/errors/kwargs_02_error.py index b9cffc4fe8..c513cdcdd8 100644 --- a/tests/errors/kwargs_02_error.py +++ b/tests/errors/kwargs_02_error.py @@ -1,4 +1,4 @@ -from ltypes import f32, f64, c64 +from lpython import f32, f64, c64 def func02(a: f32, b: f64, c: c64) -> c64: return complex(float(a), b) + c diff --git a/tests/errors/kwargs_03_error.py b/tests/errors/kwargs_03_error.py index ff3807f94c..58f4ee31c7 100644 --- a/tests/errors/kwargs_03_error.py +++ b/tests/errors/kwargs_03_error.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64, f32, f64, c64, overload +from lpython import i32, i64, f32, f64, c64, overload def func01(a: i32, b: i64) -> i64: return int(a) + b diff --git a/tests/errors/loop_01.py b/tests/errors/loop_01.py index 174a29955b..22489bea41 100644 --- a/tests/errors/loop_01.py +++ b/tests/errors/loop_01.py @@ -1,4 +1,4 @@ -from ltypes import i16 +from lpython import i16 def test_increment(): i: i16 diff --git a/tests/errors/loop_02.py b/tests/errors/loop_02.py index cc3ad6f508..a79f95a307 100644 --- a/tests/errors/loop_02.py +++ b/tests/errors/loop_02.py @@ -1,4 +1,4 @@ -from ltypes import i16 +from lpython import i16 def test_increment(): i: i16 diff --git a/tests/errors/structs_01.py b/tests/errors/structs_01.py index 1b7cc1e5c5..e3bc65a791 100644 --- a/tests/errors/structs_01.py +++ b/tests/errors/structs_01.py @@ -1,4 +1,4 @@ -from ltypes import i32, i8, packed, dataclass +from lpython import i32, i8, packed, dataclass @packed(aligned=5) @dataclass diff --git a/tests/errors/test_annassign_type_mismatch.py b/tests/errors/test_annassign_type_mismatch.py index 2237c3ae42..1540988166 100644 --- a/tests/errors/test_annassign_type_mismatch.py +++ b/tests/errors/test_annassign_type_mismatch.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def f(): x: i32[4] = [1, 2, 3, 4] diff --git a/tests/errors/test_annassign_type_mismatch2.py b/tests/errors/test_annassign_type_mismatch2.py index 004804626f..a925c9a5c0 100644 --- a/tests/errors/test_annassign_type_mismatch2.py +++ b/tests/errors/test_annassign_type_mismatch2.py @@ -1,4 +1,4 @@ -from ltypes import f64 +from lpython import f64 def f(): x: f64[5] = [1.0, 2.0, 3.0, 4.0, 5.0] diff --git a/tests/errors/test_append_type_mismatch.py b/tests/errors/test_append_type_mismatch.py index b7212ab921..217b3c5b8c 100644 --- a/tests/errors/test_append_type_mismatch.py +++ b/tests/errors/test_append_type_mismatch.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def f(): l: list[i32] diff --git a/tests/errors/test_assign4.py b/tests/errors/test_assign4.py index 0842d754c5..11d4d35a7a 100644 --- a/tests/errors/test_assign4.py +++ b/tests/errors/test_assign4.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def test_e1(): x: i32 diff --git a/tests/errors/test_assign8.py b/tests/errors/test_assign8.py index 94764e4ae8..b9941a3c47 100644 --- a/tests/errors/test_assign8.py +++ b/tests/errors/test_assign8.py @@ -1,4 +1,4 @@ -from ltypes import c32 +from lpython import c32 def f(): c: c32 diff --git a/tests/errors/test_binop3.py b/tests/errors/test_binop3.py index f4c460831b..f8a7109e3a 100644 --- a/tests/errors/test_binop3.py +++ b/tests/errors/test_binop3.py @@ -1,4 +1,4 @@ -from ltypes import c32 +from lpython import c32 def test_issue_1524(): y: c32 diff --git a/tests/errors/test_bitwise_on_complex.py b/tests/errors/test_bitwise_on_complex.py index 2a0e16ecfc..10a86f275e 100644 --- a/tests/errors/test_bitwise_on_complex.py +++ b/tests/errors/test_bitwise_on_complex.py @@ -1,4 +1,4 @@ -from ltypes import c32 +from lpython import c32 def f(): c1: c32 diff --git a/tests/errors/test_bitwise_on_float.py b/tests/errors/test_bitwise_on_float.py index ec3f850f51..089548b863 100644 --- a/tests/errors/test_bitwise_on_float.py +++ b/tests/errors/test_bitwise_on_float.py @@ -1,4 +1,4 @@ -from ltypes import f32 +from lpython import f32 def f(): f1: f32 diff --git a/tests/errors/test_dict10.py b/tests/errors/test_dict10.py index 02aef37221..a923e78c96 100644 --- a/tests/errors/test_dict10.py +++ b/tests/errors/test_dict10.py @@ -1,4 +1,4 @@ -from ltypes import c32, f64 +from lpython import c32, f64 def test_dict(): d: dict[c32, f64] = {} diff --git a/tests/errors/test_dict11.py b/tests/errors/test_dict11.py index aaaffeeff0..72cc69befb 100644 --- a/tests/errors/test_dict11.py +++ b/tests/errors/test_dict11.py @@ -1,4 +1,4 @@ -from ltypes import c64, f32 +from lpython import c64, f32 def test_dict(): d: dict[c64, f32] = {} diff --git a/tests/errors/test_dict8.py b/tests/errors/test_dict8.py index f29be7e459..d391502194 100644 --- a/tests/errors/test_dict8.py +++ b/tests/errors/test_dict8.py @@ -1,4 +1,4 @@ -from ltypes import f64 +from lpython import f64 def test_dict(): d: dict[f64, f64] = {} diff --git a/tests/errors/test_dict9.py b/tests/errors/test_dict9.py index 857a5e7f00..4486b255fd 100644 --- a/tests/errors/test_dict9.py +++ b/tests/errors/test_dict9.py @@ -1,4 +1,4 @@ -from ltypes import f32, f64 +from lpython import f32, f64 def test_dict(): d: dict[f32, f64] = {} diff --git a/tests/errors/test_func_args.py b/tests/errors/test_func_args.py index 7b792e3996..2298daecab 100644 --- a/tests/errors/test_func_args.py +++ b/tests/errors/test_func_args.py @@ -1,4 +1,4 @@ -from ltypes import i64 +from lpython import i64 def fib(n: i64) -> i64: if n < i64(2): diff --git a/tests/errors/test_goto.py b/tests/errors/test_goto.py index 5c027d350c..649d659751 100644 --- a/tests/errors/test_goto.py +++ b/tests/errors/test_goto.py @@ -1,4 +1,4 @@ -from ltypes import with_goto, goto, label, i32 +from lpython import with_goto, goto, label, i32 @with_goto def f(): diff --git a/tests/errors/test_import/test_import_1.py b/tests/errors/test_import/test_import_1.py index 6d3f690656..55f4864bcd 100644 --- a/tests/errors/test_import/test_import_1.py +++ b/tests/errors/test_import/test_import_1.py @@ -1,4 +1,4 @@ -from ltypes import Const, i32 +from lpython import Const, i32 def test(x: i32) -> i32: return x ** 2 diff --git a/tests/errors/test_import/test_import_2.py b/tests/errors/test_import/test_import_2.py index cb4ca90016..12839dadb6 100644 --- a/tests/errors/test_import/test_import_2.py +++ b/tests/errors/test_import/test_import_2.py @@ -1,3 +1,3 @@ -from ltypes import Const, i32 +from lpython import Const, i32 X: Const[i32] = 1.23 diff --git a/tests/errors/test_import_01.py b/tests/errors/test_import_01.py index d3511831bd..af2fce6c7c 100644 --- a/tests/errors/test_import_01.py +++ b/tests/errors/test_import_01.py @@ -1,4 +1,4 @@ -from ltypes import Const, f64 +from lpython import Const, f64 from test_import import test X: Const[f64] = test(5.0) diff --git a/tests/errors/test_list1.py b/tests/errors/test_list1.py index ce95655b65..b67d482280 100644 --- a/tests/errors/test_list1.py +++ b/tests/errors/test_list1.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test1(): a: list[i32] diff --git a/tests/errors/test_list2.py b/tests/errors/test_list2.py index b3d8c04076..7cfd3bfcfa 100644 --- a/tests/errors/test_list2.py +++ b/tests/errors/test_list2.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test1(): a: list[i32] diff --git a/tests/errors/test_list4.py b/tests/errors/test_list4.py index 6c2dd9590b..56f6734094 100644 --- a/tests/errors/test_list4.py +++ b/tests/errors/test_list4.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def e1(): a: list[i32] diff --git a/tests/errors/test_list_concat.py b/tests/errors/test_list_concat.py index cee7353fde..dff9d3e098 100644 --- a/tests/errors/test_list_concat.py +++ b/tests/errors/test_list_concat.py @@ -1,4 +1,4 @@ -from ltypes import i32, f64 +from lpython import i32, f64 def main(): a: list[i32] diff --git a/tests/errors/test_pointer_types.py b/tests/errors/test_pointer_types.py index bfd2a36d97..b314404055 100644 --- a/tests/errors/test_pointer_types.py +++ b/tests/errors/test_pointer_types.py @@ -1,4 +1,4 @@ -from ltypes import pointer, i16, Pointer, i32 +from lpython import pointer, i16, Pointer, i32 def f(): yptr1: Pointer[i16[:]] diff --git a/tests/errors/test_pow2.py b/tests/errors/test_pow2.py index 8b3a231e23..fe9dbcfb72 100644 --- a/tests/errors/test_pow2.py +++ b/tests/errors/test_pow2.py @@ -1,4 +1,4 @@ -from ltypes import i64 +from lpython import i64 def f(): a: i64 diff --git a/tests/errors/test_pow3.py b/tests/errors/test_pow3.py index e0ec825f83..bf8224ad2d 100644 --- a/tests/errors/test_pow3.py +++ b/tests/errors/test_pow3.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64 +from lpython import i32, i64 def f(): x: list[i32] diff --git a/tests/errors/test_pow4.py b/tests/errors/test_pow4.py index 2d60e38b53..ec40772f4e 100644 --- a/tests/errors/test_pow4.py +++ b/tests/errors/test_pow4.py @@ -1,4 +1,4 @@ -from ltypes import c32, i64 +from lpython import c32, i64 def f(): x: c32 diff --git a/tests/errors/test_set1.py b/tests/errors/test_set1.py index 63a4aef978..56dbfd1d88 100644 --- a/tests/errors/test_set1.py +++ b/tests/errors/test_set1.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test1(): a: set[i32] diff --git a/tests/errors/test_set2.py b/tests/errors/test_set2.py index 62ac8b2816..71de914e3c 100644 --- a/tests/errors/test_set2.py +++ b/tests/errors/test_set2.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test1(): a: set[i32] diff --git a/tests/errors/test_set_indexing.py b/tests/errors/test_set_indexing.py index 0c5bc7dbbd..9290f91fc6 100644 --- a/tests/errors/test_set_indexing.py +++ b/tests/errors/test_set_indexing.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def f(): s: set[i32] diff --git a/tests/errors/test_zero_division4.py b/tests/errors/test_zero_division4.py index 63ae2cedb8..78662b21c6 100644 --- a/tests/errors/test_zero_division4.py +++ b/tests/errors/test_zero_division4.py @@ -1,4 +1,4 @@ -from ltypes import f64 +from lpython import f64 def f(): f: f64 = 4.5 diff --git a/tests/errors/type_mismatch.py b/tests/errors/type_mismatch.py index 0a0f141431..e36085b39f 100644 --- a/tests/errors/type_mismatch.py +++ b/tests/errors/type_mismatch.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32 +from lpython import i32, f32 def test_cast(): a: i32 diff --git a/tests/expr10.py b/tests/expr10.py index 86c281dfac..4838f3dc19 100644 --- a/tests/expr10.py +++ b/tests/expr10.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32, c32 +from lpython import i32, f32, c32 def test_UnaryOp(): a: i32 diff --git a/tests/expr15.py b/tests/expr15.py index 099cd0d170..6d36635bf1 100644 --- a/tests/expr15.py +++ b/tests/expr15.py @@ -1,4 +1,4 @@ -from ltypes import f64, c64, i32, c32 +from lpython import f64, c64, i32, c32 def test1() -> f64: x: f64 diff --git a/tests/expr7.py b/tests/expr7.py index 46eb4a27d0..58125ba341 100644 --- a/tests/expr7.py +++ b/tests/expr7.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_pow(): a: i32 a = i32(pow(2, 2)) diff --git a/tests/expr8.py b/tests/expr8.py index c9c36b962a..ac3bcc7db4 100644 --- a/tests/expr8.py +++ b/tests/expr8.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32 +from lpython import i32, f32 def test_binop(): x: i32 diff --git a/tests/loop1.py b/tests/loop1.py index f4b25140f7..0c0747de2c 100644 --- a/tests/loop1.py +++ b/tests/loop1.py @@ -1,4 +1,4 @@ -from ltypes import i32, i64 +from lpython import i32, i64 def test_factorial_1(x: i32) -> i32: if x < 0: diff --git a/tests/ltypes1.py b/tests/lpython1.py similarity index 85% rename from tests/ltypes1.py rename to tests/lpython1.py index f7148a196b..65f843f7ad 100644 --- a/tests/ltypes1.py +++ b/tests/lpython1.py @@ -1,4 +1,4 @@ -from ltypes import i8, i16, i32, i64 +from lpython import i8, i16, i32, i64 def test_i8(): i: i8 diff --git a/tests/parser/for1.py b/tests/parser/for1.py index 29e217da34..3515238c23 100644 --- a/tests/parser/for1.py +++ b/tests/parser/for1.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 # fruits = ["apple", "banana", "cherry"] for x in fruits: diff --git a/tests/parser/function_def1.py b/tests/parser/function_def1.py index 6b5cb4ab15..11c48868d8 100644 --- a/tests/parser/function_def1.py +++ b/tests/parser/function_def1.py @@ -1,4 +1,4 @@ -from ltypes import i32, overload +from lpython import i32, overload def greet(name): """ diff --git a/tests/parser/import1.py b/tests/parser/import1.py index fdc270566a..e68e463e83 100644 --- a/tests/parser/import1.py +++ b/tests/parser/import1.py @@ -6,7 +6,7 @@ import x.y.z import x.y.z as xyz -from ltypes import i8, i16, i32, i64, f32, f64, \ +from lpython import i8, i16, i32, i64, f32, f64, \ c32, c64, overload, ccall, TypeVar from __future__ import division from math import * diff --git a/tests/parser/while1.py b/tests/parser/while1.py index 5f41f9814a..36a3cf1ecc 100644 --- a/tests/parser/while1.py +++ b/tests/parser/while1.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 i: i32 = 10 diff --git a/tests/reference/asr-array_01_decl-39cf894.json b/tests/reference/asr-array_01_decl-39cf894.json index 6904b321b4..b509c1b512 100644 --- a/tests/reference/asr-array_01_decl-39cf894.json +++ b/tests/reference/asr-array_01_decl-39cf894.json @@ -2,11 +2,11 @@ "basename": "asr-array_01_decl-39cf894", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/array_01_decl.py", - "infile_hash": "a0894dbdcbfd15ade316e11aba63284d5f1a2b5c011417db64fab06d", + "infile_hash": "3dff59bab7475d254ce0470065c11e797e52a5b2a3d7546acc0e6705", "outfile": null, "outfile_hash": null, "stdout": "asr-array_01_decl-39cf894.stdout", - "stdout_hash": "d168d3ab29e00bac349b83dc326ac1c59867e10c020d88d65c48c2a2", + "stdout_hash": "727055df38a227893ef5812d356ccd243d9803554a65f1583b873136", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-array_01_decl-39cf894.stdout b/tests/reference/asr-array_01_decl-39cf894.stdout index e67f4bac44..f31e0e274c 100644 --- a/tests/reference/asr-array_01_decl-39cf894.stdout +++ b/tests/reference/asr-array_01_decl-39cf894.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 189 {ArraySizes: (EnumType (SymbolTable 180 {SIZE_10: (Variable 180 SIZE_10 [] Local (IntegerConstant 10 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), SIZE_3: (Variable 180 SIZE_3 [] Local (IntegerConstant 3 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.)}) ArraySizes [] [SIZE_3 SIZE_10] Source Public IntegerUnique (Integer 4 []) ()), _lpython_main_program: (Function (SymbolTable 188 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [declare_arrays] [] [(SubroutineCall 189 declare_arrays () [] ())] () Public .false. .false.), accept_f32_array: (Function (SymbolTable 184 {_lpython_return_variable: (Variable 184 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), xf32: (Variable 184 xf32 [] InOut () () Default (Real 4 [(() ())]) Source Public Required .false.)}) accept_f32_array (FunctionType [(Real 4 [(() ())])] (Real 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 184 xf32)] [(= (ArrayItem (Var 184 xf32) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) (Cast (RealConstant 32.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 32.000000 (Real 4 []))) ()) (= (Var 184 _lpython_return_variable) (ArrayItem (Var 184 xf32) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) ()) (Return)] (Var 184 _lpython_return_variable) Public .false. .false.), accept_f64_array: (Function (SymbolTable 185 {_lpython_return_variable: (Variable 185 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), xf64: (Variable 185 xf64 [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.)}) accept_f64_array (FunctionType [(Real 8 [(() ())])] (Real 8 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 185 xf64)] [(= (ArrayItem (Var 185 xf64) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) (RealConstant 64.000000 (Real 8 [])) ()) (= (Var 185 _lpython_return_variable) (ArrayItem (Var 185 xf64) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) ()) (Return)] (Var 185 _lpython_return_variable) Public .false. .false.), accept_i16_array: (Function (SymbolTable 181 {_lpython_return_variable: (Variable 181 _lpython_return_variable [] ReturnVar () () Default (Integer 2 []) Source Public Required .false.), xi16: (Variable 181 xi16 [] InOut () () Default (Integer 2 [(() ())]) Source Public Required .false.)}) accept_i16_array (FunctionType [(Integer 2 [(() ())])] (Integer 2 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 181 xi16)] [(= (ArrayItem (Var 181 xi16) [(() (IntegerConstant 2 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) (Cast (IntegerConstant 32 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 32 (Integer 2 []))) ()) (= (Var 181 _lpython_return_variable) (ArrayItem (Var 181 xi16) [(() (IntegerConstant 2 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) ()) (Return)] (Var 181 _lpython_return_variable) Public .false. .false.), accept_i32_array: (Function (SymbolTable 182 {_lpython_return_variable: (Variable 182 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), xi32: (Variable 182 xi32 [] InOut () () Default (Integer 4 [(() ())]) Source Public Required .false.)}) accept_i32_array (FunctionType [(Integer 4 [(() ())])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 182 xi32)] [(= (ArrayItem (Var 182 xi32) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 32 (Integer 4 [])) ()) (= (Var 182 _lpython_return_variable) (ArrayItem (Var 182 xi32) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) ()) (Return)] (Var 182 _lpython_return_variable) Public .false. .false.), accept_i64_array: (Function (SymbolTable 183 {_lpython_return_variable: (Variable 183 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), xi64: (Variable 183 xi64 [] InOut () () Default (Integer 8 [(() ())]) Source Public Required .false.)}) accept_i64_array (FunctionType [(Integer 8 [(() ())])] (Integer 8 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 183 xi64)] [(= (ArrayItem (Var 183 xi64) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 8 []) RowMajor ()) (Cast (IntegerConstant 64 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 64 (Integer 8 []))) ()) (= (Var 183 _lpython_return_variable) (ArrayItem (Var 183 xi64) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 8 []) RowMajor ()) ()) (Return)] (Var 183 _lpython_return_variable) Public .false. .false.), declare_arrays: (Function (SymbolTable 186 {ac32: (Variable 186 ac32 [] Local () () Default (Complex 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), ac64: (Variable 186 ac64 [] Local () () Default (Complex 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 [])))]) Source Public Required .false.), af32: (Variable 186 af32 [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), af64: (Variable 186 af64 [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 [])))]) Source Public Required .false.), ai16: (Variable 186 ai16 [] Local () () Default (Integer 2 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), ai32: (Variable 186 ai32 [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), ai64: (Variable 186 ai64 [] Local () () Default (Integer 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 [])))]) Source Public Required .false.)}) declare_arrays (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [accept_i16_array accept_i32_array accept_i64_array accept_f32_array accept_f64_array] [] [(Print () [(FunctionCall 189 accept_i16_array () [((Var 186 ai16))] (Integer 2 []) () ())] () ()) (Print () [(FunctionCall 189 accept_i32_array () [((Var 186 ai32))] (Integer 4 []) () ())] () ()) (Print () [(FunctionCall 189 accept_i64_array () [((Var 186 ai64))] (Integer 8 []) () ())] () ()) (Print () [(FunctionCall 189 accept_f32_array () [((Var 186 af32))] (Real 4 []) () ())] () ()) (Print () [(FunctionCall 189 accept_f64_array () [((Var 186 af64))] (Real 8 []) () ())] () ())] () Public .false. .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 187 {_lpython_main_program: (ExternalSymbol 187 _lpython_main_program 189 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 187 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_2___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_0___mod 79 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_0___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 190 {ArraySizes: (EnumType (SymbolTable 181 {SIZE_10: (Variable 181 SIZE_10 [] Local (IntegerConstant 10 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), SIZE_3: (Variable 181 SIZE_3 [] Local (IntegerConstant 3 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.)}) ArraySizes [] [SIZE_3 SIZE_10] Source Public IntegerUnique (Integer 4 []) ()), _lpython_main_program: (Function (SymbolTable 189 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [declare_arrays] [] [(SubroutineCall 190 declare_arrays () [] ())] () Public .false. .false.), accept_f32_array: (Function (SymbolTable 185 {_lpython_return_variable: (Variable 185 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), xf32: (Variable 185 xf32 [] InOut () () Default (Real 4 [(() ())]) Source Public Required .false.)}) accept_f32_array (FunctionType [(Real 4 [(() ())])] (Real 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 185 xf32)] [(= (ArrayItem (Var 185 xf32) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) (Cast (RealConstant 32.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 32.000000 (Real 4 []))) ()) (= (Var 185 _lpython_return_variable) (ArrayItem (Var 185 xf32) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) ()) (Return)] (Var 185 _lpython_return_variable) Public .false. .false.), accept_f64_array: (Function (SymbolTable 186 {_lpython_return_variable: (Variable 186 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), xf64: (Variable 186 xf64 [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.)}) accept_f64_array (FunctionType [(Real 8 [(() ())])] (Real 8 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 186 xf64)] [(= (ArrayItem (Var 186 xf64) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) (RealConstant 64.000000 (Real 8 [])) ()) (= (Var 186 _lpython_return_variable) (ArrayItem (Var 186 xf64) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) ()) (Return)] (Var 186 _lpython_return_variable) Public .false. .false.), accept_i16_array: (Function (SymbolTable 182 {_lpython_return_variable: (Variable 182 _lpython_return_variable [] ReturnVar () () Default (Integer 2 []) Source Public Required .false.), xi16: (Variable 182 xi16 [] InOut () () Default (Integer 2 [(() ())]) Source Public Required .false.)}) accept_i16_array (FunctionType [(Integer 2 [(() ())])] (Integer 2 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 182 xi16)] [(= (ArrayItem (Var 182 xi16) [(() (IntegerConstant 2 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) (Cast (IntegerConstant 32 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 32 (Integer 2 []))) ()) (= (Var 182 _lpython_return_variable) (ArrayItem (Var 182 xi16) [(() (IntegerConstant 2 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) ()) (Return)] (Var 182 _lpython_return_variable) Public .false. .false.), accept_i32_array: (Function (SymbolTable 183 {_lpython_return_variable: (Variable 183 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), xi32: (Variable 183 xi32 [] InOut () () Default (Integer 4 [(() ())]) Source Public Required .false.)}) accept_i32_array (FunctionType [(Integer 4 [(() ())])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 183 xi32)] [(= (ArrayItem (Var 183 xi32) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 32 (Integer 4 [])) ()) (= (Var 183 _lpython_return_variable) (ArrayItem (Var 183 xi32) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) ()) (Return)] (Var 183 _lpython_return_variable) Public .false. .false.), accept_i64_array: (Function (SymbolTable 184 {_lpython_return_variable: (Variable 184 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), xi64: (Variable 184 xi64 [] InOut () () Default (Integer 8 [(() ())]) Source Public Required .false.)}) accept_i64_array (FunctionType [(Integer 8 [(() ())])] (Integer 8 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 184 xi64)] [(= (ArrayItem (Var 184 xi64) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 8 []) RowMajor ()) (Cast (IntegerConstant 64 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 64 (Integer 8 []))) ()) (= (Var 184 _lpython_return_variable) (ArrayItem (Var 184 xi64) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 8 []) RowMajor ()) ()) (Return)] (Var 184 _lpython_return_variable) Public .false. .false.), declare_arrays: (Function (SymbolTable 187 {ac32: (Variable 187 ac32 [] Local () () Default (Complex 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), ac64: (Variable 187 ac64 [] Local () () Default (Complex 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 [])))]) Source Public Required .false.), af32: (Variable 187 af32 [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), af64: (Variable 187 af64 [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 [])))]) Source Public Required .false.), ai16: (Variable 187 ai16 [] Local () () Default (Integer 2 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), ai32: (Variable 187 ai32 [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), ai64: (Variable 187 ai64 [] Local () () Default (Integer 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 [])))]) Source Public Required .false.)}) declare_arrays (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [accept_i16_array accept_i32_array accept_i64_array accept_f32_array accept_f64_array] [] [(Print () [(FunctionCall 190 accept_i16_array () [((Var 187 ai16))] (Integer 2 []) () ())] () ()) (Print () [(FunctionCall 190 accept_i32_array () [((Var 187 ai32))] (Integer 4 []) () ())] () ()) (Print () [(FunctionCall 190 accept_i64_array () [((Var 187 ai64))] (Integer 8 []) () ())] () ()) (Print () [(FunctionCall 190 accept_f32_array () [((Var 187 af32))] (Real 4 []) () ())] () ()) (Print () [(FunctionCall 190 accept_f64_array () [((Var 187 af64))] (Real 8 []) () ())] () ())] () Public .false. .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 188 {_lpython_main_program: (ExternalSymbol 188 _lpython_main_program 190 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 188 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_4___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_4___mod 79 __lpython_overloaded_4___mod lpython_builtin [] __lpython_overloaded_4___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_4___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_4___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_2___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) diff --git a/tests/reference/asr-array_02_decl-e8f6874.json b/tests/reference/asr-array_02_decl-e8f6874.json index 29ddcc46f4..3faa316db0 100644 --- a/tests/reference/asr-array_02_decl-e8f6874.json +++ b/tests/reference/asr-array_02_decl-e8f6874.json @@ -2,11 +2,11 @@ "basename": "asr-array_02_decl-e8f6874", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/array_02_decl.py", - "infile_hash": "49bfd0530662b64164eb87c7e1bc53d518a7ccc75469dfb7ced80e5f", + "infile_hash": "8daa77dd2d5fe6c6f5f3ce867746c5e13290305ef7e1723ac9669285", "outfile": null, "outfile_hash": null, "stdout": "asr-array_02_decl-e8f6874.stdout", - "stdout_hash": "d62018a555667b6f47ef0b6a5c21434b294bd65a3a63e5dbf7dba71f", + "stdout_hash": "b111594bed23c338b6484ecb531af8261a6154075395954ab56ecb4d", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-array_02_decl-e8f6874.stdout b/tests/reference/asr-array_02_decl-e8f6874.stdout index 801e7c6acc..c8dce94eba 100644 --- a/tests/reference/asr-array_02_decl-e8f6874.stdout +++ b/tests/reference/asr-array_02_decl-e8f6874.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 187 {_lpython_main_program: (Function (SymbolTable 186 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [declare_arrays] [] [(SubroutineCall 187 declare_arrays () [] ())] () Public .false. .false.), accept_multidim_f32_array: (Function (SymbolTable 182 {_lpython_return_variable: (Variable 182 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), xf32: (Variable 182 xf32 [] InOut () () Default (Real 4 [(() ())]) Source Public Required .false.)}) accept_multidim_f32_array (FunctionType [(Real 4 [(() ())])] (Real 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 182 xf32)] [(= (Var 182 _lpython_return_variable) (ArrayItem (Var 182 xf32) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) ()) (Return)] (Var 182 _lpython_return_variable) Public .false. .false.), accept_multidim_f64_array: (Function (SymbolTable 183 {_lpython_return_variable: (Variable 183 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), xf64: (Variable 183 xf64 [] InOut () () Default (Real 8 [(() ()) (() ())]) Source Public Required .false.)}) accept_multidim_f64_array (FunctionType [(Real 8 [(() ()) (() ())])] (Real 8 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 183 xf64)] [(= (Var 183 _lpython_return_variable) (ArrayItem (Var 183 xf64) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 1 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) ()) (Return)] (Var 183 _lpython_return_variable) Public .false. .false.), accept_multidim_i32_array: (Function (SymbolTable 180 {_lpython_return_variable: (Variable 180 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), xi32: (Variable 180 xi32 [] InOut () () Default (Integer 4 [(() ()) (() ())]) Source Public Required .false.)}) accept_multidim_i32_array (FunctionType [(Integer 4 [(() ()) (() ())])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 180 xi32)] [(= (Var 180 _lpython_return_variable) (ArrayItem (Var 180 xi32) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) ()) (Return)] (Var 180 _lpython_return_variable) Public .false. .false.), accept_multidim_i64_array: (Function (SymbolTable 181 {_lpython_return_variable: (Variable 181 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), xi64: (Variable 181 xi64 [] InOut () () Default (Integer 8 [(() ()) (() ()) (() ())]) Source Public Required .false.)}) accept_multidim_i64_array (FunctionType [(Integer 8 [(() ()) (() ()) (() ())])] (Integer 8 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 181 xi64)] [(= (Var 181 _lpython_return_variable) (ArrayItem (Var 181 xi64) [(() (IntegerConstant 9 (Integer 4 [])) ()) (() (IntegerConstant 9 (Integer 4 [])) ()) (() (IntegerConstant 9 (Integer 4 [])) ())] (Integer 8 []) RowMajor ()) ()) (Return)] (Var 181 _lpython_return_variable) Public .false. .false.), declare_arrays: (Function (SymbolTable 184 {ac32: (Variable 184 ac32 [] Local () () Default (Complex 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 5 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 99 (Integer 4 [])))]) Source Public Required .false.), ac64: (Variable 184 ac64 [] Local () () Default (Complex 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 13 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 11 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), af32: (Variable 184 af32 [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), af64: (Variable 184 af64 [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) Source Public Required .false.), ai32: (Variable 184 ai32 [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), ai64: (Variable 184 ai64 [] Local () () Default (Integer 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 [])))]) Source Public Required .false.)}) declare_arrays (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [accept_multidim_i32_array accept_multidim_i64_array accept_multidim_f32_array accept_multidim_f64_array] [] [(Print () [(FunctionCall 187 accept_multidim_i32_array () [((Var 184 ai32))] (Integer 4 []) () ())] () ()) (Print () [(FunctionCall 187 accept_multidim_i64_array () [((Var 184 ai64))] (Integer 8 []) () ())] () ()) (Print () [(FunctionCall 187 accept_multidim_f32_array () [((Var 184 af32))] (Real 4 []) () ())] () ()) (Print () [(FunctionCall 187 accept_multidim_f64_array () [((Var 184 af64))] (Real 8 []) () ())] () ())] () Public .false. .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 185 {_lpython_main_program: (ExternalSymbol 185 _lpython_main_program 187 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 185 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_2___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_0___mod 79 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_0___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 188 {_lpython_main_program: (Function (SymbolTable 187 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [declare_arrays] [] [(SubroutineCall 188 declare_arrays () [] ())] () Public .false. .false.), accept_multidim_f32_array: (Function (SymbolTable 183 {_lpython_return_variable: (Variable 183 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), xf32: (Variable 183 xf32 [] InOut () () Default (Real 4 [(() ())]) Source Public Required .false.)}) accept_multidim_f32_array (FunctionType [(Real 4 [(() ())])] (Real 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 183 xf32)] [(= (Var 183 _lpython_return_variable) (ArrayItem (Var 183 xf32) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) ()) (Return)] (Var 183 _lpython_return_variable) Public .false. .false.), accept_multidim_f64_array: (Function (SymbolTable 184 {_lpython_return_variable: (Variable 184 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), xf64: (Variable 184 xf64 [] InOut () () Default (Real 8 [(() ()) (() ())]) Source Public Required .false.)}) accept_multidim_f64_array (FunctionType [(Real 8 [(() ()) (() ())])] (Real 8 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 184 xf64)] [(= (Var 184 _lpython_return_variable) (ArrayItem (Var 184 xf64) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 1 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) ()) (Return)] (Var 184 _lpython_return_variable) Public .false. .false.), accept_multidim_i32_array: (Function (SymbolTable 181 {_lpython_return_variable: (Variable 181 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), xi32: (Variable 181 xi32 [] InOut () () Default (Integer 4 [(() ()) (() ())]) Source Public Required .false.)}) accept_multidim_i32_array (FunctionType [(Integer 4 [(() ()) (() ())])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 181 xi32)] [(= (Var 181 _lpython_return_variable) (ArrayItem (Var 181 xi32) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) ()) (Return)] (Var 181 _lpython_return_variable) Public .false. .false.), accept_multidim_i64_array: (Function (SymbolTable 182 {_lpython_return_variable: (Variable 182 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), xi64: (Variable 182 xi64 [] InOut () () Default (Integer 8 [(() ()) (() ()) (() ())]) Source Public Required .false.)}) accept_multidim_i64_array (FunctionType [(Integer 8 [(() ()) (() ()) (() ())])] (Integer 8 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 182 xi64)] [(= (Var 182 _lpython_return_variable) (ArrayItem (Var 182 xi64) [(() (IntegerConstant 9 (Integer 4 [])) ()) (() (IntegerConstant 9 (Integer 4 [])) ()) (() (IntegerConstant 9 (Integer 4 [])) ())] (Integer 8 []) RowMajor ()) ()) (Return)] (Var 182 _lpython_return_variable) Public .false. .false.), declare_arrays: (Function (SymbolTable 185 {ac32: (Variable 185 ac32 [] Local () () Default (Complex 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 5 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 99 (Integer 4 [])))]) Source Public Required .false.), ac64: (Variable 185 ac64 [] Local () () Default (Complex 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 13 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 11 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), af32: (Variable 185 af32 [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), af64: (Variable 185 af64 [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) Source Public Required .false.), ai32: (Variable 185 ai32 [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.), ai64: (Variable 185 ai64 [] Local () () Default (Integer 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 10 (Integer 4 [])))]) Source Public Required .false.)}) declare_arrays (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [accept_multidim_i32_array accept_multidim_i64_array accept_multidim_f32_array accept_multidim_f64_array] [] [(Print () [(FunctionCall 188 accept_multidim_i32_array () [((Var 185 ai32))] (Integer 4 []) () ())] () ()) (Print () [(FunctionCall 188 accept_multidim_i64_array () [((Var 185 ai64))] (Integer 8 []) () ())] () ()) (Print () [(FunctionCall 188 accept_multidim_f32_array () [((Var 185 af32))] (Real 4 []) () ())] () ()) (Print () [(FunctionCall 188 accept_multidim_f64_array () [((Var 185 af64))] (Real 8 []) () ())] () ())] () Public .false. .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 186 {_lpython_main_program: (ExternalSymbol 186 _lpython_main_program 188 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 186 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_4___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_4___mod 79 __lpython_overloaded_4___mod lpython_builtin [] __lpython_overloaded_4___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_4___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_4___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_2___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) diff --git a/tests/reference/asr-assign2-8d1a2ee.json b/tests/reference/asr-assign2-8d1a2ee.json index de2e70f988..fc3a287632 100644 --- a/tests/reference/asr-assign2-8d1a2ee.json +++ b/tests/reference/asr-assign2-8d1a2ee.json @@ -2,7 +2,7 @@ "basename": "asr-assign2-8d1a2ee", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/assign2.py", - "infile_hash": "6c7ced34237ba1a2e315cb88d3475bcb94139ea4b471c8c616519025", + "infile_hash": "9b182950a8d1abbd951007b692fff95382e90ada103c7f14c4497b06", "outfile": null, "outfile_hash": null, "stdout": "asr-assign2-8d1a2ee.stdout", diff --git a/tests/reference/asr-bindc_01-6d521a9.json b/tests/reference/asr-bindc_01-6d521a9.json index 28aa963219..5a6c3f6e45 100644 --- a/tests/reference/asr-bindc_01-6d521a9.json +++ b/tests/reference/asr-bindc_01-6d521a9.json @@ -2,7 +2,7 @@ "basename": "asr-bindc_01-6d521a9", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/bindc_01.py", - "infile_hash": "3402ae1e5ed454e63ac3105da5d7264c880b666ac0ae672bf6b2dcfe", + "infile_hash": "f628ce81b32f2730f936232bb235f39d4372912bc332f3c97e983ad7", "outfile": null, "outfile_hash": null, "stdout": "asr-bindc_01-6d521a9.stdout", diff --git a/tests/reference/asr-bindc_01-f761165.json b/tests/reference/asr-bindc_01-f761165.json index bf5962b959..24d385098d 100644 --- a/tests/reference/asr-bindc_01-f761165.json +++ b/tests/reference/asr-bindc_01-f761165.json @@ -2,7 +2,7 @@ "basename": "asr-bindc_01-f761165", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/bindc_01.py", - "infile_hash": "e35ebc641a551a6575b45284fbb377c27bfe3fe97a4395175c209354", + "infile_hash": "5f60d96ef8d39100cf775974c5af355ebc1d1f3e67d442564faf7f07", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-bindc_02-5092d8e.json b/tests/reference/asr-bindc_02-5092d8e.json index 131e78b0e3..6b3c472b5c 100644 --- a/tests/reference/asr-bindc_02-5092d8e.json +++ b/tests/reference/asr-bindc_02-5092d8e.json @@ -2,7 +2,7 @@ "basename": "asr-bindc_02-5092d8e", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/bindc_02.py", - "infile_hash": "4ab9dc03aed5933cc9311b55995467d6c2deb8502fad441f6f73b4fa", + "infile_hash": "c1e886c2295631b0c4647c418c68d0edf53d5ab4ce3439b058a657ee", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-bindc_02-bc1a7ea.json b/tests/reference/asr-bindc_02-bc1a7ea.json index 60b416224d..2737a72a94 100644 --- a/tests/reference/asr-bindc_02-bc1a7ea.json +++ b/tests/reference/asr-bindc_02-bc1a7ea.json @@ -2,11 +2,11 @@ "basename": "asr-bindc_02-bc1a7ea", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/bindc_02.py", - "infile_hash": "b63020f2df6e1cdbc6bd3fd8ef551b6b62fda00345bbeb12c7b94305", + "infile_hash": "f01761bc86ab282ba20778efe62f227b36929c0232cf5343588b5a85", "outfile": null, "outfile_hash": null, "stdout": "asr-bindc_02-bc1a7ea.stdout", - "stdout_hash": "4225b871673d770706ac30eca844d9376a0780fc731de0d5bd68b7fc", + "stdout_hash": "6a3fb73af1a02ee835c35978ce0575a61bc6954ae9ca304782e10213", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-bindc_02-bc1a7ea.stdout b/tests/reference/asr-bindc_02-bc1a7ea.stdout index 6d72c87ad0..872a09de76 100644 --- a/tests/reference/asr-bindc_02-bc1a7ea.stdout +++ b/tests/reference/asr-bindc_02-bc1a7ea.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 183 {_lpython_main_program: (Function (SymbolTable 182 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [f] [] [(CPtrToPointer (Var 183 queries) (Var 183 x) ()) (Print () [(Var 183 queries) (Var 183 x)] () ()) (SubroutineCall 183 f () [] ())] () Public .false. .false.), f: (Function (SymbolTable 180 {y: (Variable 180 y [] Local () () Default (Integer 2 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])))]) Source Public Required .false.), yptr1: (Variable 180 yptr1 [] Local () () Default (Pointer (Integer 2 [(() ())])) Source Public Required .false.), yq: (Variable 180 yq [] Local () () Default (CPtr) Source Public Required .false.)}) f (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (ArrayItem (Var 180 y) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 1 (Integer 2 []))) ()) (= (ArrayItem (Var 180 y) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 2 (Integer 2 []))) ()) (= (Var 180 yptr1) (GetPointer (Var 180 y) (Pointer (Integer 2 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])))])) ()) ()) (Print () [(GetPointer (Var 180 y) (Pointer (Integer 2 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])))])) ()) (Var 180 yptr1)] () ()) (Print () [(ArrayItem (Var 180 yptr1) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) (ArrayItem (Var 180 yptr1) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 2 []) RowMajor ())] () ()) (Assert (IntegerCompare (ArrayItem (Var 180 yptr1) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) Eq (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 1 (Integer 2 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (ArrayItem (Var 180 yptr1) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) Eq (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 2 (Integer 2 []))) (Logical 4 []) ()) ()) (CPtrToPointer (Var 180 yq) (Var 180 yptr1) ()) (Print () [(Var 180 yq) (Var 180 yptr1)] () ())] () Public .false. .false.), queries: (Variable 183 queries [] Local () () Default (CPtr) Source Public Required .false.), x: (Variable 183 x [] Local () () Default (Pointer (Integer 2 [(() ())])) Source Public Required .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 181 {_lpython_main_program: (ExternalSymbol 181 _lpython_main_program 183 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 181 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_2___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_0___mod 79 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_0___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 184 {_lpython_main_program: (Function (SymbolTable 183 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [f] [] [(CPtrToPointer (Var 184 queries) (Var 184 x) ()) (Print () [(Var 184 queries) (Var 184 x)] () ()) (SubroutineCall 184 f () [] ())] () Public .false. .false.), f: (Function (SymbolTable 181 {y: (Variable 181 y [] Local () () Default (Integer 2 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])))]) Source Public Required .false.), yptr1: (Variable 181 yptr1 [] Local () () Default (Pointer (Integer 2 [(() ())])) Source Public Required .false.), yq: (Variable 181 yq [] Local () () Default (CPtr) Source Public Required .false.)}) f (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (ArrayItem (Var 181 y) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 1 (Integer 2 []))) ()) (= (ArrayItem (Var 181 y) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 2 (Integer 2 []))) ()) (= (Var 181 yptr1) (GetPointer (Var 181 y) (Pointer (Integer 2 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])))])) ()) ()) (Print () [(GetPointer (Var 181 y) (Pointer (Integer 2 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])))])) ()) (Var 181 yptr1)] () ()) (Print () [(ArrayItem (Var 181 yptr1) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) (ArrayItem (Var 181 yptr1) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 2 []) RowMajor ())] () ()) (Assert (IntegerCompare (ArrayItem (Var 181 yptr1) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) Eq (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 1 (Integer 2 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (ArrayItem (Var 181 yptr1) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 2 []) RowMajor ()) Eq (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 2 (Integer 2 []))) (Logical 4 []) ()) ()) (CPtrToPointer (Var 181 yq) (Var 181 yptr1) ()) (Print () [(Var 181 yq) (Var 181 yptr1)] () ())] () Public .false. .false.), queries: (Variable 184 queries [] Local () () Default (CPtr) Source Public Required .false.), x: (Variable 184 x [] Local () () Default (Pointer (Integer 2 [(() ())])) Source Public Required .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 182 {_lpython_main_program: (ExternalSymbol 182 _lpython_main_program 184 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 182 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_4___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_4___mod 79 __lpython_overloaded_4___mod lpython_builtin [] __lpython_overloaded_4___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_4___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_4___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_2___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) diff --git a/tests/reference/asr-bindc_03-95dbba7.json b/tests/reference/asr-bindc_03-95dbba7.json index f63c6111ce..b2a2020727 100644 --- a/tests/reference/asr-bindc_03-95dbba7.json +++ b/tests/reference/asr-bindc_03-95dbba7.json @@ -2,7 +2,7 @@ "basename": "asr-bindc_03-95dbba7", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/bindc_03.py", - "infile_hash": "c1dda7219d26d06ae0835be79e67204ef67f04feb0572d199bec7b1e", + "infile_hash": "966305cef9890644f613e81f7405e694af6fa13e1b06f0e3e08782bb", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-c_interop1-cf2e9b4.json b/tests/reference/asr-c_interop1-cf2e9b4.json index c7968348b1..e97cc7baaa 100644 --- a/tests/reference/asr-c_interop1-cf2e9b4.json +++ b/tests/reference/asr-c_interop1-cf2e9b4.json @@ -2,7 +2,7 @@ "basename": "asr-c_interop1-cf2e9b4", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/c_interop1.py", - "infile_hash": "9e22168a97e0bbf12aef953048f7e7b781460c70cebd355e903f0934", + "infile_hash": "aeb797508318740ae58a14cf663910a8fa077c574eaf79b9f54656ef", "outfile": null, "outfile_hash": null, "stdout": "asr-c_interop1-cf2e9b4.stdout", diff --git a/tests/reference/asr-cast-435c233.json b/tests/reference/asr-cast-435c233.json index 7659b40eec..62d7b6319f 100644 --- a/tests/reference/asr-cast-435c233.json +++ b/tests/reference/asr-cast-435c233.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "asr-cast-435c233.stdout", - "stdout_hash": "fa36fe6e07657c560df91e8c4d017e5680043ffa9eabec0de72ae746", + "stdout_hash": "40a89cd5934acfbb7df7d3d03f36f0448eaec79c89231d161ec3e02a", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-cast-435c233.stdout b/tests/reference/asr-cast-435c233.stdout index 64771d8766..f3a6c91005 100644 --- a/tests/reference/asr-cast-435c233.stdout +++ b/tests/reference/asr-cast-435c233.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 107 {_lpython_main_program: (Function (SymbolTable 106 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [f] [] [(SubroutineCall 107 f () [] ())] () Public .false. .false.), f: (Function (SymbolTable 2 {list: (ExternalSymbol 2 list 4 list lpython_builtin [] list Private), s: (Variable 2 s [] Local () () Default (Character 1 -2 () []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (List (Character 1 -2 () [])) Source Public Required .false.), y: (Variable 2 y [] Local () () Default (List (Character 1 -2 () [])) Source Public Required .false.)}) f (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [list list list] [] [(= (Var 2 s) (StringConstant "lpython" (Character 1 7 () [])) ()) (= (Var 2 x) (FunctionCall 2 list () [((Var 2 s))] (List (Character 1 -2 () [])) () ()) ()) (= (Var 2 y) (ListConstant [(StringConstant "a" (Character 1 1 () [])) (StringConstant "b" (Character 1 1 () [])) (StringConstant "c" (Character 1 1 () []))] (List (Character 1 1 () []))) ()) (= (Var 2 x) (FunctionCall 2 list () [((Var 2 y))] (List (Character 1 -2 () [])) () ()) ()) (= (Var 2 x) (FunctionCall 2 list () [((StringConstant "lpython" (Character 1 7 () [])))] (List (Character 1 -2 () [])) (ListConstant [(StringConstant "l" (Character 1 1 () [])) (StringConstant "p" (Character 1 1 () [])) (StringConstant "y" (Character 1 1 () [])) (StringConstant "t" (Character 1 1 () [])) (StringConstant "h" (Character 1 1 () [])) (StringConstant "o" (Character 1 1 () [])) (StringConstant "n" (Character 1 1 () []))] (List (Character 1 1 () []))) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {_lpython_main_program: (ExternalSymbol 105 _lpython_main_program 107 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 105 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 108 {_lpython_main_program: (Function (SymbolTable 107 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [f] [] [(SubroutineCall 108 f () [] ())] () Public .false. .false.), f: (Function (SymbolTable 2 {list: (ExternalSymbol 2 list 4 list lpython_builtin [] list Private), s: (Variable 2 s [] Local () () Default (Character 1 -2 () []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (List (Character 1 -2 () [])) Source Public Required .false.), y: (Variable 2 y [] Local () () Default (List (Character 1 -2 () [])) Source Public Required .false.)}) f (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [list list list] [] [(= (Var 2 s) (StringConstant "lpython" (Character 1 7 () [])) ()) (= (Var 2 x) (FunctionCall 2 list () [((Var 2 s))] (List (Character 1 -2 () [])) () ()) ()) (= (Var 2 y) (ListConstant [(StringConstant "a" (Character 1 1 () [])) (StringConstant "b" (Character 1 1 () [])) (StringConstant "c" (Character 1 1 () []))] (List (Character 1 1 () []))) ()) (= (Var 2 x) (FunctionCall 2 list () [((Var 2 y))] (List (Character 1 -2 () [])) () ()) ()) (= (Var 2 x) (FunctionCall 2 list () [((StringConstant "lpython" (Character 1 7 () [])))] (List (Character 1 -2 () [])) (ListConstant [(StringConstant "l" (Character 1 1 () [])) (StringConstant "p" (Character 1 1 () [])) (StringConstant "y" (Character 1 1 () [])) (StringConstant "t" (Character 1 1 () [])) (StringConstant "h" (Character 1 1 () [])) (StringConstant "o" (Character 1 1 () [])) (StringConstant "n" (Character 1 1 () []))] (List (Character 1 1 () []))) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {_lpython_main_program: (ExternalSymbol 106 _lpython_main_program 108 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 106 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-complex1-f26c460.json b/tests/reference/asr-complex1-f26c460.json index ccb8521db1..23c52b6032 100644 --- a/tests/reference/asr-complex1-f26c460.json +++ b/tests/reference/asr-complex1-f26c460.json @@ -2,11 +2,11 @@ "basename": "asr-complex1-f26c460", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/complex1.py", - "infile_hash": "c6c5e11789f3903056bcf08018573a80c93c1a608c6687cb9181739d", + "infile_hash": "60b45de7b88ec768d70a3122b36545e9604a86504ed6e5d9d813c719", "outfile": null, "outfile_hash": null, "stdout": "asr-complex1-f26c460.stdout", - "stdout_hash": "afb10b0644d89395b896e16eb014a376a6fd52170ac770b8ebcb8a63", + "stdout_hash": "fae353e6a26fea49330cf569dc6ff1df06719accca409c25108382ec", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-complex1-f26c460.stdout b/tests/reference/asr-complex1-f26c460.stdout index 44352d845f..f7d0a0de39 100644 --- a/tests/reference/asr-complex1-f26c460.stdout +++ b/tests/reference/asr-complex1-f26c460.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {}) main_program [] []), test: (Function (SymbolTable 3 {x: (Variable 3 x [] Local () () Default (Complex 8 []) Source Public Required .false.), y: (Variable 3 y [] Local () () Default (Complex 8 []) Source Public Required .false.), z: (Variable 3 z [] Local () () Default (Complex 4 []) Source Public Required .false.)}) test (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 3 x) (ComplexBinOp (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 2.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 3.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 2.000000 3.000000 (Complex 8 []))) ()) (= (Var 3 y) (ComplexBinOp (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 5.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 5.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 5.000000 5.000000 (Complex 8 []))) ()) (= (Var 3 z) (Cast (ComplexBinOp (Var 3 x) Add (Var 3 y) (Complex 8 []) ()) ComplexToComplex (Complex 4 []) ()) ()) (= (Var 3 z) (Cast (ComplexBinOp (Var 3 x) Sub (Var 3 y) (Complex 8 []) ()) ComplexToComplex (Complex 4 []) ()) ()) (= (Var 3 z) (Cast (ComplexBinOp (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 2.000000 0.000000 (Complex 8 []))) Mul (Var 3 x) (Complex 8 []) ()) ComplexToComplex (Complex 4 []) ()) ())] () Public .false. .false.), test_complex: (Function (SymbolTable 2 {b: (Variable 2 b [] Local () () Default (Logical 4 []) Source Public Required .false.), c: (Variable 2 c [] Local () () Default (Complex 4 []) Source Public Required .false.), c1: (Variable 2 c1 [] Local () () Default (Complex 4 []) Source Public Required .false.), c2: (Variable 2 c2 [] Local () () Default (Complex 4 []) Source Public Required .false.), c3: (Variable 2 c3 [] Local () () Default (Complex 8 []) Source Public Required .false.), complex: (ExternalSymbol 2 complex 5 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_0__complex: (ExternalSymbol 2 complex@__lpython_overloaded_0__complex 5 __lpython_overloaded_0__complex lpython_builtin [] __lpython_overloaded_0__complex Public), complex@__lpython_overloaded_13__complex: (ExternalSymbol 2 complex@__lpython_overloaded_13__complex 5 __lpython_overloaded_13__complex lpython_builtin [] __lpython_overloaded_13__complex Public), complex@__lpython_overloaded_1__complex: (ExternalSymbol 2 complex@__lpython_overloaded_1__complex 5 __lpython_overloaded_1__complex lpython_builtin [] __lpython_overloaded_1__complex Public), complex@__lpython_overloaded_2__complex: (ExternalSymbol 2 complex@__lpython_overloaded_2__complex 5 __lpython_overloaded_2__complex lpython_builtin [] __lpython_overloaded_2__complex Public), complex@__lpython_overloaded_5__complex: (ExternalSymbol 2 complex@__lpython_overloaded_5__complex 5 __lpython_overloaded_5__complex lpython_builtin [] __lpython_overloaded_5__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 5 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public)}) test_complex (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_0__complex complex@__lpython_overloaded_13__complex complex@__lpython_overloaded_1__complex complex@__lpython_overloaded_2__complex complex@__lpython_overloaded_5__complex complex@__lpython_overloaded_9__complex] [] [(= (Var 2 c) (Cast (FunctionCall 2 complex@__lpython_overloaded_0__complex 2 complex [] (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 0.000000 0.000000 (Complex 4 []))) ()) (= (Var 2 c) (Cast (FunctionCall 2 complex@__lpython_overloaded_1__complex 2 complex [((RealConstant 3.400000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.400000 0.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 3.400000 0.000000 (Complex 4 []))) ()) (= (Var 2 c) (Cast (FunctionCall 2 complex@__lpython_overloaded_5__complex 2 complex [((RealConstant 5.000000 (Real 8 []))) ((RealConstant 4.300000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 5.000000 4.300000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 5.000000 4.300000 (Complex 4 []))) ()) (= (Var 2 c) (FunctionCall 2 complex@__lpython_overloaded_2__complex 2 complex [((IntegerConstant 1 (Integer 4 [])))] (Complex 4 []) (ComplexConstant 1.000000 0.000000 (Complex 8 [])) ()) ()) (= (Var 2 c1) (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 3.000000 4.000000 (Complex 4 []))) ()) (= (Var 2 c2) (Cast (FunctionCall 2 complex@__lpython_overloaded_13__complex 2 complex [((IntegerConstant 2 (Integer 4 []))) ((RealConstant 4.500000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 2.000000 4.500000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 2.000000 4.500000 (Complex 4 []))) ()) (= (Var 2 c3) (FunctionCall 2 complex@__lpython_overloaded_5__complex 2 complex [((RealConstant 3.000000 (Real 8 []))) ((RealConstant 4.000000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) ()) (= (Var 2 b) (ComplexCompare (Var 2 c1) NotEq (Var 2 c2) (Logical 4 []) ()) ()) (= (Var 2 b) (ComplexCompare (Cast (Var 2 c1) ComplexToComplex (Complex 8 []) ()) Eq (Var 2 c3) (Logical 4 []) ()) ()) (= (Var 2 c) (ComplexBinOp (Var 2 c1) Add (Var 2 c2) (Complex 4 []) ()) ()) (= (Var 2 c) (ComplexBinOp (Var 2 c2) Sub (Var 2 c1) (Complex 4 []) ()) ()) (= (Var 2 c) (ComplexBinOp (Var 2 c1) Mul (Var 2 c2) (Complex 4 []) ()) ()) (= (Var 2 c) (Cast (ComplexBinOp (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 1.000000 2.000000 (Complex 8 [])) ()) Pow (FunctionCall 2 complex@__lpython_overloaded_5__complex 2 complex [((RealConstant 3.345340 (Real 8 []))) ((RealConstant 4.867868 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.345340 4.867868 (Complex 8 [])) ()) (Complex 8 []) (ComplexConstant 0.015553 0.065561 (Complex 8 []))) ComplexToComplex (Complex 4 []) (ComplexConstant 0.015553 0.065561 (Complex 4 []))) ()) (= (Var 2 c) (Cast (ComplexBinOp (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 1.000000 2.000000 (Complex 8 [])) ()) Mul (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) (Complex 8 []) (ComplexConstant -5.000000 10.000000 (Complex 8 []))) ComplexToComplex (Complex 4 []) (ComplexConstant -5.000000 10.000000 (Complex 4 []))) ()) (= (Var 2 c) (Cast (ComplexBinOp (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 5 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 4.000000 5.000000 (Complex 8 [])) ()) Sub (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) (Complex 8 []) (ComplexConstant 1.000000 1.000000 (Complex 8 []))) ComplexToComplex (Complex 4 []) (ComplexConstant 1.000000 1.000000 (Complex 4 []))) ())] () Public .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 107 {}) main_program [] []), test: (Function (SymbolTable 3 {x: (Variable 3 x [] Local () () Default (Complex 8 []) Source Public Required .false.), y: (Variable 3 y [] Local () () Default (Complex 8 []) Source Public Required .false.), z: (Variable 3 z [] Local () () Default (Complex 4 []) Source Public Required .false.)}) test (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 3 x) (ComplexBinOp (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 2.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 3.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 2.000000 3.000000 (Complex 8 []))) ()) (= (Var 3 y) (ComplexBinOp (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 5.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 5.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 5.000000 5.000000 (Complex 8 []))) ()) (= (Var 3 z) (Cast (ComplexBinOp (Var 3 x) Add (Var 3 y) (Complex 8 []) ()) ComplexToComplex (Complex 4 []) ()) ()) (= (Var 3 z) (Cast (ComplexBinOp (Var 3 x) Sub (Var 3 y) (Complex 8 []) ()) ComplexToComplex (Complex 4 []) ()) ()) (= (Var 3 z) (Cast (ComplexBinOp (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 2.000000 0.000000 (Complex 8 []))) Mul (Var 3 x) (Complex 8 []) ()) ComplexToComplex (Complex 4 []) ()) ())] () Public .false. .false.), test_complex: (Function (SymbolTable 2 {b: (Variable 2 b [] Local () () Default (Logical 4 []) Source Public Required .false.), c: (Variable 2 c [] Local () () Default (Complex 4 []) Source Public Required .false.), c1: (Variable 2 c1 [] Local () () Default (Complex 4 []) Source Public Required .false.), c2: (Variable 2 c2 [] Local () () Default (Complex 4 []) Source Public Required .false.), c3: (Variable 2 c3 [] Local () () Default (Complex 8 []) Source Public Required .false.), complex: (ExternalSymbol 2 complex 5 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_0__complex: (ExternalSymbol 2 complex@__lpython_overloaded_0__complex 5 __lpython_overloaded_0__complex lpython_builtin [] __lpython_overloaded_0__complex Public), complex@__lpython_overloaded_13__complex: (ExternalSymbol 2 complex@__lpython_overloaded_13__complex 5 __lpython_overloaded_13__complex lpython_builtin [] __lpython_overloaded_13__complex Public), complex@__lpython_overloaded_1__complex: (ExternalSymbol 2 complex@__lpython_overloaded_1__complex 5 __lpython_overloaded_1__complex lpython_builtin [] __lpython_overloaded_1__complex Public), complex@__lpython_overloaded_2__complex: (ExternalSymbol 2 complex@__lpython_overloaded_2__complex 5 __lpython_overloaded_2__complex lpython_builtin [] __lpython_overloaded_2__complex Public), complex@__lpython_overloaded_5__complex: (ExternalSymbol 2 complex@__lpython_overloaded_5__complex 5 __lpython_overloaded_5__complex lpython_builtin [] __lpython_overloaded_5__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 5 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public)}) test_complex (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_0__complex complex@__lpython_overloaded_13__complex complex@__lpython_overloaded_1__complex complex@__lpython_overloaded_2__complex complex@__lpython_overloaded_5__complex complex@__lpython_overloaded_9__complex] [] [(= (Var 2 c) (Cast (FunctionCall 2 complex@__lpython_overloaded_0__complex 2 complex [] (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 0.000000 0.000000 (Complex 4 []))) ()) (= (Var 2 c) (Cast (FunctionCall 2 complex@__lpython_overloaded_1__complex 2 complex [((RealConstant 3.400000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.400000 0.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 3.400000 0.000000 (Complex 4 []))) ()) (= (Var 2 c) (Cast (FunctionCall 2 complex@__lpython_overloaded_5__complex 2 complex [((RealConstant 5.000000 (Real 8 []))) ((RealConstant 4.300000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 5.000000 4.300000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 5.000000 4.300000 (Complex 4 []))) ()) (= (Var 2 c) (FunctionCall 2 complex@__lpython_overloaded_2__complex 2 complex [((IntegerConstant 1 (Integer 4 [])))] (Complex 4 []) (ComplexConstant 1.000000 0.000000 (Complex 8 [])) ()) ()) (= (Var 2 c1) (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 3.000000 4.000000 (Complex 4 []))) ()) (= (Var 2 c2) (Cast (FunctionCall 2 complex@__lpython_overloaded_13__complex 2 complex [((IntegerConstant 2 (Integer 4 []))) ((RealConstant 4.500000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 2.000000 4.500000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 2.000000 4.500000 (Complex 4 []))) ()) (= (Var 2 c3) (FunctionCall 2 complex@__lpython_overloaded_5__complex 2 complex [((RealConstant 3.000000 (Real 8 []))) ((RealConstant 4.000000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) ()) (= (Var 2 b) (ComplexCompare (Var 2 c1) NotEq (Var 2 c2) (Logical 4 []) ()) ()) (= (Var 2 b) (ComplexCompare (Cast (Var 2 c1) ComplexToComplex (Complex 8 []) ()) Eq (Var 2 c3) (Logical 4 []) ()) ()) (= (Var 2 c) (ComplexBinOp (Var 2 c1) Add (Var 2 c2) (Complex 4 []) ()) ()) (= (Var 2 c) (ComplexBinOp (Var 2 c2) Sub (Var 2 c1) (Complex 4 []) ()) ()) (= (Var 2 c) (ComplexBinOp (Var 2 c1) Mul (Var 2 c2) (Complex 4 []) ()) ()) (= (Var 2 c) (Cast (ComplexBinOp (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 1.000000 2.000000 (Complex 8 [])) ()) Pow (FunctionCall 2 complex@__lpython_overloaded_5__complex 2 complex [((RealConstant 3.345340 (Real 8 []))) ((RealConstant 4.867868 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.345340 4.867868 (Complex 8 [])) ()) (Complex 8 []) (ComplexConstant 0.015553 0.065561 (Complex 8 []))) ComplexToComplex (Complex 4 []) (ComplexConstant 0.015553 0.065561 (Complex 4 []))) ()) (= (Var 2 c) (Cast (ComplexBinOp (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 1.000000 2.000000 (Complex 8 [])) ()) Mul (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) (Complex 8 []) (ComplexConstant -5.000000 10.000000 (Complex 8 []))) ComplexToComplex (Complex 4 []) (ComplexConstant -5.000000 10.000000 (Complex 4 []))) ()) (= (Var 2 c) (Cast (ComplexBinOp (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 5 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 4.000000 5.000000 (Complex 8 [])) ()) Sub (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) (Complex 8 []) (ComplexConstant 1.000000 1.000000 (Complex 8 []))) ComplexToComplex (Complex 4 []) (ComplexConstant 1.000000 1.000000 (Complex 4 []))) ())] () Public .false. .false.)}) []) diff --git a/tests/reference/asr-const_01-af8289b.json b/tests/reference/asr-const_01-af8289b.json index 0766f0c481..c54ff59cdd 100644 --- a/tests/reference/asr-const_01-af8289b.json +++ b/tests/reference/asr-const_01-af8289b.json @@ -2,7 +2,7 @@ "basename": "asr-const_01-af8289b", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/const_01.py", - "infile_hash": "99815a83c10b756d0f7afa75aa637ed8e4e969f9382b456bfd08df31", + "infile_hash": "c147e6905815b0476dd2ec10669bb4c7fd65d604910e00b8b9eade30", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-const_02-fce29b7.json b/tests/reference/asr-const_02-fce29b7.json index fceb3b4f76..af31951d5b 100644 --- a/tests/reference/asr-const_02-fce29b7.json +++ b/tests/reference/asr-const_02-fce29b7.json @@ -2,7 +2,7 @@ "basename": "asr-const_02-fce29b7", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/const_02.py", - "infile_hash": "488db60d4763af36319eac3275bb6091a3d71f0dccfb5c1e7155c8fa", + "infile_hash": "9548b6585315578b1844bea16afc1ebe3b17df7b548574c871226e47", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-constants1-5828e8a.json b/tests/reference/asr-constants1-5828e8a.json index 6e6de8abda..d52aafbe70 100644 --- a/tests/reference/asr-constants1-5828e8a.json +++ b/tests/reference/asr-constants1-5828e8a.json @@ -2,11 +2,11 @@ "basename": "asr-constants1-5828e8a", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/constants1.py", - "infile_hash": "5d624d8607e3c7f476ef4e7e70e36b0e9779b08b456a2d09d8974abf", + "infile_hash": "2ede5161e5a92199603f68b9913d658f7ae529c5377827e86054f28a", "outfile": null, "outfile_hash": null, "stdout": "asr-constants1-5828e8a.stdout", - "stdout_hash": "8ad1efd40cb7052e3bf0882399f532180989943c25085535423c675d", + "stdout_hash": "f8357bb1659604d4fd93d1a22a719f8fbc801f934e2b6232cb26e9fa", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-constants1-5828e8a.stdout b/tests/reference/asr-constants1-5828e8a.stdout index 8076f0b093..58e97886d8 100644 --- a/tests/reference/asr-constants1-5828e8a.stdout +++ b/tests/reference/asr-constants1-5828e8a.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 114 {}) main_program [] []), test_abs: (Function (SymbolTable 4 {a: (Variable 4 a [] Local () () Default (Integer 4 []) Source Public Required .false.), abs: (ExternalSymbol 4 abs 13 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 4 abs@__lpython_overloaded_0__abs 13 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_4__abs: (ExternalSymbol 4 abs@__lpython_overloaded_4__abs 13 __lpython_overloaded_4__abs lpython_builtin [] __lpython_overloaded_4__abs Public), abs@__lpython_overloaded_6__abs: (ExternalSymbol 4 abs@__lpython_overloaded_6__abs 13 __lpython_overloaded_6__abs lpython_builtin [] __lpython_overloaded_6__abs Public), abs@__lpython_overloaded_8__abs: (ExternalSymbol 4 abs@__lpython_overloaded_8__abs 13 __lpython_overloaded_8__abs lpython_builtin [] __lpython_overloaded_8__abs Public), b: (Variable 4 b [] Local () () Default (Real 4 []) Source Public Required .false.), complex: (ExternalSymbol 4 complex 13 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_5__complex: (ExternalSymbol 4 complex@__lpython_overloaded_5__complex 13 __lpython_overloaded_5__complex lpython_builtin [] __lpython_overloaded_5__complex Public)}) test_abs (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_4__abs abs@__lpython_overloaded_6__abs abs@__lpython_overloaded_8__abs complex@__lpython_overloaded_5__complex] [] [(= (Var 4 a) (FunctionCall 4 abs@__lpython_overloaded_4__abs 4 abs [((IntegerConstant 5 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 5 (Integer 4 [])) ()) ()) (= (Var 4 a) (FunctionCall 4 abs@__lpython_overloaded_4__abs 4 abs [((IntegerUnaryMinus (IntegerConstant 500 (Integer 4 [])) (Integer 4 []) (IntegerConstant -500 (Integer 4 []))))] (Integer 4 []) (IntegerConstant 500 (Integer 4 [])) ()) ()) (= (Var 4 a) (FunctionCall 4 abs@__lpython_overloaded_6__abs 4 abs [((LogicalConstant .false. (Logical 4 [])))] (Integer 4 []) (IntegerConstant 0 (Integer 4 [])) ()) ()) (= (Var 4 a) (FunctionCall 4 abs@__lpython_overloaded_6__abs 4 abs [((LogicalConstant .true. (Logical 4 [])))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) ()) (= (Var 4 b) (Cast (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealConstant 3.450000 (Real 8 [])))] (Real 8 []) (RealConstant 3.450000 (Real 8 [])) ()) RealToReal (Real 4 []) (RealConstant 3.450000 (Real 4 []))) ()) (= (Var 4 b) (Cast (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealUnaryMinus (RealConstant 5346.340000 (Real 8 [])) (Real 8 []) (RealConstant -5346.340000 (Real 8 []))))] (Real 8 []) (RealConstant 5346.340000 (Real 8 [])) ()) RealToReal (Real 4 []) (RealConstant 5346.340000 (Real 4 []))) ()) (= (Var 4 b) (Cast (FunctionCall 4 abs@__lpython_overloaded_8__abs 4 abs [((FunctionCall 4 complex@__lpython_overloaded_5__complex 4 complex [((RealConstant 3.450000 (Real 8 []))) ((RealConstant 5.600000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.450000 5.600000 (Complex 8 [])) ()))] (Real 8 []) (RealConstant 6.577424 (Real 8 [])) ()) RealToReal (Real 4 []) (RealConstant 6.577424 (Real 4 []))) ())] () Public .false. .false.), test_bool: (Function (SymbolTable 6 {a: (Variable 6 a [] Local () () Default (Logical 4 []) Source Public Required .false.), complex: (ExternalSymbol 6 complex 13 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_9__complex: (ExternalSymbol 6 complex@__lpython_overloaded_9__complex 13 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public)}) test_bool (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_9__complex] [] [(= (Var 6 a) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 6 a) (Cast (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) IntegerToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 6 a) (Cast (StringConstant "" (Character 1 0 () [])) CharacterToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 6 a) (Cast (FunctionCall 6 complex@__lpython_overloaded_9__complex 6 complex [((IntegerConstant 0 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 [])) ()) ComplexToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (Assert (LogicalCompare (Var 6 a) Eq (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) ()) ()) (= (Var 6 a) (Cast (StringConstant "t" (Character 1 1 () [])) CharacterToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 6 a) (Cast (RealConstant 2.300000 (Real 8 [])) RealToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (LogicalCompare (Var 6 a) Eq (LogicalConstant .true. (Logical 4 [])) (Logical 4 []) ()) ())] () Public .false. .false.), test_boz: (Function (SymbolTable 2 {b: (Variable 2 b [] Local () () Default (Character 1 -2 () []) Source Public Required .false.), bin: (ExternalSymbol 2 bin 13 bin lpython_builtin [] bin Private), hex: (ExternalSymbol 2 hex 13 hex lpython_builtin [] hex Private), oct: (ExternalSymbol 2 oct 13 oct lpython_builtin [] oct Private)}) test_boz (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [bin hex oct] [] [(= (Var 2 b) (FunctionCall 2 bin () [((IntegerConstant 5 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0b101" (Character 1 5 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 bin () [((IntegerConstant 64 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0b1000000" (Character 1 9 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 bin () [((IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0b1000010110" (Character 1 13 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 oct () [((IntegerConstant 8 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0o10" (Character 1 4 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 oct () [((IntegerConstant 56 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0o70" (Character 1 4 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 oct () [((IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0o1026" (Character 1 7 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 hex () [((IntegerConstant 42 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0x2a" (Character 1 4 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 hex () [((IntegerConstant 12648430 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0xc0ffee" (Character 1 8 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 hex () [((IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0x216" (Character 1 6 () [])) ()) ())] () Public .false. .false.), test_callable: (Function (SymbolTable 8 {a: (Variable 8 a [] Local () () Default (Logical 4 []) Source Public Required .false.), b: (Variable 8 b [] Local () () Default (Integer 4 []) Source Public Required .false.)}) test_callable (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 8 b) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 8 a) (LogicalConstant .true. (Logical 4 [])) ()) (Assert (LogicalCompare (Var 8 a) Eq (LogicalConstant .true. (Logical 4 [])) (Logical 4 []) ()) ()) (= (Var 8 a) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (LogicalCompare (Var 8 a) Eq (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) ()) ()) (= (Var 8 a) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (LogicalCompare (Var 8 a) Eq (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) ()) ())] () Public .false. .false.), test_divmod: (Function (SymbolTable 11 {a: (Variable 11 a [] Local () () Default (Tuple [(Integer 4 []) (Integer 4 [])]) Source Public Required .false.), divmod: (ExternalSymbol 11 divmod 13 divmod lpython_builtin [] divmod Private)}) test_divmod (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [divmod] [] [(= (Var 11 a) (FunctionCall 11 divmod () [((IntegerConstant 9 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Tuple [(Integer 4 []) (Integer 4 [])]) (TupleConstant [(IntegerConstant 3 (Integer 4 [])) (IntegerConstant 0 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) ()) (= (Var 11 a) (FunctionCall 11 divmod () [((IntegerConstant 9 (Integer 4 []))) ((IntegerUnaryMinus (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) (IntegerConstant -3 (Integer 4 []))))] (Tuple [(Integer 4 []) (Integer 4 [])]) (TupleConstant [(IntegerConstant -3 (Integer 4 [])) (IntegerConstant 0 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) ()) (= (Var 11 a) (FunctionCall 11 divmod () [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Tuple [(Integer 4 []) (Integer 4 [])]) (TupleConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 0 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) ()) (= (Var 11 a) (FunctionCall 11 divmod () [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 5 (Integer 4 [])))] (Tuple [(Integer 4 []) (Integer 4 [])]) (TupleConstant [(IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) ()) (= (Var 11 a) (FunctionCall 11 divmod () [((IntegerConstant 0 (Integer 4 []))) ((IntegerConstant 5 (Integer 4 [])))] (Tuple [(Integer 4 []) (Integer 4 [])]) (TupleConstant [(IntegerConstant 0 (Integer 4 [])) (IntegerConstant 0 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) ())] () Public .false. .false.), test_float: (Function (SymbolTable 10 {a: (Variable 10 a [] Local () () Default (Real 8 []) Source Public Required .false.)}) test_float (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 10 a) (RealConstant 0.000000 (Real 8 [])) ()) (= (Var 10 a) (RealConstant 4.560000 (Real 8 [])) ()) (= (Var 10 a) (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToReal (Real 8 []) (RealConstant 5.000000 (Real 8 []))) ()) (= (Var 10 a) (Cast (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) IntegerToReal (Real 8 []) (RealConstant -1.000000 (Real 8 []))) ()) (= (Var 10 a) (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToReal (Real 8 []) (RealConstant 1.000000 (Real 8 []))) ()) (= (Var 10 a) (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToReal (Real 8 []) (RealConstant 0.000000 (Real 8 []))) ())] () Public .false. .false.), test_int: (Function (SymbolTable 9 {a: (Variable 9 a [] Local () () Default (Integer 8 []) Source Public Required .false.)}) test_int (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 9 a) (IntegerConstant 0 (Integer 8 [])) ()) (= (Var 9 a) (Cast (RealConstant 4.560000 (Real 8 [])) RealToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 []))) ()) (= (Var 9 a) (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (= (Var 9 a) (Cast (RealUnaryMinus (RealConstant 5.000010 (Real 8 [])) (Real 8 []) (RealConstant -5.000010 (Real 8 []))) RealToInteger (Integer 8 []) (IntegerConstant -5 (Integer 8 []))) ()) (= (Var 9 a) (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) ()) (= (Var 9 a) (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) ()) (= (Var 9 a) (IntegerConstant 5346 (Integer 8 [])) ())] () Public .false. .false.), test_len: (Function (SymbolTable 5 {a: (Variable 5 a [] Local () () Default (Integer 4 []) Source Public Required .false.), l: (Variable 5 l [] Local () () Default (List (Integer 4 [])) Source Public Required .false.)}) test_len (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 5 a) (StringLen (StringConstant "" (Character 1 0 () [])) (Integer 4 []) (IntegerConstant 0 (Integer 4 []))) ()) (= (Var 5 a) (StringLen (StringConstant "test" (Character 1 4 () [])) (Integer 4 []) (IntegerConstant 4 (Integer 4 []))) ()) (= (Var 5 a) (StringLen (StringConstant "this is a test" (Character 1 14 () [])) (Integer 4 []) (IntegerConstant 14 (Integer 4 []))) ()) (= (Var 5 a) (TupleLen (TupleConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 []) (Integer 4 [])])) (Integer 4 []) (IntegerConstant 3 (Integer 4 []))) ()) (= (Var 5 a) (TupleLen (TupleConstant [(TupleConstant [(StringConstant "c" (Character 1 1 () [])) (StringConstant "b" (Character 1 1 () [])) (RealConstant 3.400000 (Real 8 []))] (Tuple [(Character 1 1 () []) (Character 1 1 () []) (Real 8 [])])) (TupleConstant [(StringConstant "c" (Character 1 1 () [])) (IntegerConstant 3 (Integer 4 [])) (RealConstant 5.600000 (Real 8 []))] (Tuple [(Character 1 1 () []) (Integer 4 []) (Real 8 [])]))] (Tuple [(Tuple [(Character 1 1 () []) (Character 1 1 () []) (Real 8 [])]) (Tuple [(Character 1 1 () []) (Integer 4 []) (Real 8 [])])])) (Integer 4 []) (IntegerConstant 2 (Integer 4 []))) ()) (= (Var 5 a) (ListLen (ListConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))] (List (Integer 4 []))) (Integer 4 []) (IntegerConstant 3 (Integer 4 []))) ()) (= (Var 5 a) (ListLen (ListConstant [(ListConstant [(IntegerUnaryMinus (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4 (Integer 4 []))) (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) (IntegerUnaryMinus (IntegerConstant 6 (Integer 4 [])) (Integer 4 []) (IntegerConstant -6 (Integer 4 [])))] (List (Integer 4 []))) (ListConstant [(IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) (IntegerUnaryMinus (IntegerConstant 2 (Integer 4 [])) (Integer 4 []) (IntegerConstant -2 (Integer 4 []))) (IntegerUnaryMinus (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) (IntegerConstant -3 (Integer 4 [])))] (List (Integer 4 [])))] (List (List (Integer 4 [])))) (Integer 4 []) (IntegerConstant 2 (Integer 4 []))) ()) (= (Var 5 a) (SetLen (SetConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))] (Set (Integer 4 []))) (Integer 4 []) (IntegerConstant 3 (Integer 4 []))) ()) (= (Var 5 a) (DictLen (DictConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))] [(StringConstant "c" (Character 1 1 () [])) (StringConstant "b" (Character 1 1 () [])) (StringConstant "c" (Character 1 1 () []))] (Dict (Integer 4 []) (Character 1 1 () []))) (Integer 4 []) (IntegerConstant 3 (Integer 4 []))) ()) (= (Var 5 l) (ListConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])) (IntegerConstant 4 (Integer 4 []))] (List (Integer 4 []))) ()) (= (Var 5 a) (ListLen (Var 5 l) (Integer 4 []) ()) ()) (ListAppend (Var 5 l) (IntegerConstant 5 (Integer 4 []))) (= (Var 5 a) (ListLen (Var 5 l) (Integer 4 []) ()) ())] () Public .false. .false.), test_ord_chr: (Function (SymbolTable 3 {a: (Variable 3 a [] Local () () Default (Integer 4 []) Source Public Required .false.), s: (Variable 3 s [] Local () () Default (Character 1 -2 () []) Source Public Required .false.)}) test_ord_chr (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 3 a) (StringOrd (StringConstant "5" (Character 1 1 () [])) (Integer 4 []) (IntegerConstant 53 (Integer 4 []))) ()) (= (Var 3 s) (StringChr (IntegerConstant 43 (Integer 4 [])) (Character 1 1 () []) (StringConstant "+" (Character 1 1 () []))) ())] () Public .false. .false.), test_str: (Function (SymbolTable 7 {s: (Variable 7 s [] Local () () Default (Character 1 -2 () []) Source Public Required .false.)}) test_str (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 7 s) (StringConstant "" (Character 1 0 () [])) ()) (= (Var 7 s) (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToCharacter (Character 1 -2 () []) (StringConstant "5" (Character 1 1 () []))) ()) (= (Var 7 s) (Cast (IntegerUnaryMinus (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4 (Integer 4 []))) IntegerToCharacter (Character 1 -2 () []) (StringConstant "-4" (Character 1 2 () []))) ()) (= (Var 7 s) (Cast (RealConstant 5.600000 (Real 8 [])) RealToCharacter (Character 1 -2 () []) (StringConstant "5.6" (Character 1 3 () []))) ()) (= (Var 7 s) (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToCharacter (Character 1 -2 () []) (StringConstant "True" (Character 1 4 () []))) ()) (= (Var 7 s) (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToCharacter (Character 1 -2 () []) (StringConstant "False" (Character 1 5 () []))) ()) (= (Var 7 s) (StringConstant "5346" (Character 1 4 () [])) ())] () Public .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 115 {}) main_program [] []), test_abs: (Function (SymbolTable 4 {a: (Variable 4 a [] Local () () Default (Integer 4 []) Source Public Required .false.), abs: (ExternalSymbol 4 abs 13 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 4 abs@__lpython_overloaded_0__abs 13 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_4__abs: (ExternalSymbol 4 abs@__lpython_overloaded_4__abs 13 __lpython_overloaded_4__abs lpython_builtin [] __lpython_overloaded_4__abs Public), abs@__lpython_overloaded_6__abs: (ExternalSymbol 4 abs@__lpython_overloaded_6__abs 13 __lpython_overloaded_6__abs lpython_builtin [] __lpython_overloaded_6__abs Public), abs@__lpython_overloaded_8__abs: (ExternalSymbol 4 abs@__lpython_overloaded_8__abs 13 __lpython_overloaded_8__abs lpython_builtin [] __lpython_overloaded_8__abs Public), b: (Variable 4 b [] Local () () Default (Real 4 []) Source Public Required .false.), complex: (ExternalSymbol 4 complex 13 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_5__complex: (ExternalSymbol 4 complex@__lpython_overloaded_5__complex 13 __lpython_overloaded_5__complex lpython_builtin [] __lpython_overloaded_5__complex Public)}) test_abs (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_4__abs abs@__lpython_overloaded_6__abs abs@__lpython_overloaded_8__abs complex@__lpython_overloaded_5__complex] [] [(= (Var 4 a) (FunctionCall 4 abs@__lpython_overloaded_4__abs 4 abs [((IntegerConstant 5 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 5 (Integer 4 [])) ()) ()) (= (Var 4 a) (FunctionCall 4 abs@__lpython_overloaded_4__abs 4 abs [((IntegerUnaryMinus (IntegerConstant 500 (Integer 4 [])) (Integer 4 []) (IntegerConstant -500 (Integer 4 []))))] (Integer 4 []) (IntegerConstant 500 (Integer 4 [])) ()) ()) (= (Var 4 a) (FunctionCall 4 abs@__lpython_overloaded_6__abs 4 abs [((LogicalConstant .false. (Logical 4 [])))] (Integer 4 []) (IntegerConstant 0 (Integer 4 [])) ()) ()) (= (Var 4 a) (FunctionCall 4 abs@__lpython_overloaded_6__abs 4 abs [((LogicalConstant .true. (Logical 4 [])))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) ()) (= (Var 4 b) (Cast (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealConstant 3.450000 (Real 8 [])))] (Real 8 []) (RealConstant 3.450000 (Real 8 [])) ()) RealToReal (Real 4 []) (RealConstant 3.450000 (Real 4 []))) ()) (= (Var 4 b) (Cast (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealUnaryMinus (RealConstant 5346.340000 (Real 8 [])) (Real 8 []) (RealConstant -5346.340000 (Real 8 []))))] (Real 8 []) (RealConstant 5346.340000 (Real 8 [])) ()) RealToReal (Real 4 []) (RealConstant 5346.340000 (Real 4 []))) ()) (= (Var 4 b) (Cast (FunctionCall 4 abs@__lpython_overloaded_8__abs 4 abs [((FunctionCall 4 complex@__lpython_overloaded_5__complex 4 complex [((RealConstant 3.450000 (Real 8 []))) ((RealConstant 5.600000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.450000 5.600000 (Complex 8 [])) ()))] (Real 8 []) (RealConstant 6.577424 (Real 8 [])) ()) RealToReal (Real 4 []) (RealConstant 6.577424 (Real 4 []))) ())] () Public .false. .false.), test_bool: (Function (SymbolTable 6 {a: (Variable 6 a [] Local () () Default (Logical 4 []) Source Public Required .false.), complex: (ExternalSymbol 6 complex 13 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_9__complex: (ExternalSymbol 6 complex@__lpython_overloaded_9__complex 13 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public)}) test_bool (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_9__complex] [] [(= (Var 6 a) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 6 a) (Cast (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) IntegerToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 6 a) (Cast (StringConstant "" (Character 1 0 () [])) CharacterToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 6 a) (Cast (FunctionCall 6 complex@__lpython_overloaded_9__complex 6 complex [((IntegerConstant 0 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 [])) ()) ComplexToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (Assert (LogicalCompare (Var 6 a) Eq (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) ()) ()) (= (Var 6 a) (Cast (StringConstant "t" (Character 1 1 () [])) CharacterToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 6 a) (Cast (RealConstant 2.300000 (Real 8 [])) RealToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (LogicalCompare (Var 6 a) Eq (LogicalConstant .true. (Logical 4 [])) (Logical 4 []) ()) ())] () Public .false. .false.), test_boz: (Function (SymbolTable 2 {b: (Variable 2 b [] Local () () Default (Character 1 -2 () []) Source Public Required .false.), bin: (ExternalSymbol 2 bin 13 bin lpython_builtin [] bin Private), hex: (ExternalSymbol 2 hex 13 hex lpython_builtin [] hex Private), oct: (ExternalSymbol 2 oct 13 oct lpython_builtin [] oct Private)}) test_boz (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [bin hex oct] [] [(= (Var 2 b) (FunctionCall 2 bin () [((IntegerConstant 5 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0b101" (Character 1 5 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 bin () [((IntegerConstant 64 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0b1000000" (Character 1 9 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 bin () [((IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0b1000010110" (Character 1 13 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 oct () [((IntegerConstant 8 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0o10" (Character 1 4 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 oct () [((IntegerConstant 56 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0o70" (Character 1 4 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 oct () [((IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0o1026" (Character 1 7 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 hex () [((IntegerConstant 42 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0x2a" (Character 1 4 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 hex () [((IntegerConstant 12648430 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0xc0ffee" (Character 1 8 () [])) ()) ()) (= (Var 2 b) (FunctionCall 2 hex () [((IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0x216" (Character 1 6 () [])) ()) ())] () Public .false. .false.), test_callable: (Function (SymbolTable 8 {a: (Variable 8 a [] Local () () Default (Logical 4 []) Source Public Required .false.), b: (Variable 8 b [] Local () () Default (Integer 4 []) Source Public Required .false.)}) test_callable (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 8 b) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 8 a) (LogicalConstant .true. (Logical 4 [])) ()) (Assert (LogicalCompare (Var 8 a) Eq (LogicalConstant .true. (Logical 4 [])) (Logical 4 []) ()) ()) (= (Var 8 a) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (LogicalCompare (Var 8 a) Eq (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) ()) ()) (= (Var 8 a) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (LogicalCompare (Var 8 a) Eq (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) ()) ())] () Public .false. .false.), test_divmod: (Function (SymbolTable 11 {a: (Variable 11 a [] Local () () Default (Tuple [(Integer 4 []) (Integer 4 [])]) Source Public Required .false.), divmod: (ExternalSymbol 11 divmod 13 divmod lpython_builtin [] divmod Private)}) test_divmod (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [divmod] [] [(= (Var 11 a) (FunctionCall 11 divmod () [((IntegerConstant 9 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Tuple [(Integer 4 []) (Integer 4 [])]) (TupleConstant [(IntegerConstant 3 (Integer 4 [])) (IntegerConstant 0 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) ()) (= (Var 11 a) (FunctionCall 11 divmod () [((IntegerConstant 9 (Integer 4 []))) ((IntegerUnaryMinus (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) (IntegerConstant -3 (Integer 4 []))))] (Tuple [(Integer 4 []) (Integer 4 [])]) (TupleConstant [(IntegerConstant -3 (Integer 4 [])) (IntegerConstant 0 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) ()) (= (Var 11 a) (FunctionCall 11 divmod () [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Tuple [(Integer 4 []) (Integer 4 [])]) (TupleConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 0 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) ()) (= (Var 11 a) (FunctionCall 11 divmod () [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 5 (Integer 4 [])))] (Tuple [(Integer 4 []) (Integer 4 [])]) (TupleConstant [(IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) ()) (= (Var 11 a) (FunctionCall 11 divmod () [((IntegerConstant 0 (Integer 4 []))) ((IntegerConstant 5 (Integer 4 [])))] (Tuple [(Integer 4 []) (Integer 4 [])]) (TupleConstant [(IntegerConstant 0 (Integer 4 [])) (IntegerConstant 0 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) ())] () Public .false. .false.), test_float: (Function (SymbolTable 10 {a: (Variable 10 a [] Local () () Default (Real 8 []) Source Public Required .false.)}) test_float (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 10 a) (RealConstant 0.000000 (Real 8 [])) ()) (= (Var 10 a) (RealConstant 4.560000 (Real 8 [])) ()) (= (Var 10 a) (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToReal (Real 8 []) (RealConstant 5.000000 (Real 8 []))) ()) (= (Var 10 a) (Cast (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) IntegerToReal (Real 8 []) (RealConstant -1.000000 (Real 8 []))) ()) (= (Var 10 a) (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToReal (Real 8 []) (RealConstant 1.000000 (Real 8 []))) ()) (= (Var 10 a) (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToReal (Real 8 []) (RealConstant 0.000000 (Real 8 []))) ())] () Public .false. .false.), test_int: (Function (SymbolTable 9 {a: (Variable 9 a [] Local () () Default (Integer 8 []) Source Public Required .false.)}) test_int (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 9 a) (IntegerConstant 0 (Integer 8 [])) ()) (= (Var 9 a) (Cast (RealConstant 4.560000 (Real 8 [])) RealToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 []))) ()) (= (Var 9 a) (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (= (Var 9 a) (Cast (RealUnaryMinus (RealConstant 5.000010 (Real 8 [])) (Real 8 []) (RealConstant -5.000010 (Real 8 []))) RealToInteger (Integer 8 []) (IntegerConstant -5 (Integer 8 []))) ()) (= (Var 9 a) (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) ()) (= (Var 9 a) (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) ()) (= (Var 9 a) (IntegerConstant 5346 (Integer 8 [])) ())] () Public .false. .false.), test_len: (Function (SymbolTable 5 {a: (Variable 5 a [] Local () () Default (Integer 4 []) Source Public Required .false.), l: (Variable 5 l [] Local () () Default (List (Integer 4 [])) Source Public Required .false.)}) test_len (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 5 a) (StringLen (StringConstant "" (Character 1 0 () [])) (Integer 4 []) (IntegerConstant 0 (Integer 4 []))) ()) (= (Var 5 a) (StringLen (StringConstant "test" (Character 1 4 () [])) (Integer 4 []) (IntegerConstant 4 (Integer 4 []))) ()) (= (Var 5 a) (StringLen (StringConstant "this is a test" (Character 1 14 () [])) (Integer 4 []) (IntegerConstant 14 (Integer 4 []))) ()) (= (Var 5 a) (TupleLen (TupleConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 []) (Integer 4 [])])) (Integer 4 []) (IntegerConstant 3 (Integer 4 []))) ()) (= (Var 5 a) (TupleLen (TupleConstant [(TupleConstant [(StringConstant "c" (Character 1 1 () [])) (StringConstant "b" (Character 1 1 () [])) (RealConstant 3.400000 (Real 8 []))] (Tuple [(Character 1 1 () []) (Character 1 1 () []) (Real 8 [])])) (TupleConstant [(StringConstant "c" (Character 1 1 () [])) (IntegerConstant 3 (Integer 4 [])) (RealConstant 5.600000 (Real 8 []))] (Tuple [(Character 1 1 () []) (Integer 4 []) (Real 8 [])]))] (Tuple [(Tuple [(Character 1 1 () []) (Character 1 1 () []) (Real 8 [])]) (Tuple [(Character 1 1 () []) (Integer 4 []) (Real 8 [])])])) (Integer 4 []) (IntegerConstant 2 (Integer 4 []))) ()) (= (Var 5 a) (ListLen (ListConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))] (List (Integer 4 []))) (Integer 4 []) (IntegerConstant 3 (Integer 4 []))) ()) (= (Var 5 a) (ListLen (ListConstant [(ListConstant [(IntegerUnaryMinus (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4 (Integer 4 []))) (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) (IntegerUnaryMinus (IntegerConstant 6 (Integer 4 [])) (Integer 4 []) (IntegerConstant -6 (Integer 4 [])))] (List (Integer 4 []))) (ListConstant [(IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) (IntegerUnaryMinus (IntegerConstant 2 (Integer 4 [])) (Integer 4 []) (IntegerConstant -2 (Integer 4 []))) (IntegerUnaryMinus (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) (IntegerConstant -3 (Integer 4 [])))] (List (Integer 4 [])))] (List (List (Integer 4 [])))) (Integer 4 []) (IntegerConstant 2 (Integer 4 []))) ()) (= (Var 5 a) (SetLen (SetConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))] (Set (Integer 4 []))) (Integer 4 []) (IntegerConstant 3 (Integer 4 []))) ()) (= (Var 5 a) (DictLen (DictConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))] [(StringConstant "c" (Character 1 1 () [])) (StringConstant "b" (Character 1 1 () [])) (StringConstant "c" (Character 1 1 () []))] (Dict (Integer 4 []) (Character 1 1 () []))) (Integer 4 []) (IntegerConstant 3 (Integer 4 []))) ()) (= (Var 5 l) (ListConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])) (IntegerConstant 4 (Integer 4 []))] (List (Integer 4 []))) ()) (= (Var 5 a) (ListLen (Var 5 l) (Integer 4 []) ()) ()) (ListAppend (Var 5 l) (IntegerConstant 5 (Integer 4 []))) (= (Var 5 a) (ListLen (Var 5 l) (Integer 4 []) ()) ())] () Public .false. .false.), test_ord_chr: (Function (SymbolTable 3 {a: (Variable 3 a [] Local () () Default (Integer 4 []) Source Public Required .false.), s: (Variable 3 s [] Local () () Default (Character 1 -2 () []) Source Public Required .false.)}) test_ord_chr (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 3 a) (StringOrd (StringConstant "5" (Character 1 1 () [])) (Integer 4 []) (IntegerConstant 53 (Integer 4 []))) ()) (= (Var 3 s) (StringChr (IntegerConstant 43 (Integer 4 [])) (Character 1 1 () []) (StringConstant "+" (Character 1 1 () []))) ())] () Public .false. .false.), test_str: (Function (SymbolTable 7 {s: (Variable 7 s [] Local () () Default (Character 1 -2 () []) Source Public Required .false.)}) test_str (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 7 s) (StringConstant "" (Character 1 0 () [])) ()) (= (Var 7 s) (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToCharacter (Character 1 -2 () []) (StringConstant "5" (Character 1 1 () []))) ()) (= (Var 7 s) (Cast (IntegerUnaryMinus (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4 (Integer 4 []))) IntegerToCharacter (Character 1 -2 () []) (StringConstant "-4" (Character 1 2 () []))) ()) (= (Var 7 s) (Cast (RealConstant 5.600000 (Real 8 [])) RealToCharacter (Character 1 -2 () []) (StringConstant "5.6" (Character 1 3 () []))) ()) (= (Var 7 s) (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToCharacter (Character 1 -2 () []) (StringConstant "True" (Character 1 4 () []))) ()) (= (Var 7 s) (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToCharacter (Character 1 -2 () []) (StringConstant "False" (Character 1 5 () []))) ()) (= (Var 7 s) (StringConstant "5346" (Character 1 4 () [])) ())] () Public .false. .false.)}) []) diff --git a/tests/reference/asr-cptr_01-4e660f1.json b/tests/reference/asr-cptr_01-4e660f1.json index 369b361930..c554aa6d5b 100644 --- a/tests/reference/asr-cptr_01-4e660f1.json +++ b/tests/reference/asr-cptr_01-4e660f1.json @@ -2,7 +2,7 @@ "basename": "asr-cptr_01-4e660f1", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/cptr_01.py", - "infile_hash": "0c5f0767aac11155e331581cf0158bb7a9b98ef11bb1716877477b00", + "infile_hash": "92647f6c175f3599be307df700902b5f7fe69826f22fd5f082713ee4", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-doconcurrentloop_01-3fdc189.json b/tests/reference/asr-doconcurrentloop_01-3fdc189.json index 79ceeef42c..3ae7f67a4a 100644 --- a/tests/reference/asr-doconcurrentloop_01-3fdc189.json +++ b/tests/reference/asr-doconcurrentloop_01-3fdc189.json @@ -2,7 +2,7 @@ "basename": "asr-doconcurrentloop_01-3fdc189", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/doconcurrentloop_01.py", - "infile_hash": "dc0022671a9fa7b620378903a700dd8c4390297cacb1aca2b904069d", + "infile_hash": "2fe3769863a595a01e46a88bf55c944e61a0d141d5c75816ffa74d96", "outfile": null, "outfile_hash": null, "stdout": "asr-doconcurrentloop_01-3fdc189.stdout", diff --git a/tests/reference/asr-elemental_01-b58df26.json b/tests/reference/asr-elemental_01-b58df26.json index e29451c72d..ffc001de63 100644 --- a/tests/reference/asr-elemental_01-b58df26.json +++ b/tests/reference/asr-elemental_01-b58df26.json @@ -2,11 +2,11 @@ "basename": "asr-elemental_01-b58df26", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/elemental_01.py", - "infile_hash": "551c075e5247becad7cbb2517969ee76aac1ebade47b409e4c8fedde", + "infile_hash": "f36f9b2debf675fd8c4ea5264807284664db8f68ae19c0eb27715662", "outfile": null, "outfile_hash": null, "stdout": "asr-elemental_01-b58df26.stdout", - "stdout_hash": "589440794bbf6334ab1b15f08535a5724c6c4b00d2587f4b30f98d32", + "stdout_hash": "e5a64941f84cb0ecb9ca2251cce63145b2b2864c1f3483594a1b6901", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-elemental_01-b58df26.stdout b/tests/reference/asr-elemental_01-b58df26.stdout index ad74c10d72..c27ec62273 100644 --- a/tests/reference/asr-elemental_01-b58df26.stdout +++ b/tests/reference/asr-elemental_01-b58df26.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 215 {_lpython_main_program: (Function (SymbolTable 214 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [elemental_sin elemental_cos elemental_trig_identity elemental_sum elemental_mul] [] [(SubroutineCall 215 elemental_sin () [] ()) (SubroutineCall 215 elemental_cos () [] ()) (SubroutineCall 215 elemental_trig_identity () [] ()) (SubroutineCall 215 elemental_sum () [] ()) (SubroutineCall 215 elemental_mul () [] ())] () Public .false. .false.), cos: (ExternalSymbol 215 cos 3 cos numpy [] cos Public), elemental_cos: (Function (SymbolTable 188 {array2d: (Variable 188 array2d [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 [])))]) Source Public Required .false.), cos2d: (Variable 188 cos2d [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 [])))]) Source Public Required .false.), cos@__lpython_overloaded_0__cos: (ExternalSymbol 188 cos@__lpython_overloaded_0__cos 3 __lpython_overloaded_0__cos numpy [] __lpython_overloaded_0__cos Public), i: (Variable 188 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 188 j [] Local () () Default (Integer 4 []) Source Public Required .false.)}) elemental_cos (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [cos@__lpython_overloaded_0__cos verify2d] [] [(DoLoop ((Var 188 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 256 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 255 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 188 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 64 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 63 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 188 array2d) [(() (Var 188 i) ()) (() (Var 188 j) ())] (Real 8 []) RowMajor ()) (Cast (IntegerBinOp (Var 188 i) Add (Var 188 j) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) ())])]) (= (Var 188 cos2d) (RealBinOp (FunctionCall 188 cos@__lpython_overloaded_0__cos 215 cos [((Var 188 array2d))] (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 [])))]) () ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 [])))]) ()) ()) (SubroutineCall 215 verify2d () [((Var 188 array2d)) ((Var 188 cos2d)) ((IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 64 (Integer 4 [])))] ())] () Public .false. .false.), elemental_mul: (Function (SymbolTable 186 {array_a: (Variable 186 array_a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), array_b: (Variable 186 array_b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), array_c: (Variable 186 array_c [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 186 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 186 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 186 k [] Local () () Default (Integer 4 []) Source Public Required .false.)}) elemental_mul (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [verify1d_mul] [] [(DoLoop ((Var 186 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 100 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 99 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 186 array_a) [(() (Var 186 i) ())] (Real 8 []) RowMajor ()) (Cast (Var 186 i) IntegerToReal (Real 8 []) ()) ())]) (DoLoop ((Var 186 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 100 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 99 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 186 array_b) [(() (Var 186 j) ())] (Real 8 []) RowMajor ()) (Cast (IntegerBinOp (Var 186 j) Add (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) ())]) (= (Var 186 array_c) (RealBinOp (RealBinOp (RealBinOp (Var 186 array_a) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) Mul (RealConstant 5.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) Mul (RealBinOp (Var 186 array_b) Pow (RealConstant 3.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) ()) (SubroutineCall 215 verify1d_mul () [((Var 186 array_a)) ((Var 186 array_b)) ((Var 186 array_c)) ((IntegerConstant 100 (Integer 4 [])))] ())] () Public .false. .false.), elemental_sin: (Function (SymbolTable 187 {array1d: (Variable 187 array1d [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) Source Public Required .false.), arraynd: (Variable 187 arraynd [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 187 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 187 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 187 k [] Local () () Default (Integer 4 []) Source Public Required .false.), sin1d: (Variable 187 sin1d [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) Source Public Required .false.), sin@__lpython_overloaded_0__sin: (ExternalSymbol 187 sin@__lpython_overloaded_0__sin 3 __lpython_overloaded_0__sin numpy [] __lpython_overloaded_0__sin Public), sin@__lpython_overloaded_1__sin: (ExternalSymbol 187 sin@__lpython_overloaded_1__sin 3 __lpython_overloaded_1__sin numpy [] __lpython_overloaded_1__sin Public), sinnd: (Variable 187 sinnd [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.)}) elemental_sin (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [sin@__lpython_overloaded_1__sin sin@__lpython_overloaded_1__sin verify1d sin@__lpython_overloaded_0__sin verifynd] [] [(DoLoop ((Var 187 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 256 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 255 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 187 array1d) [(() (Var 187 i) ())] (Real 4 []) RowMajor ()) (Cast (Var 187 i) IntegerToReal (Real 4 []) ()) ())]) (= (Var 187 sin1d) (FunctionCall 187 sin@__lpython_overloaded_1__sin 215 sin [((FunctionCall 187 sin@__lpython_overloaded_1__sin 215 sin [((Var 187 array1d))] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) () ()))] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) () ()) ()) (SubroutineCall 215 verify1d () [((Var 187 array1d)) ((Var 187 sin1d)) ((IntegerConstant 256 (Integer 4 [])))] ()) (DoLoop ((Var 187 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 256 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 255 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 187 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 64 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 63 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 187 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 187 arraynd) [(() (Var 187 i) ()) (() (Var 187 j) ()) (() (Var 187 k) ())] (Real 8 []) RowMajor ()) (Cast (IntegerBinOp (IntegerBinOp (Var 187 i) Add (Var 187 j) (Integer 4 []) ()) Add (Var 187 k) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) ())])])]) (= (Var 187 sinnd) (RealBinOp (FunctionCall 187 sin@__lpython_overloaded_0__sin 215 sin [((Var 187 arraynd))] (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) () ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) ()) ()) (SubroutineCall 215 verifynd () [((Var 187 arraynd)) ((Var 187 sinnd)) ((IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 16 (Integer 4 [])))] ())] () Public .false. .false.), elemental_sum: (Function (SymbolTable 185 {array_a: (Variable 185 array_a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), array_b: (Variable 185 array_b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), array_c: (Variable 185 array_c [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 185 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 185 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 185 k [] Local () () Default (Integer 4 []) Source Public Required .false.)}) elemental_sum (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [verify1d_sum] [] [(DoLoop ((Var 185 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 100 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 99 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 185 array_a) [(() (Var 185 i) ())] (Real 8 []) RowMajor ()) (Cast (Var 185 i) IntegerToReal (Real 8 []) ()) ())]) (DoLoop ((Var 185 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 100 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 99 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 185 array_b) [(() (Var 185 j) ())] (Real 8 []) RowMajor ()) (Cast (IntegerBinOp (Var 185 j) Add (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) ())]) (= (Var 185 array_c) (RealBinOp (RealBinOp (Var 185 array_a) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) Add (RealBinOp (RealConstant 5.000000 (Real 8 [])) Mul (RealBinOp (Var 185 array_b) Pow (RealConstant 3.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) ()) (SubroutineCall 215 verify1d_sum () [((Var 185 array_a)) ((Var 185 array_b)) ((Var 185 array_c)) ((IntegerConstant 100 (Integer 4 [])))] ())] () Public .false. .false.), elemental_trig_identity: (Function (SymbolTable 189 {arraynd: (Variable 189 arraynd [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) Source Public Required .false.), block: (Block (SymbolTable 212 {abs: (ExternalSymbol 212 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_1__abs: (ExternalSymbol 212 abs@__lpython_overloaded_1__abs 79 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public)}) block [(Assert (RealCompare (FunctionCall 212 abs@__lpython_overloaded_1__abs 212 abs [((RealBinOp (ArrayItem (Var 189 observed1d) [(() (Var 189 i) ())] (Real 4 []) RowMajor ()) Sub (Cast (RealConstant 1.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 1.000000 (Real 4 []))) (Real 4 []) ()))] (Real 4 []) () ()) LtE (Var 189 eps) (Logical 4 []) ()) ())]), cos@__lpython_overloaded_1__cos: (ExternalSymbol 189 cos@__lpython_overloaded_1__cos 3 __lpython_overloaded_1__cos numpy [] __lpython_overloaded_1__cos Public), eps: (Variable 189 eps [] Local () () Default (Real 4 []) Source Public Required .false.), i: (Variable 189 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 189 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 189 k [] Local () () Default (Integer 4 []) Source Public Required .false.), l: (Variable 189 l [] Local () () Default (Integer 4 []) Source Public Required .false.), newshape: (Variable 189 newshape [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), observed: (Variable 189 observed [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) Source Public Required .false.), observed1d: (Variable 189 observed1d [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 65536 (Integer 4 [])))]) Source Public Required .false.), sin@__lpython_overloaded_1__sin: (ExternalSymbol 189 sin@__lpython_overloaded_1__sin 3 __lpython_overloaded_1__sin numpy [] __lpython_overloaded_1__sin Public)}) elemental_trig_identity (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_1__abs sin@__lpython_overloaded_1__sin cos@__lpython_overloaded_1__cos abs@__lpython_overloaded_1__abs] [] [(= (Var 189 eps) (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) ()) (DoLoop ((Var 189 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 64 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 63 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 189 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 32 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 31 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 189 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 8 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 7 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 189 l) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 4 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 3 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 189 arraynd) [(() (Var 189 i) ()) (() (Var 189 j) ()) (() (Var 189 k) ()) (() (Var 189 l) ())] (Real 4 []) RowMajor ()) (Cast (IntegerBinOp (IntegerBinOp (IntegerBinOp (Var 189 i) Add (Var 189 j) (Integer 4 []) ()) Add (Var 189 k) (Integer 4 []) ()) Add (Var 189 l) (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ())])])])]) (= (Var 189 observed) (RealBinOp (RealBinOp (FunctionCall 189 sin@__lpython_overloaded_1__sin 215 sin [((Var 189 arraynd))] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) () ()) Pow (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) ()) Add (RealBinOp (FunctionCall 189 cos@__lpython_overloaded_1__cos 215 cos [((Var 189 arraynd))] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) () ()) Pow (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) ()) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) ()) ()) (= (ArrayItem (Var 189 newshape) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 65536 (Integer 4 [])) ()) (= (Var 189 observed1d) (ArrayReshape (Var 189 observed) (Var 189 newshape) (Real 4 [(() ())]) ()) ()) (DoLoop ((Var 189 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 65536 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 65535 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 189 block)])] () Public .false. .false.), sin: (ExternalSymbol 215 sin 3 sin numpy [] sin Public), verify1d: (Function (SymbolTable 180 {array: (Variable 180 array [] InOut () () Default (Real 4 [(() ())]) Source Public Required .false.), block: (Block (SymbolTable 190 {abs: (ExternalSymbol 190 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_1__abs: (ExternalSymbol 190 abs@__lpython_overloaded_1__abs 79 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), sin@__lpython_overloaded_1__sin: (ExternalSymbol 190 sin@__lpython_overloaded_1__sin 3 __lpython_overloaded_1__sin numpy [] __lpython_overloaded_1__sin Public)}) block [(Assert (RealCompare (FunctionCall 190 abs@__lpython_overloaded_1__abs 190 abs [((RealBinOp (FunctionCall 190 sin@__lpython_overloaded_1__sin 215 sin [((FunctionCall 190 sin@__lpython_overloaded_1__sin 215 sin [((ArrayItem (Var 180 array) [(() (Var 180 i) ())] (Real 4 []) RowMajor ()))] (Real 4 []) () ()))] (Real 4 []) () ()) Sub (ArrayItem (Var 180 result) [(() (Var 180 i) ())] (Real 4 []) RowMajor ()) (Real 4 []) ()))] (Real 4 []) () ()) LtE (Var 180 eps) (Logical 4 []) ()) ())]), eps: (Variable 180 eps [] Local () () Default (Real 4 []) Source Public Required .false.), i: (Variable 180 i [] Local () () Default (Integer 4 []) Source Public Required .false.), result: (Variable 180 result [] InOut () () Default (Real 4 [(() ())]) Source Public Required .false.), size: (Variable 180 size [] In () () Default (Integer 4 []) Source Public Required .false.)}) verify1d (FunctionType [(Real 4 [(() ())]) (Real 4 [(() ())]) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_1__abs sin@__lpython_overloaded_1__sin sin@__lpython_overloaded_1__sin abs@__lpython_overloaded_1__abs sin@__lpython_overloaded_1__sin sin@__lpython_overloaded_1__sin] [(Var 180 array) (Var 180 result) (Var 180 size)] [(= (Var 180 eps) (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) ()) (DoLoop ((Var 180 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 180 size) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 180 block)])] () Public .false. .false.), verify1d_mul: (Function (SymbolTable 184 {array_a: (Variable 184 array_a [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), array_b: (Variable 184 array_b [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), block: (Block (SymbolTable 197 {abs: (ExternalSymbol 197 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 197 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block [(Assert (RealCompare (FunctionCall 197 abs@__lpython_overloaded_0__abs 197 abs [((RealBinOp (RealBinOp (RealBinOp (RealBinOp (ArrayItem (Var 184 array_a) [(() (Var 184 i) ())] (Real 8 []) RowMajor ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Mul (RealConstant 5.000000 (Real 8 [])) (Real 8 []) ()) Mul (RealBinOp (ArrayItem (Var 184 array_b) [(() (Var 184 i) ())] (Real 8 []) RowMajor ()) Pow (RealConstant 3.000000 (Real 8 [])) (Real 8 []) ()) (Real 8 []) ()) Sub (ArrayItem (Var 184 result) [(() (Var 184 i) ())] (Real 8 []) RowMajor ()) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 184 eps) (Logical 4 []) ()) ())]), eps: (Variable 184 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 184 i [] Local () () Default (Integer 4 []) Source Public Required .false.), result: (Variable 184 result [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), size: (Variable 184 size [] In () () Default (Integer 4 []) Source Public Required .false.)}) verify1d_mul (FunctionType [(Real 8 [(() ())]) (Real 8 [(() ())]) (Real 8 [(() ())]) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [(Var 184 array_a) (Var 184 array_b) (Var 184 result) (Var 184 size)] [(= (Var 184 eps) (RealConstant 0.000000 (Real 8 [])) ()) (DoLoop ((Var 184 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 184 size) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 184 block)])] () Public .false. .false.), verify1d_sum: (Function (SymbolTable 183 {array_a: (Variable 183 array_a [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), array_b: (Variable 183 array_b [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), block: (Block (SymbolTable 196 {abs: (ExternalSymbol 196 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 196 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block [(Assert (RealCompare (FunctionCall 196 abs@__lpython_overloaded_0__abs 196 abs [((RealBinOp (RealBinOp (RealBinOp (ArrayItem (Var 183 array_a) [(() (Var 183 i) ())] (Real 8 []) RowMajor ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Add (RealBinOp (RealConstant 5.000000 (Real 8 [])) Mul (RealBinOp (ArrayItem (Var 183 array_b) [(() (Var 183 i) ())] (Real 8 []) RowMajor ()) Pow (RealConstant 3.000000 (Real 8 [])) (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) Sub (ArrayItem (Var 183 result) [(() (Var 183 i) ())] (Real 8 []) RowMajor ()) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 183 eps) (Logical 4 []) ()) ())]), eps: (Variable 183 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 183 i [] Local () () Default (Integer 4 []) Source Public Required .false.), result: (Variable 183 result [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), size: (Variable 183 size [] In () () Default (Integer 4 []) Source Public Required .false.)}) verify1d_sum (FunctionType [(Real 8 [(() ())]) (Real 8 [(() ())]) (Real 8 [(() ())]) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [(Var 183 array_a) (Var 183 array_b) (Var 183 result) (Var 183 size)] [(= (Var 183 eps) (RealConstant 0.000000 (Real 8 [])) ()) (DoLoop ((Var 183 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 183 size) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 183 block)])] () Public .false. .false.), verify2d: (Function (SymbolTable 182 {array: (Variable 182 array [] InOut () () Default (Real 8 [(() ()) (() ())]) Source Public Required .false.), block: (Block (SymbolTable 194 {block: (Block (SymbolTable 195 {abs: (ExternalSymbol 195 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 195 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), cos@__lpython_overloaded_0__cos: (ExternalSymbol 195 cos@__lpython_overloaded_0__cos 3 __lpython_overloaded_0__cos numpy [] __lpython_overloaded_0__cos Public)}) block [(Assert (RealCompare (FunctionCall 195 abs@__lpython_overloaded_0__abs 195 abs [((RealBinOp (RealBinOp (FunctionCall 195 cos@__lpython_overloaded_0__cos 215 cos [((ArrayItem (Var 182 array) [(() (Var 182 i) ()) (() (Var 182 j) ())] (Real 8 []) RowMajor ()))] (Real 8 []) () ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Sub (ArrayItem (Var 182 result) [(() (Var 182 i) ()) (() (Var 182 j) ())] (Real 8 []) RowMajor ()) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 182 eps) (Logical 4 []) ()) ())])}) block [(DoLoop ((Var 182 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 182 size2) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 194 block)])]), eps: (Variable 182 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 182 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 182 j [] Local () () Default (Integer 4 []) Source Public Required .false.), result: (Variable 182 result [] InOut () () Default (Real 8 [(() ()) (() ())]) Source Public Required .false.), size1: (Variable 182 size1 [] In () () Default (Integer 4 []) Source Public Required .false.), size2: (Variable 182 size2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) verify2d (FunctionType [(Real 8 [(() ()) (() ())]) (Real 8 [(() ()) (() ())]) (Integer 4 []) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs cos@__lpython_overloaded_0__cos abs@__lpython_overloaded_0__abs cos@__lpython_overloaded_0__cos abs@__lpython_overloaded_0__abs cos@__lpython_overloaded_0__cos] [(Var 182 array) (Var 182 result) (Var 182 size1) (Var 182 size2)] [(= (Var 182 eps) (RealConstant 0.000000 (Real 8 [])) ()) (DoLoop ((Var 182 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 182 size1) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 182 block)])] () Public .false. .false.), verifynd: (Function (SymbolTable 181 {array: (Variable 181 array [] InOut () () Default (Real 8 [(() ()) (() ()) (() ())]) Source Public Required .false.), block: (Block (SymbolTable 191 {block: (Block (SymbolTable 192 {block: (Block (SymbolTable 193 {abs: (ExternalSymbol 193 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 193 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), sin@__lpython_overloaded_0__sin: (ExternalSymbol 193 sin@__lpython_overloaded_0__sin 3 __lpython_overloaded_0__sin numpy [] __lpython_overloaded_0__sin Public)}) block [(Assert (RealCompare (FunctionCall 193 abs@__lpython_overloaded_0__abs 193 abs [((RealBinOp (RealBinOp (FunctionCall 193 sin@__lpython_overloaded_0__sin 215 sin [((ArrayItem (Var 181 array) [(() (Var 181 i) ()) (() (Var 181 j) ()) (() (Var 181 k) ())] (Real 8 []) RowMajor ()))] (Real 8 []) () ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Sub (ArrayItem (Var 181 result) [(() (Var 181 i) ()) (() (Var 181 j) ()) (() (Var 181 k) ())] (Real 8 []) RowMajor ()) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 181 eps) (Logical 4 []) ()) ())])}) block [(DoLoop ((Var 181 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 181 size3) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 192 block)])])}) block [(DoLoop ((Var 181 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 181 size2) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 191 block)])]), eps: (Variable 181 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 181 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 181 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 181 k [] Local () () Default (Integer 4 []) Source Public Required .false.), result: (Variable 181 result [] InOut () () Default (Real 8 [(() ()) (() ()) (() ())]) Source Public Required .false.), size1: (Variable 181 size1 [] In () () Default (Integer 4 []) Source Public Required .false.), size2: (Variable 181 size2 [] In () () Default (Integer 4 []) Source Public Required .false.), size3: (Variable 181 size3 [] In () () Default (Integer 4 []) Source Public Required .false.)}) verifynd (FunctionType [(Real 8 [(() ()) (() ()) (() ())]) (Real 8 [(() ()) (() ()) (() ())]) (Integer 4 []) (Integer 4 []) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs sin@__lpython_overloaded_0__sin abs@__lpython_overloaded_0__abs sin@__lpython_overloaded_0__sin abs@__lpython_overloaded_0__abs sin@__lpython_overloaded_0__sin abs@__lpython_overloaded_0__abs sin@__lpython_overloaded_0__sin] [(Var 181 array) (Var 181 result) (Var 181 size1) (Var 181 size2) (Var 181 size3)] [(= (Var 181 eps) (RealConstant 0.000000 (Real 8 [])) ()) (DoLoop ((Var 181 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 181 size1) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 181 block)])] () Public .false. .false.)}) _global_symbols [numpy lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 213 {_lpython_main_program: (ExternalSymbol 213 _lpython_main_program 215 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 213 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_2___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_0___mod 79 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_0___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 216 {_lpython_main_program: (Function (SymbolTable 215 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [elemental_sin elemental_cos elemental_trig_identity elemental_sum elemental_mul] [] [(SubroutineCall 216 elemental_sin () [] ()) (SubroutineCall 216 elemental_cos () [] ()) (SubroutineCall 216 elemental_trig_identity () [] ()) (SubroutineCall 216 elemental_sum () [] ()) (SubroutineCall 216 elemental_mul () [] ())] () Public .false. .false.), cos: (ExternalSymbol 216 cos 3 cos numpy [] cos Public), elemental_cos: (Function (SymbolTable 189 {array2d: (Variable 189 array2d [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 [])))]) Source Public Required .false.), cos2d: (Variable 189 cos2d [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 [])))]) Source Public Required .false.), cos@__lpython_overloaded_0__cos: (ExternalSymbol 189 cos@__lpython_overloaded_0__cos 3 __lpython_overloaded_0__cos numpy [] __lpython_overloaded_0__cos Public), i: (Variable 189 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 189 j [] Local () () Default (Integer 4 []) Source Public Required .false.)}) elemental_cos (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [cos@__lpython_overloaded_0__cos verify2d] [] [(DoLoop ((Var 189 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 256 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 255 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 189 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 64 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 63 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 189 array2d) [(() (Var 189 i) ()) (() (Var 189 j) ())] (Real 8 []) RowMajor ()) (Cast (IntegerBinOp (Var 189 i) Add (Var 189 j) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) ())])]) (= (Var 189 cos2d) (RealBinOp (FunctionCall 189 cos@__lpython_overloaded_0__cos 216 cos [((Var 189 array2d))] (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 [])))]) () ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 [])))]) ()) ()) (SubroutineCall 216 verify2d () [((Var 189 array2d)) ((Var 189 cos2d)) ((IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 64 (Integer 4 [])))] ())] () Public .false. .false.), elemental_mul: (Function (SymbolTable 187 {array_a: (Variable 187 array_a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), array_b: (Variable 187 array_b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), array_c: (Variable 187 array_c [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 187 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 187 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 187 k [] Local () () Default (Integer 4 []) Source Public Required .false.)}) elemental_mul (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [verify1d_mul] [] [(DoLoop ((Var 187 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 100 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 99 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 187 array_a) [(() (Var 187 i) ())] (Real 8 []) RowMajor ()) (Cast (Var 187 i) IntegerToReal (Real 8 []) ()) ())]) (DoLoop ((Var 187 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 100 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 99 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 187 array_b) [(() (Var 187 j) ())] (Real 8 []) RowMajor ()) (Cast (IntegerBinOp (Var 187 j) Add (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) ())]) (= (Var 187 array_c) (RealBinOp (RealBinOp (RealBinOp (Var 187 array_a) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) Mul (RealConstant 5.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) Mul (RealBinOp (Var 187 array_b) Pow (RealConstant 3.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) ()) (SubroutineCall 216 verify1d_mul () [((Var 187 array_a)) ((Var 187 array_b)) ((Var 187 array_c)) ((IntegerConstant 100 (Integer 4 [])))] ())] () Public .false. .false.), elemental_sin: (Function (SymbolTable 188 {array1d: (Variable 188 array1d [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) Source Public Required .false.), arraynd: (Variable 188 arraynd [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 188 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 188 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 188 k [] Local () () Default (Integer 4 []) Source Public Required .false.), sin1d: (Variable 188 sin1d [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) Source Public Required .false.), sin@__lpython_overloaded_0__sin: (ExternalSymbol 188 sin@__lpython_overloaded_0__sin 3 __lpython_overloaded_0__sin numpy [] __lpython_overloaded_0__sin Public), sin@__lpython_overloaded_1__sin: (ExternalSymbol 188 sin@__lpython_overloaded_1__sin 3 __lpython_overloaded_1__sin numpy [] __lpython_overloaded_1__sin Public), sinnd: (Variable 188 sinnd [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.)}) elemental_sin (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [sin@__lpython_overloaded_1__sin sin@__lpython_overloaded_1__sin verify1d sin@__lpython_overloaded_0__sin verifynd] [] [(DoLoop ((Var 188 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 256 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 255 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 188 array1d) [(() (Var 188 i) ())] (Real 4 []) RowMajor ()) (Cast (Var 188 i) IntegerToReal (Real 4 []) ()) ())]) (= (Var 188 sin1d) (FunctionCall 188 sin@__lpython_overloaded_1__sin 216 sin [((FunctionCall 188 sin@__lpython_overloaded_1__sin 216 sin [((Var 188 array1d))] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) () ()))] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) () ()) ()) (SubroutineCall 216 verify1d () [((Var 188 array1d)) ((Var 188 sin1d)) ((IntegerConstant 256 (Integer 4 [])))] ()) (DoLoop ((Var 188 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 256 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 255 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 188 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 64 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 63 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 188 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 188 arraynd) [(() (Var 188 i) ()) (() (Var 188 j) ()) (() (Var 188 k) ())] (Real 8 []) RowMajor ()) (Cast (IntegerBinOp (IntegerBinOp (Var 188 i) Add (Var 188 j) (Integer 4 []) ()) Add (Var 188 k) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) ())])])]) (= (Var 188 sinnd) (RealBinOp (FunctionCall 188 sin@__lpython_overloaded_0__sin 216 sin [((Var 188 arraynd))] (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) () ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) ()) ()) (SubroutineCall 216 verifynd () [((Var 188 arraynd)) ((Var 188 sinnd)) ((IntegerConstant 256 (Integer 4 []))) ((IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 16 (Integer 4 [])))] ())] () Public .false. .false.), elemental_sum: (Function (SymbolTable 186 {array_a: (Variable 186 array_a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), array_b: (Variable 186 array_b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), array_c: (Variable 186 array_c [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 186 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 186 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 186 k [] Local () () Default (Integer 4 []) Source Public Required .false.)}) elemental_sum (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [verify1d_sum] [] [(DoLoop ((Var 186 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 100 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 99 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 186 array_a) [(() (Var 186 i) ())] (Real 8 []) RowMajor ()) (Cast (Var 186 i) IntegerToReal (Real 8 []) ()) ())]) (DoLoop ((Var 186 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 100 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 99 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 186 array_b) [(() (Var 186 j) ())] (Real 8 []) RowMajor ()) (Cast (IntegerBinOp (Var 186 j) Add (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) ())]) (= (Var 186 array_c) (RealBinOp (RealBinOp (Var 186 array_a) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) Add (RealBinOp (RealConstant 5.000000 (Real 8 [])) Mul (RealBinOp (Var 186 array_b) Pow (RealConstant 3.000000 (Real 8 [])) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 100 (Integer 4 [])))]) ()) ()) (SubroutineCall 216 verify1d_sum () [((Var 186 array_a)) ((Var 186 array_b)) ((Var 186 array_c)) ((IntegerConstant 100 (Integer 4 [])))] ())] () Public .false. .false.), elemental_trig_identity: (Function (SymbolTable 190 {arraynd: (Variable 190 arraynd [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) Source Public Required .false.), block: (Block (SymbolTable 213 {abs: (ExternalSymbol 213 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_1__abs: (ExternalSymbol 213 abs@__lpython_overloaded_1__abs 79 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public)}) block [(Assert (RealCompare (FunctionCall 213 abs@__lpython_overloaded_1__abs 213 abs [((RealBinOp (ArrayItem (Var 190 observed1d) [(() (Var 190 i) ())] (Real 4 []) RowMajor ()) Sub (Cast (RealConstant 1.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 1.000000 (Real 4 []))) (Real 4 []) ()))] (Real 4 []) () ()) LtE (Var 190 eps) (Logical 4 []) ()) ())]), cos@__lpython_overloaded_1__cos: (ExternalSymbol 190 cos@__lpython_overloaded_1__cos 3 __lpython_overloaded_1__cos numpy [] __lpython_overloaded_1__cos Public), eps: (Variable 190 eps [] Local () () Default (Real 4 []) Source Public Required .false.), i: (Variable 190 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 190 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 190 k [] Local () () Default (Integer 4 []) Source Public Required .false.), l: (Variable 190 l [] Local () () Default (Integer 4 []) Source Public Required .false.), newshape: (Variable 190 newshape [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), observed: (Variable 190 observed [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) Source Public Required .false.), observed1d: (Variable 190 observed1d [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 65536 (Integer 4 [])))]) Source Public Required .false.), sin@__lpython_overloaded_1__sin: (ExternalSymbol 190 sin@__lpython_overloaded_1__sin 3 __lpython_overloaded_1__sin numpy [] __lpython_overloaded_1__sin Public)}) elemental_trig_identity (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_1__abs sin@__lpython_overloaded_1__sin cos@__lpython_overloaded_1__cos abs@__lpython_overloaded_1__abs] [] [(= (Var 190 eps) (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) ()) (DoLoop ((Var 190 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 64 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 63 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 190 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 32 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 31 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 190 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 8 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 7 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 190 l) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 4 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 3 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 190 arraynd) [(() (Var 190 i) ()) (() (Var 190 j) ()) (() (Var 190 k) ()) (() (Var 190 l) ())] (Real 4 []) RowMajor ()) (Cast (IntegerBinOp (IntegerBinOp (IntegerBinOp (Var 190 i) Add (Var 190 j) (Integer 4 []) ()) Add (Var 190 k) (Integer 4 []) ()) Add (Var 190 l) (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ())])])])]) (= (Var 190 observed) (RealBinOp (RealBinOp (FunctionCall 190 sin@__lpython_overloaded_1__sin 216 sin [((Var 190 arraynd))] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) () ()) Pow (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) ()) Add (RealBinOp (FunctionCall 190 cos@__lpython_overloaded_1__cos 216 cos [((Var 190 arraynd))] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) () ()) Pow (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) ()) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 64 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 32 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 8 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4 (Integer 4 [])))]) ()) ()) (= (ArrayItem (Var 190 newshape) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 65536 (Integer 4 [])) ()) (= (Var 190 observed1d) (ArrayReshape (Var 190 observed) (Var 190 newshape) (Real 4 [(() ())]) ()) ()) (DoLoop ((Var 190 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 65536 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 65535 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 190 block)])] () Public .false. .false.), sin: (ExternalSymbol 216 sin 3 sin numpy [] sin Public), verify1d: (Function (SymbolTable 181 {array: (Variable 181 array [] InOut () () Default (Real 4 [(() ())]) Source Public Required .false.), block: (Block (SymbolTable 191 {abs: (ExternalSymbol 191 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_1__abs: (ExternalSymbol 191 abs@__lpython_overloaded_1__abs 79 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), sin@__lpython_overloaded_1__sin: (ExternalSymbol 191 sin@__lpython_overloaded_1__sin 3 __lpython_overloaded_1__sin numpy [] __lpython_overloaded_1__sin Public)}) block [(Assert (RealCompare (FunctionCall 191 abs@__lpython_overloaded_1__abs 191 abs [((RealBinOp (FunctionCall 191 sin@__lpython_overloaded_1__sin 216 sin [((FunctionCall 191 sin@__lpython_overloaded_1__sin 216 sin [((ArrayItem (Var 181 array) [(() (Var 181 i) ())] (Real 4 []) RowMajor ()))] (Real 4 []) () ()))] (Real 4 []) () ()) Sub (ArrayItem (Var 181 result) [(() (Var 181 i) ())] (Real 4 []) RowMajor ()) (Real 4 []) ()))] (Real 4 []) () ()) LtE (Var 181 eps) (Logical 4 []) ()) ())]), eps: (Variable 181 eps [] Local () () Default (Real 4 []) Source Public Required .false.), i: (Variable 181 i [] Local () () Default (Integer 4 []) Source Public Required .false.), result: (Variable 181 result [] InOut () () Default (Real 4 [(() ())]) Source Public Required .false.), size: (Variable 181 size [] In () () Default (Integer 4 []) Source Public Required .false.)}) verify1d (FunctionType [(Real 4 [(() ())]) (Real 4 [(() ())]) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_1__abs sin@__lpython_overloaded_1__sin sin@__lpython_overloaded_1__sin abs@__lpython_overloaded_1__abs sin@__lpython_overloaded_1__sin sin@__lpython_overloaded_1__sin] [(Var 181 array) (Var 181 result) (Var 181 size)] [(= (Var 181 eps) (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) ()) (DoLoop ((Var 181 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 181 size) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 181 block)])] () Public .false. .false.), verify1d_mul: (Function (SymbolTable 185 {array_a: (Variable 185 array_a [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), array_b: (Variable 185 array_b [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), block: (Block (SymbolTable 198 {abs: (ExternalSymbol 198 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 198 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block [(Assert (RealCompare (FunctionCall 198 abs@__lpython_overloaded_0__abs 198 abs [((RealBinOp (RealBinOp (RealBinOp (RealBinOp (ArrayItem (Var 185 array_a) [(() (Var 185 i) ())] (Real 8 []) RowMajor ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Mul (RealConstant 5.000000 (Real 8 [])) (Real 8 []) ()) Mul (RealBinOp (ArrayItem (Var 185 array_b) [(() (Var 185 i) ())] (Real 8 []) RowMajor ()) Pow (RealConstant 3.000000 (Real 8 [])) (Real 8 []) ()) (Real 8 []) ()) Sub (ArrayItem (Var 185 result) [(() (Var 185 i) ())] (Real 8 []) RowMajor ()) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 185 eps) (Logical 4 []) ()) ())]), eps: (Variable 185 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 185 i [] Local () () Default (Integer 4 []) Source Public Required .false.), result: (Variable 185 result [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), size: (Variable 185 size [] In () () Default (Integer 4 []) Source Public Required .false.)}) verify1d_mul (FunctionType [(Real 8 [(() ())]) (Real 8 [(() ())]) (Real 8 [(() ())]) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [(Var 185 array_a) (Var 185 array_b) (Var 185 result) (Var 185 size)] [(= (Var 185 eps) (RealConstant 0.000000 (Real 8 [])) ()) (DoLoop ((Var 185 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 185 size) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 185 block)])] () Public .false. .false.), verify1d_sum: (Function (SymbolTable 184 {array_a: (Variable 184 array_a [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), array_b: (Variable 184 array_b [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), block: (Block (SymbolTable 197 {abs: (ExternalSymbol 197 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 197 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block [(Assert (RealCompare (FunctionCall 197 abs@__lpython_overloaded_0__abs 197 abs [((RealBinOp (RealBinOp (RealBinOp (ArrayItem (Var 184 array_a) [(() (Var 184 i) ())] (Real 8 []) RowMajor ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Add (RealBinOp (RealConstant 5.000000 (Real 8 [])) Mul (RealBinOp (ArrayItem (Var 184 array_b) [(() (Var 184 i) ())] (Real 8 []) RowMajor ()) Pow (RealConstant 3.000000 (Real 8 [])) (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) Sub (ArrayItem (Var 184 result) [(() (Var 184 i) ())] (Real 8 []) RowMajor ()) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 184 eps) (Logical 4 []) ()) ())]), eps: (Variable 184 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 184 i [] Local () () Default (Integer 4 []) Source Public Required .false.), result: (Variable 184 result [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), size: (Variable 184 size [] In () () Default (Integer 4 []) Source Public Required .false.)}) verify1d_sum (FunctionType [(Real 8 [(() ())]) (Real 8 [(() ())]) (Real 8 [(() ())]) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [(Var 184 array_a) (Var 184 array_b) (Var 184 result) (Var 184 size)] [(= (Var 184 eps) (RealConstant 0.000000 (Real 8 [])) ()) (DoLoop ((Var 184 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 184 size) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 184 block)])] () Public .false. .false.), verify2d: (Function (SymbolTable 183 {array: (Variable 183 array [] InOut () () Default (Real 8 [(() ()) (() ())]) Source Public Required .false.), block: (Block (SymbolTable 195 {block: (Block (SymbolTable 196 {abs: (ExternalSymbol 196 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 196 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), cos@__lpython_overloaded_0__cos: (ExternalSymbol 196 cos@__lpython_overloaded_0__cos 3 __lpython_overloaded_0__cos numpy [] __lpython_overloaded_0__cos Public)}) block [(Assert (RealCompare (FunctionCall 196 abs@__lpython_overloaded_0__abs 196 abs [((RealBinOp (RealBinOp (FunctionCall 196 cos@__lpython_overloaded_0__cos 216 cos [((ArrayItem (Var 183 array) [(() (Var 183 i) ()) (() (Var 183 j) ())] (Real 8 []) RowMajor ()))] (Real 8 []) () ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Sub (ArrayItem (Var 183 result) [(() (Var 183 i) ()) (() (Var 183 j) ())] (Real 8 []) RowMajor ()) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 183 eps) (Logical 4 []) ()) ())])}) block [(DoLoop ((Var 183 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 183 size2) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 195 block)])]), eps: (Variable 183 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 183 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 183 j [] Local () () Default (Integer 4 []) Source Public Required .false.), result: (Variable 183 result [] InOut () () Default (Real 8 [(() ()) (() ())]) Source Public Required .false.), size1: (Variable 183 size1 [] In () () Default (Integer 4 []) Source Public Required .false.), size2: (Variable 183 size2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) verify2d (FunctionType [(Real 8 [(() ()) (() ())]) (Real 8 [(() ()) (() ())]) (Integer 4 []) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs cos@__lpython_overloaded_0__cos abs@__lpython_overloaded_0__abs cos@__lpython_overloaded_0__cos abs@__lpython_overloaded_0__abs cos@__lpython_overloaded_0__cos] [(Var 183 array) (Var 183 result) (Var 183 size1) (Var 183 size2)] [(= (Var 183 eps) (RealConstant 0.000000 (Real 8 [])) ()) (DoLoop ((Var 183 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 183 size1) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 183 block)])] () Public .false. .false.), verifynd: (Function (SymbolTable 182 {array: (Variable 182 array [] InOut () () Default (Real 8 [(() ()) (() ()) (() ())]) Source Public Required .false.), block: (Block (SymbolTable 192 {block: (Block (SymbolTable 193 {block: (Block (SymbolTable 194 {abs: (ExternalSymbol 194 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 194 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), sin@__lpython_overloaded_0__sin: (ExternalSymbol 194 sin@__lpython_overloaded_0__sin 3 __lpython_overloaded_0__sin numpy [] __lpython_overloaded_0__sin Public)}) block [(Assert (RealCompare (FunctionCall 194 abs@__lpython_overloaded_0__abs 194 abs [((RealBinOp (RealBinOp (FunctionCall 194 sin@__lpython_overloaded_0__sin 216 sin [((ArrayItem (Var 182 array) [(() (Var 182 i) ()) (() (Var 182 j) ()) (() (Var 182 k) ())] (Real 8 []) RowMajor ()))] (Real 8 []) () ()) Pow (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Sub (ArrayItem (Var 182 result) [(() (Var 182 i) ()) (() (Var 182 j) ()) (() (Var 182 k) ())] (Real 8 []) RowMajor ()) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 182 eps) (Logical 4 []) ()) ())])}) block [(DoLoop ((Var 182 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 182 size3) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 193 block)])])}) block [(DoLoop ((Var 182 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 182 size2) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 192 block)])]), eps: (Variable 182 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 182 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 182 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 182 k [] Local () () Default (Integer 4 []) Source Public Required .false.), result: (Variable 182 result [] InOut () () Default (Real 8 [(() ()) (() ()) (() ())]) Source Public Required .false.), size1: (Variable 182 size1 [] In () () Default (Integer 4 []) Source Public Required .false.), size2: (Variable 182 size2 [] In () () Default (Integer 4 []) Source Public Required .false.), size3: (Variable 182 size3 [] In () () Default (Integer 4 []) Source Public Required .false.)}) verifynd (FunctionType [(Real 8 [(() ()) (() ()) (() ())]) (Real 8 [(() ()) (() ()) (() ())]) (Integer 4 []) (Integer 4 []) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs sin@__lpython_overloaded_0__sin abs@__lpython_overloaded_0__abs sin@__lpython_overloaded_0__sin abs@__lpython_overloaded_0__abs sin@__lpython_overloaded_0__sin abs@__lpython_overloaded_0__abs sin@__lpython_overloaded_0__sin] [(Var 182 array) (Var 182 result) (Var 182 size1) (Var 182 size2) (Var 182 size3)] [(= (Var 182 eps) (RealConstant 0.000000 (Real 8 [])) ()) (DoLoop ((Var 182 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 182 size1) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 182 block)])] () Public .false. .false.)}) _global_symbols [numpy lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 214 {_lpython_main_program: (ExternalSymbol 214 _lpython_main_program 216 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 214 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_4___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_4___mod 79 __lpython_overloaded_4___mod lpython_builtin [] __lpython_overloaded_4___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_4___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_4___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_2___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) diff --git a/tests/reference/asr-enum_01-30e1b4a.json b/tests/reference/asr-enum_01-30e1b4a.json index 3a214c68be..f21587576e 100644 --- a/tests/reference/asr-enum_01-30e1b4a.json +++ b/tests/reference/asr-enum_01-30e1b4a.json @@ -2,7 +2,7 @@ "basename": "asr-enum_01-30e1b4a", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/enum_01.py", - "infile_hash": "e74a9bf9d2f2079e8df9676b3234835e39eb3b15bdeb758246470cf5", + "infile_hash": "5f229c1dc30fb06044461359242b2a63d9b93c4086669b391cef7426", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-enum_02-54656c5.json b/tests/reference/asr-enum_02-54656c5.json index 8778ac654a..a989cef176 100644 --- a/tests/reference/asr-enum_02-54656c5.json +++ b/tests/reference/asr-enum_02-54656c5.json @@ -2,7 +2,7 @@ "basename": "asr-enum_02-54656c5", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/enum_02.py", - "infile_hash": "6798550e5836b393a0fc498de2452048cd98dcad769d9ace6d144ecf", + "infile_hash": "8ef155d733622824b261f286d72fb1be235bc6e73586a7acc02906d3", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-expr10-efcbb1b.json b/tests/reference/asr-expr10-efcbb1b.json index 260a8f8f43..934156a0ea 100644 --- a/tests/reference/asr-expr10-efcbb1b.json +++ b/tests/reference/asr-expr10-efcbb1b.json @@ -2,11 +2,11 @@ "basename": "asr-expr10-efcbb1b", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/expr10.py", - "infile_hash": "2c90a0c7da6ba455ad6b7c1d43ffd578e78551f9b3e792144b6dd1cd", + "infile_hash": "7eb1dd6ad27fcc091e18c4447fb7a56c659565bbdb57f567b68f4a58", "outfile": null, "outfile_hash": null, "stdout": "asr-expr10-efcbb1b.stdout", - "stdout_hash": "323281cfbf4a16714ccd92c740521a4325bc6375ff6d9ca9e6c0f25d", + "stdout_hash": "7df6b1473464372fd1ff2c027f3c6c696376735174c418c27605779f", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-expr10-efcbb1b.stdout b/tests/reference/asr-expr10-efcbb1b.stdout index 1eb599790f..1277d92292 100644 --- a/tests/reference/asr-expr10-efcbb1b.stdout +++ b/tests/reference/asr-expr10-efcbb1b.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {}) main_program [] []), test_UnaryOp: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Integer 4 []) Source Public Required .false.), b: (Variable 2 b [] Local () () Default (Logical 4 []) Source Public Required .false.), b1: (Variable 2 b1 [] Local () () Default (Logical 4 []) Source Public Required .false.), b2: (Variable 2 b2 [] Local () () Default (Logical 4 []) Source Public Required .false.), b3: (Variable 2 b3 [] Local () () Default (Logical 4 []) Source Public Required .false.), c: (Variable 2 c [] Local () () Default (Complex 4 []) Source Public Required .false.), complex: (ExternalSymbol 2 complex 4 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_13__complex: (ExternalSymbol 2 complex@__lpython_overloaded_13__complex 4 __lpython_overloaded_13__complex lpython_builtin [] __lpython_overloaded_13__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 4 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public), f: (Variable 2 f [] Local () () Default (Real 4 []) Source Public Required .false.)}) test_UnaryOp (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_13__complex] [] [(= (Var 2 a) (IntegerConstant 4 (Integer 4 [])) ()) (= (Var 2 a) (IntegerUnaryMinus (IntegerConstant 500 (Integer 4 [])) (Integer 4 []) (IntegerConstant -500 (Integer 4 []))) ()) (= (Var 2 a) (IntegerBitNot (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -6 (Integer 4 []))) ()) (= (Var 2 b) (LogicalNot (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 b) (LogicalNot (Cast (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) IntegerToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 b) (LogicalNot (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 f) (RealConstant 1.000000 (Real 4 [])) ()) (= (Var 2 f) (RealUnaryMinus (Cast (RealConstant 183745.534000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 183745.534000 (Real 4 []))) (Real 4 []) (RealConstant -183745.534000 (Real 4 []))) ()) (= (Var 2 b1) (LogicalConstant .true. (Logical 4 [])) ()) (= (Var 2 b2) (LogicalNot (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 b3) (LogicalNot (Var 2 b2) (Logical 4 []) ()) ()) (= (Var 2 a) (IntegerConstant 1 (Integer 4 [])) ()) (= (Var 2 a) (IntegerUnaryMinus (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) (IntegerConstant 0 (Integer 4 []))) (Integer 4 []) (IntegerConstant 0 (Integer 4 []))) ()) (= (Var 2 a) (IntegerBitNot (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) (IntegerConstant -2 (Integer 4 []))) (Integer 4 []) (IntegerConstant -2 (Integer 4 []))) ()) (= (Var 2 c) (ComplexConstant 1.000000 2.000000 (Complex 4 [])) ()) (= (Var 2 c) (ComplexUnaryMinus (Cast (FunctionCall 2 complex@__lpython_overloaded_13__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((RealConstant 65.000000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.000000 65.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 3.000000 65.000000 (Complex 4 []))) (Complex 4 []) (ComplexConstant -3.000000 -65.000000 (Complex 4 []))) ()) (= (Var 2 b1) (LogicalConstant .false. (Logical 4 [])) ()) (= (Var 2 b2) (LogicalConstant .true. (Logical 4 [])) ())] () Public .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {}) main_program [] []), test_UnaryOp: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Integer 4 []) Source Public Required .false.), b: (Variable 2 b [] Local () () Default (Logical 4 []) Source Public Required .false.), b1: (Variable 2 b1 [] Local () () Default (Logical 4 []) Source Public Required .false.), b2: (Variable 2 b2 [] Local () () Default (Logical 4 []) Source Public Required .false.), b3: (Variable 2 b3 [] Local () () Default (Logical 4 []) Source Public Required .false.), c: (Variable 2 c [] Local () () Default (Complex 4 []) Source Public Required .false.), complex: (ExternalSymbol 2 complex 4 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_13__complex: (ExternalSymbol 2 complex@__lpython_overloaded_13__complex 4 __lpython_overloaded_13__complex lpython_builtin [] __lpython_overloaded_13__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 4 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public), f: (Variable 2 f [] Local () () Default (Real 4 []) Source Public Required .false.)}) test_UnaryOp (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_13__complex] [] [(= (Var 2 a) (IntegerConstant 4 (Integer 4 [])) ()) (= (Var 2 a) (IntegerUnaryMinus (IntegerConstant 500 (Integer 4 [])) (Integer 4 []) (IntegerConstant -500 (Integer 4 []))) ()) (= (Var 2 a) (IntegerBitNot (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -6 (Integer 4 []))) ()) (= (Var 2 b) (LogicalNot (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 b) (LogicalNot (Cast (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) IntegerToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 b) (LogicalNot (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 f) (RealConstant 1.000000 (Real 4 [])) ()) (= (Var 2 f) (RealUnaryMinus (Cast (RealConstant 183745.534000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 183745.534000 (Real 4 []))) (Real 4 []) (RealConstant -183745.534000 (Real 4 []))) ()) (= (Var 2 b1) (LogicalConstant .true. (Logical 4 [])) ()) (= (Var 2 b2) (LogicalNot (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 b3) (LogicalNot (Var 2 b2) (Logical 4 []) ()) ()) (= (Var 2 a) (IntegerConstant 1 (Integer 4 [])) ()) (= (Var 2 a) (IntegerUnaryMinus (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) (IntegerConstant 0 (Integer 4 []))) (Integer 4 []) (IntegerConstant 0 (Integer 4 []))) ()) (= (Var 2 a) (IntegerBitNot (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) (IntegerConstant -2 (Integer 4 []))) (Integer 4 []) (IntegerConstant -2 (Integer 4 []))) ()) (= (Var 2 c) (ComplexConstant 1.000000 2.000000 (Complex 4 [])) ()) (= (Var 2 c) (ComplexUnaryMinus (Cast (FunctionCall 2 complex@__lpython_overloaded_13__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((RealConstant 65.000000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.000000 65.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 3.000000 65.000000 (Complex 4 []))) (Complex 4 []) (ComplexConstant -3.000000 -65.000000 (Complex 4 []))) ()) (= (Var 2 b1) (LogicalConstant .false. (Logical 4 [])) ()) (= (Var 2 b2) (LogicalConstant .true. (Logical 4 [])) ())] () Public .false. .false.)}) []) diff --git a/tests/reference/asr-expr13-81bdb5a.json b/tests/reference/asr-expr13-81bdb5a.json index aacd6ce2af..67b767d574 100644 --- a/tests/reference/asr-expr13-81bdb5a.json +++ b/tests/reference/asr-expr13-81bdb5a.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "asr-expr13-81bdb5a.stdout", - "stdout_hash": "e72ca3468901f79878030d9e7e3a3417ee11db0a09a7f5d3d69b2039", + "stdout_hash": "3ec967756ddd76f836e593549f057ada62bda66d8d00c9a1f913e18f", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-expr13-81bdb5a.stdout b/tests/reference/asr-expr13-81bdb5a.stdout index 6e999f3ea2..7e6bab2319 100644 --- a/tests/reference/asr-expr13-81bdb5a.stdout +++ b/tests/reference/asr-expr13-81bdb5a.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {}) main_program [] []), test_Compare: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Logical 4 []) Source Public Required .false.), complex: (ExternalSymbol 2 complex 4 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_5__complex: (ExternalSymbol 2 complex@__lpython_overloaded_5__complex 4 __lpython_overloaded_5__complex lpython_builtin [] __lpython_overloaded_5__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 4 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public)}) test_Compare (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_5__complex complex@__lpython_overloaded_9__complex] [] [(= (Var 2 a) (IntegerCompare (IntegerConstant 5 (Integer 4 [])) Gt (IntegerConstant 4 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (IntegerCompare (IntegerConstant 5 (Integer 4 [])) LtE (IntegerConstant 4 (Integer 4 [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 a) (IntegerCompare (IntegerConstant 5 (Integer 4 [])) Lt (IntegerConstant 4 (Integer 4 [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 a) (RealCompare (RealConstant 5.600000 (Real 8 [])) GtE (RealConstant 5.599990 (Real 8 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (RealCompare (RealConstant 3.300000 (Real 8 [])) Eq (RealConstant 3.300000 (Real 8 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (RealCompare (RealConstant 3.300000 (Real 8 [])) NotEq (RealConstant 3.400000 (Real 8 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (ComplexCompare (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) Eq (FunctionCall 2 complex@__lpython_overloaded_5__complex 2 complex [((RealConstant 3.000000 (Real 8 []))) ((RealConstant 4.000000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "abc" (Character 1 3 () [])) Gt (StringConstant "abd" (Character 1 3 () [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "" (Character 1 0 () [])) Lt (StringConstant "s" (Character 1 1 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "-abs" (Character 1 4 () [])) GtE (StringConstant "abs" (Character 1 3 () [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "abcd" (Character 1 4 () [])) LtE (StringConstant "abcde" (Character 1 5 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "abc" (Character 1 3 () [])) Eq (StringConstant "abc" (Character 1 3 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "abc" (Character 1 3 () [])) NotEq (StringConstant "abd" (Character 1 3 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "" (Character 1 0 () [])) Eq (StringConstant "+" (Character 1 1 () [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 a) (LogicalCompare (LogicalConstant .true. (Logical 4 [])) Gt (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (LogicalCompare (LogicalConstant .true. (Logical 4 [])) Eq (LogicalConstant .true. (Logical 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (LogicalCompare (LogicalConstant .false. (Logical 4 [])) NotEq (LogicalConstant .true. (Logical 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (LogicalCompare (LogicalConstant .false. (Logical 4 [])) GtE (LogicalConstant .true. (Logical 4 [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ())] () Public .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {}) main_program [] []), test_Compare: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Logical 4 []) Source Public Required .false.), complex: (ExternalSymbol 2 complex 4 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_5__complex: (ExternalSymbol 2 complex@__lpython_overloaded_5__complex 4 __lpython_overloaded_5__complex lpython_builtin [] __lpython_overloaded_5__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 4 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public)}) test_Compare (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_5__complex complex@__lpython_overloaded_9__complex] [] [(= (Var 2 a) (IntegerCompare (IntegerConstant 5 (Integer 4 [])) Gt (IntegerConstant 4 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (IntegerCompare (IntegerConstant 5 (Integer 4 [])) LtE (IntegerConstant 4 (Integer 4 [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 a) (IntegerCompare (IntegerConstant 5 (Integer 4 [])) Lt (IntegerConstant 4 (Integer 4 [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 a) (RealCompare (RealConstant 5.600000 (Real 8 [])) GtE (RealConstant 5.599990 (Real 8 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (RealCompare (RealConstant 3.300000 (Real 8 [])) Eq (RealConstant 3.300000 (Real 8 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (RealCompare (RealConstant 3.300000 (Real 8 [])) NotEq (RealConstant 3.400000 (Real 8 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (ComplexCompare (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) Eq (FunctionCall 2 complex@__lpython_overloaded_5__complex 2 complex [((RealConstant 3.000000 (Real 8 []))) ((RealConstant 4.000000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "abc" (Character 1 3 () [])) Gt (StringConstant "abd" (Character 1 3 () [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "" (Character 1 0 () [])) Lt (StringConstant "s" (Character 1 1 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "-abs" (Character 1 4 () [])) GtE (StringConstant "abs" (Character 1 3 () [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "abcd" (Character 1 4 () [])) LtE (StringConstant "abcde" (Character 1 5 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "abc" (Character 1 3 () [])) Eq (StringConstant "abc" (Character 1 3 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "abc" (Character 1 3 () [])) NotEq (StringConstant "abd" (Character 1 3 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (StringCompare (StringConstant "" (Character 1 0 () [])) Eq (StringConstant "+" (Character 1 1 () [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ()) (= (Var 2 a) (LogicalCompare (LogicalConstant .true. (Logical 4 [])) Gt (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (LogicalCompare (LogicalConstant .true. (Logical 4 [])) Eq (LogicalConstant .true. (Logical 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (LogicalCompare (LogicalConstant .false. (Logical 4 [])) NotEq (LogicalConstant .true. (Logical 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a) (LogicalCompare (LogicalConstant .false. (Logical 4 [])) GtE (LogicalConstant .true. (Logical 4 [])) (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) ())] () Public .false. .false.)}) []) diff --git a/tests/reference/asr-expr7-480ba2f.json b/tests/reference/asr-expr7-480ba2f.json index 353069bc6d..037328abc6 100644 --- a/tests/reference/asr-expr7-480ba2f.json +++ b/tests/reference/asr-expr7-480ba2f.json @@ -2,11 +2,11 @@ "basename": "asr-expr7-480ba2f", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/expr7.py", - "infile_hash": "7e10fd3558ed9a0c805fd1f27740f6cc539142917841585c7679779b", + "infile_hash": "7ef1383d1798621ee35adb7296bfe66dcdc08a21ac8dc86b9ce42878", "outfile": null, "outfile_hash": null, "stdout": "asr-expr7-480ba2f.stdout", - "stdout_hash": "eebc9a59edb74e5f9a777611c882396d75632c8c4e3f4b6cad6ea587", + "stdout_hash": "9dc944887243e9b43e647246a134d6940a070187ae954d2fa4bb4121", "stderr": "asr-expr7-480ba2f.stderr", "stderr_hash": "6e9790ac88db1a9ead8f64a91ba8a6605de67167037908a74b77be0c", "returncode": 0 diff --git a/tests/reference/asr-expr7-480ba2f.stdout b/tests/reference/asr-expr7-480ba2f.stdout index d3b786d8dd..db4d487939 100644 --- a/tests/reference/asr-expr7-480ba2f.stdout +++ b/tests/reference/asr-expr7-480ba2f.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 109 {_lpython_main_program: (Function (SymbolTable 108 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [main0] [] [(SubroutineCall 109 main0 () [] ())] () Public .false. .false.), main0: (Function (SymbolTable 4 {c: (Variable 4 c [] Local () () Default (Integer 4 []) Source Public Required .false.)}) main0 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_pow test_pow_1] [] [(SubroutineCall 109 test_pow () [] ()) (= (Var 4 c) (FunctionCall 109 test_pow_1 () [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Integer 4 []) () ()) ())] () Public .false. .false.), test_pow: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Integer 4 []) Source Public Required .false.), pow: (ExternalSymbol 2 pow 6 pow lpython_builtin [] pow Private), pow@__lpython_overloaded_0__pow: (ExternalSymbol 2 pow@__lpython_overloaded_0__pow 6 __lpython_overloaded_0__pow lpython_builtin [] __lpython_overloaded_0__pow Public)}) test_pow (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [pow@__lpython_overloaded_0__pow] [] [(= (Var 2 a) (Cast (FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((IntegerConstant 2 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Real 8 []) (RealConstant 4.000000 (Real 8 [])) ()) RealToInteger (Integer 4 []) (IntegerConstant 4 (Integer 4 []))) ())] () Public .false. .false.), test_pow_1: (Function (SymbolTable 3 {_lpython_return_variable: (Variable 3 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), a: (Variable 3 a [] In () () Default (Integer 4 []) Source Public Required .false.), b: (Variable 3 b [] In () () Default (Integer 4 []) Source Public Required .false.), pow: (ExternalSymbol 3 pow 6 pow lpython_builtin [] pow Private), pow@__lpython_overloaded_0__pow: (ExternalSymbol 3 pow@__lpython_overloaded_0__pow 6 __lpython_overloaded_0__pow lpython_builtin [] __lpython_overloaded_0__pow Public), res: (Variable 3 res [] Local () () Default (Integer 4 []) Source Public Required .false.)}) test_pow_1 (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [pow@__lpython_overloaded_0__pow] [(Var 3 a) (Var 3 b)] [(= (Var 3 res) (Cast (FunctionCall 3 pow@__lpython_overloaded_0__pow 3 pow [((Var 3 a)) ((Var 3 b))] (Real 8 []) () ()) RealToInteger (Integer 4 []) ()) ()) (= (Var 3 _lpython_return_variable) (Var 3 res) ()) (Return)] (Var 3 _lpython_return_variable) Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 107 {_lpython_main_program: (ExternalSymbol 107 _lpython_main_program 109 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 107 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 110 {_lpython_main_program: (Function (SymbolTable 109 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [main0] [] [(SubroutineCall 110 main0 () [] ())] () Public .false. .false.), main0: (Function (SymbolTable 4 {c: (Variable 4 c [] Local () () Default (Integer 4 []) Source Public Required .false.)}) main0 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_pow test_pow_1] [] [(SubroutineCall 110 test_pow () [] ()) (= (Var 4 c) (FunctionCall 110 test_pow_1 () [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Integer 4 []) () ()) ())] () Public .false. .false.), test_pow: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Integer 4 []) Source Public Required .false.), pow: (ExternalSymbol 2 pow 6 pow lpython_builtin [] pow Private), pow@__lpython_overloaded_0__pow: (ExternalSymbol 2 pow@__lpython_overloaded_0__pow 6 __lpython_overloaded_0__pow lpython_builtin [] __lpython_overloaded_0__pow Public)}) test_pow (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [pow@__lpython_overloaded_0__pow] [] [(= (Var 2 a) (Cast (FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((IntegerConstant 2 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Real 8 []) (RealConstant 4.000000 (Real 8 [])) ()) RealToInteger (Integer 4 []) (IntegerConstant 4 (Integer 4 []))) ())] () Public .false. .false.), test_pow_1: (Function (SymbolTable 3 {_lpython_return_variable: (Variable 3 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), a: (Variable 3 a [] In () () Default (Integer 4 []) Source Public Required .false.), b: (Variable 3 b [] In () () Default (Integer 4 []) Source Public Required .false.), pow: (ExternalSymbol 3 pow 6 pow lpython_builtin [] pow Private), pow@__lpython_overloaded_0__pow: (ExternalSymbol 3 pow@__lpython_overloaded_0__pow 6 __lpython_overloaded_0__pow lpython_builtin [] __lpython_overloaded_0__pow Public), res: (Variable 3 res [] Local () () Default (Integer 4 []) Source Public Required .false.)}) test_pow_1 (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [pow@__lpython_overloaded_0__pow] [(Var 3 a) (Var 3 b)] [(= (Var 3 res) (Cast (FunctionCall 3 pow@__lpython_overloaded_0__pow 3 pow [((Var 3 a)) ((Var 3 b))] (Real 8 []) () ()) RealToInteger (Integer 4 []) ()) ()) (= (Var 3 _lpython_return_variable) (Var 3 res) ()) (Return)] (Var 3 _lpython_return_variable) Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 108 {_lpython_main_program: (ExternalSymbol 108 _lpython_main_program 110 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 108 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-expr8-6beda60.json b/tests/reference/asr-expr8-6beda60.json index 9f2957e196..aa3a02a59d 100644 --- a/tests/reference/asr-expr8-6beda60.json +++ b/tests/reference/asr-expr8-6beda60.json @@ -2,11 +2,11 @@ "basename": "asr-expr8-6beda60", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/expr8.py", - "infile_hash": "4e9a7a5642d721ee6a41db2c3d587c1811c5baad582bddc67cc68842", + "infile_hash": "6966e19cf343700cbc11ec1bf6a495e43c685c6fa065669875aa61ce", "outfile": null, "outfile_hash": null, "stdout": "asr-expr8-6beda60.stdout", - "stdout_hash": "02f27149ca1138b7c202c6d8399302ae9f98b0232275da07db9ea5f7", + "stdout_hash": "272c9f7516d80ad11cbc36d824f22f8ebbf255e00268115ac877dbc4", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-expr8-6beda60.stdout b/tests/reference/asr-expr8-6beda60.stdout index af28e0faa4..4d8d824470 100644 --- a/tests/reference/asr-expr8-6beda60.stdout +++ b/tests/reference/asr-expr8-6beda60.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {}) main_program [] []), test_binop: (Function (SymbolTable 2 {_lpython_floordiv: (ExternalSymbol 2 _lpython_floordiv 4 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv: (ExternalSymbol 2 _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv 4 __lpython_overloaded_6___lpython_floordiv lpython_builtin [] __lpython_overloaded_6___lpython_floordiv Public), b1: (Variable 2 b1 [] Local () () Default (Logical 4 []) Source Public Required .false.), b2: (Variable 2 b2 [] Local () () Default (Logical 4 []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 2 x2 [] Local () () Default (Real 4 []) Source Public Required .false.)}) test_binop (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_lpython_floordiv@__lpython_overloaded_6___lpython_floordiv] [] [(= (Var 2 x) (IntegerBinOp (IntegerConstant 2 (Integer 4 [])) Pow (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) (IntegerConstant 8 (Integer 4 []))) ()) (= (Var 2 x2) (Cast (RealBinOp (RealConstant 2.000000 (Real 8 [])) Pow (RealConstant 3.500000 (Real 8 [])) (Real 8 []) (RealConstant 11.313708 (Real 8 []))) RealToReal (Real 4 []) (RealConstant 11.313708 (Real 4 []))) ()) (= (Var 2 x) (IntegerBinOp (IntegerConstant 54 (Integer 4 [])) Sub (IntegerConstant 100 (Integer 4 [])) (Integer 4 []) (IntegerConstant -46 (Integer 4 []))) ()) (= (Var 2 x2) (Cast (RealBinOp (RealBinOp (RealConstant 3.454000 (Real 8 [])) Sub (RealConstant 765.430000 (Real 8 [])) (Real 8 []) (RealConstant -761.976000 (Real 8 []))) Add (RealConstant 534.600000 (Real 8 [])) (Real 8 []) (RealConstant -227.376000 (Real 8 []))) RealToReal (Real 4 []) (RealConstant -227.376000 (Real 4 []))) ()) (= (Var 2 x2) (Cast (RealBinOp (RealConstant 5346.565000 (Real 8 [])) Mul (RealConstant 3.450000 (Real 8 [])) (Real 8 []) (RealConstant 18445.649250 (Real 8 []))) RealToReal (Real 4 []) (RealConstant 18445.649250 (Real 4 []))) ()) (= (Var 2 x2) (Cast (RealBinOp (RealConstant 5346.565000 (Real 8 [])) Pow (RealConstant 3.450000 (Real 8 [])) (Real 8 []) (RealConstant 7275422789925.217773 (Real 8 []))) RealToReal (Real 4 []) (RealConstant 7275422789925.217773 (Real 4 []))) ()) (= (Var 2 x) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Add (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (Var 2 x) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Sub (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (Var 2 x) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Mul (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (Var 2 x) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Pow (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (Var 2 b1) (LogicalConstant .true. (Logical 4 [])) ()) (= (Var 2 b2) (LogicalConstant .false. (Logical 4 [])) ()) (= (Var 2 x) (Cast (FunctionCall 2 _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv 2 _lpython_floordiv [((Var 2 b1)) ((Var 2 b1))] (Logical 4 []) () ()) LogicalToInteger (Integer 4 []) ()) ()) (= (Var 2 x) (IntegerBinOp (Cast (Var 2 b1) LogicalToInteger (Integer 4 []) ()) Pow (Cast (Var 2 b2) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ())] () Public .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {}) main_program [] []), test_binop: (Function (SymbolTable 2 {_lpython_floordiv: (ExternalSymbol 2 _lpython_floordiv 4 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv: (ExternalSymbol 2 _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv 4 __lpython_overloaded_6___lpython_floordiv lpython_builtin [] __lpython_overloaded_6___lpython_floordiv Public), b1: (Variable 2 b1 [] Local () () Default (Logical 4 []) Source Public Required .false.), b2: (Variable 2 b2 [] Local () () Default (Logical 4 []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 2 x2 [] Local () () Default (Real 4 []) Source Public Required .false.)}) test_binop (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_lpython_floordiv@__lpython_overloaded_6___lpython_floordiv] [] [(= (Var 2 x) (IntegerBinOp (IntegerConstant 2 (Integer 4 [])) Pow (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) (IntegerConstant 8 (Integer 4 []))) ()) (= (Var 2 x2) (Cast (RealBinOp (RealConstant 2.000000 (Real 8 [])) Pow (RealConstant 3.500000 (Real 8 [])) (Real 8 []) (RealConstant 11.313708 (Real 8 []))) RealToReal (Real 4 []) (RealConstant 11.313708 (Real 4 []))) ()) (= (Var 2 x) (IntegerBinOp (IntegerConstant 54 (Integer 4 [])) Sub (IntegerConstant 100 (Integer 4 [])) (Integer 4 []) (IntegerConstant -46 (Integer 4 []))) ()) (= (Var 2 x2) (Cast (RealBinOp (RealBinOp (RealConstant 3.454000 (Real 8 [])) Sub (RealConstant 765.430000 (Real 8 [])) (Real 8 []) (RealConstant -761.976000 (Real 8 []))) Add (RealConstant 534.600000 (Real 8 [])) (Real 8 []) (RealConstant -227.376000 (Real 8 []))) RealToReal (Real 4 []) (RealConstant -227.376000 (Real 4 []))) ()) (= (Var 2 x2) (Cast (RealBinOp (RealConstant 5346.565000 (Real 8 [])) Mul (RealConstant 3.450000 (Real 8 [])) (Real 8 []) (RealConstant 18445.649250 (Real 8 []))) RealToReal (Real 4 []) (RealConstant 18445.649250 (Real 4 []))) ()) (= (Var 2 x2) (Cast (RealBinOp (RealConstant 5346.565000 (Real 8 [])) Pow (RealConstant 3.450000 (Real 8 [])) (Real 8 []) (RealConstant 7275422789925.217773 (Real 8 []))) RealToReal (Real 4 []) (RealConstant 7275422789925.217773 (Real 4 []))) ()) (= (Var 2 x) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Add (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (Var 2 x) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Sub (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (Var 2 x) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Mul (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (Var 2 x) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Pow (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (Var 2 b1) (LogicalConstant .true. (Logical 4 [])) ()) (= (Var 2 b2) (LogicalConstant .false. (Logical 4 [])) ()) (= (Var 2 x) (Cast (FunctionCall 2 _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv 2 _lpython_floordiv [((Var 2 b1)) ((Var 2 b1))] (Logical 4 []) () ()) LogicalToInteger (Integer 4 []) ()) ()) (= (Var 2 x) (IntegerBinOp (Cast (Var 2 b1) LogicalToInteger (Integer 4 []) ()) Pow (Cast (Var 2 b2) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ())] () Public .false. .false.)}) []) diff --git a/tests/reference/asr-expr_01-a0d4829.json b/tests/reference/asr-expr_01-a0d4829.json index fffa98242d..af3ca441fc 100644 --- a/tests/reference/asr-expr_01-a0d4829.json +++ b/tests/reference/asr-expr_01-a0d4829.json @@ -2,7 +2,7 @@ "basename": "asr-expr_01-a0d4829", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/expr_01.py", - "infile_hash": "c391a2740682aec6070efdfb508697052e45950589fdabd9728127a4", + "infile_hash": "230a65e2cddb76f58d56747325caf24b8a1f6277810186581948c514", "outfile": null, "outfile_hash": null, "stdout": "asr-expr_01-a0d4829.stdout", diff --git a/tests/reference/asr-expr_05-3a37324.json b/tests/reference/asr-expr_05-3a37324.json index 90fd309f98..ab08532f82 100644 --- a/tests/reference/asr-expr_05-3a37324.json +++ b/tests/reference/asr-expr_05-3a37324.json @@ -2,11 +2,11 @@ "basename": "asr-expr_05-3a37324", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/expr_05.py", - "infile_hash": "59668f790720eb827bd2963bb57a934805aa5139fff582a3b138a8e4", + "infile_hash": "618623fd1bf29b81d8f6054f7c2fc67e4cfedfe3ca6002ebe7b1b71b", "outfile": null, "outfile_hash": null, "stdout": "asr-expr_05-3a37324.stdout", - "stdout_hash": "b547f399c48f92668d81edb5d4a9370cbec5de66d8b34ea17e9d990a", + "stdout_hash": "7dd9033409b2866ca1bf46d9b8b12eaef8c79aa6885e73361443da4f", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-expr_05-3a37324.stdout b/tests/reference/asr-expr_05-3a37324.stdout index 2ed9b8da77..4ed0f81d9f 100644 --- a/tests/reference/asr-expr_05-3a37324.stdout +++ b/tests/reference/asr-expr_05-3a37324.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 109 {_lpython_main_program: (Function (SymbolTable 108 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [main0] [] [(SubroutineCall 109 main0 () [] ())] () Public .false. .false.), main0: (Function (SymbolTable 4 {_mod: (ExternalSymbol 4 _mod 6 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 4 _mod@__lpython_overloaded_0___mod 6 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), _mod@__lpython_overloaded_3___mod: (ExternalSymbol 4 _mod@__lpython_overloaded_3___mod 6 __lpython_overloaded_3___mod lpython_builtin [] __lpython_overloaded_3___mod Public), a: (Variable 4 a [] Local () () Default (Integer 4 []) Source Public Required .false.), abs: (ExternalSymbol 4 abs 6 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 4 abs@__lpython_overloaded_0__abs 6 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), b: (Variable 4 b [] Local () () Default (Integer 4 []) Source Public Required .false.), eps: (Variable 4 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 4 i [] Local () () Default (Integer 8 []) Source Public Required .false.), i1: (Variable 4 i1 [] Local (IntegerConstant 10 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), i2: (Variable 4 i2 [] Local (IntegerConstant 4 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), i3: (Variable 4 i3 [] Local (IntegerConstant 432534534 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), i4: (Variable 4 i4 [] Local (IntegerUnaryMinus (IntegerConstant 4325 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4325 (Integer 4 []))) () Default (Integer 4 []) Source Public Required .false.)}) main0 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_multiply test_mod test_mod test_mod _mod@__lpython_overloaded_0___mod test_mod _mod@__lpython_overloaded_0___mod _mod@__lpython_overloaded_0___mod _mod@__lpython_overloaded_0___mod _mod@__lpython_overloaded_0___mod abs@__lpython_overloaded_0__abs _mod@__lpython_overloaded_3___mod abs@__lpython_overloaded_0__abs _mod@__lpython_overloaded_3___mod] [] [(= (Var 4 a) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 4 b) (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) ()) (= (Var 4 eps) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (IntegerCompare (FunctionCall 109 test_multiply () [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (IntegerUnaryMinus (IntegerConstant 50 (Integer 4 [])) (Integer 4 []) (IntegerConstant -50 (Integer 4 []))) (Logical 4 []) ()) ()) (= (Var 4 i) (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) ()) (= (Var 4 i) (IntegerBinOp (Var 4 i) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) (Integer 8 []) ()) ()) (Assert (IntegerCompare (Var 4 i) Eq (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 []))) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 4 b) (IntegerConstant 5 (Integer 4 [])) ()) (Assert (IntegerCompare (FunctionCall 109 test_mod () [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 109 test_mod () [((IntegerConstant 23 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Integer 4 []) () ()) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerConstant 123282374 (Integer 4 [])) ()) (= (Var 4 b) (IntegerConstant 32771 (Integer 4 [])) ()) (Assert (IntegerCompare (FunctionCall 109 test_mod () [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (IntegerConstant 30643 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerUnaryMinus (IntegerConstant 5345 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5345 (Integer 4 []))) ()) (= (Var 4 b) (IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))) ()) (Assert (IntegerCompare (FunctionCall 4 _mod@__lpython_overloaded_0___mod 4 _mod [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerUnaryMinus (IntegerConstant 123282374 (Integer 4 [])) (Integer 4 []) (IntegerConstant -123282374 (Integer 4 []))) ()) (= (Var 4 b) (IntegerConstant 32771 (Integer 4 [])) ()) (Assert (IntegerCompare (FunctionCall 109 test_mod () [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (IntegerConstant 2128 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) BitOr (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant 14 (Integer 4 []))) Eq (IntegerConstant 14 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (IntegerConstant 105346 (Integer 4 [])) (Integer 4 []) (IntegerConstant -105346 (Integer 4 []))) BitOr (IntegerUnaryMinus (IntegerConstant 32771 (Integer 4 [])) (Integer 4 []) (IntegerConstant -32771 (Integer 4 []))) (Integer 4 []) (IntegerConstant -32769 (Integer 4 []))) Eq (IntegerUnaryMinus (IntegerConstant 32769 (Integer 4 [])) (Integer 4 []) (IntegerConstant -32769 (Integer 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) BitAnd (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant 0 (Integer 4 []))) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (IntegerConstant 105346 (Integer 4 [])) (Integer 4 []) (IntegerConstant -105346 (Integer 4 []))) BitAnd (IntegerUnaryMinus (IntegerConstant 32771 (Integer 4 [])) (Integer 4 []) (IntegerConstant -32771 (Integer 4 []))) (Integer 4 []) (IntegerConstant -105348 (Integer 4 []))) Eq (IntegerUnaryMinus (IntegerConstant 105348 (Integer 4 [])) (Integer 4 []) (IntegerConstant -105348 (Integer 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) BitXor (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant 14 (Integer 4 []))) Eq (IntegerConstant 14 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (IntegerConstant 105346 (Integer 4 [])) (Integer 4 []) (IntegerConstant -105346 (Integer 4 []))) BitXor (IntegerUnaryMinus (IntegerConstant 32771 (Integer 4 [])) (Integer 4 []) (IntegerConstant -32771 (Integer 4 []))) (Integer 4 []) (IntegerConstant 72579 (Integer 4 []))) Eq (IntegerConstant 72579 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) BitRShift (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 5 (Integer 4 []))) Eq (IntegerConstant 5 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerConstant 5 (Integer 4 [])) BitLShift (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 10 (Integer 4 []))) Eq (IntegerConstant 10 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 4 i1) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 4 i2) (IntegerConstant 4 (Integer 4 [])) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i1) BitLShift (Var 4 i2) (Integer 4 []) ()) Eq (IntegerConstant 160 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i1) BitRShift (Var 4 i2) (Integer 4 []) ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i1) BitAnd (Var 4 i2) (Integer 4 []) ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i1) BitOr (Var 4 i2) (Integer 4 []) ()) Eq (IntegerConstant 14 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i1) BitXor (Var 4 i2) (Integer 4 []) ()) Eq (IntegerConstant 14 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (Var 4 i1) (Integer 4 []) ()) BitXor (IntegerUnaryMinus (Var 4 i2) (Integer 4 []) ()) (Integer 4 []) ()) Eq (IntegerConstant 10 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 i3) (IntegerConstant 432534534 (Integer 4 [])) ()) (= (Var 4 i4) (IntegerUnaryMinus (IntegerConstant 4325 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4325 (Integer 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i3) BitOr (Var 4 i4) (Integer 4 []) ()) Eq (IntegerUnaryMinus (IntegerConstant 225 (Integer 4 [])) (Integer 4 []) (IntegerConstant -225 (Integer 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i4) BitRShift (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) ()) Eq (IntegerUnaryMinus (IntegerConstant 541 (Integer 4 [])) (Integer 4 []) (IntegerConstant -541 (Integer 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (Var 4 i3) (Integer 4 []) ()) BitAnd (Var 4 i4) (Integer 4 []) ()) Eq (IntegerUnaryMinus (IntegerConstant 432534758 (Integer 4 [])) (Integer 4 []) (IntegerConstant -432534758 (Integer 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (Var 4 i3) (Integer 4 []) ()) BitXor (Var 4 i4) (Integer 4 []) ()) Eq (IntegerConstant 432530657 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 4 a) (IntegerBinOp (Var 4 a) BitOr (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 14 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerBinOp (Var 4 a) BitXor (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 13 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 b) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 4 a) (FunctionCall 4 _mod@__lpython_overloaded_0___mod 4 _mod [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 3 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 b) (IntegerConstant 4 (Integer 4 [])) ()) (= (Var 4 a) (IntegerBinOp (Var 4 a) BitLShift (Var 4 b) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 48 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerBinOp (Var 4 a) BitRShift (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 24 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerBinOp (Var 4 a) BitAnd (Var 4 b) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 b) (IntegerBinOp (Var 4 b) Pow (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 b) Eq (IntegerConstant 256 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 4 _mod@__lpython_overloaded_0___mod 4 _mod [((IntegerUnaryMinus (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) (IntegerConstant -8 (Integer 4 [])))) ((IntegerConstant 3 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 4 _mod@__lpython_overloaded_0___mod 4 _mod [((IntegerConstant 8 (Integer 4 []))) ((IntegerUnaryMinus (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) (IntegerConstant -3 (Integer 4 []))))] (Integer 4 []) (IntegerConstant -1 (Integer 4 [])) ()) Eq (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 4 _mod@__lpython_overloaded_0___mod 4 _mod [((IntegerUnaryMinus (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) (IntegerConstant -8 (Integer 4 [])))) ((IntegerUnaryMinus (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) (IntegerConstant -3 (Integer 4 []))))] (Integer 4 []) (IntegerConstant -2 (Integer 4 [])) ()) Eq (IntegerUnaryMinus (IntegerConstant 2 (Integer 4 [])) (Integer 4 []) (IntegerConstant -2 (Integer 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (FunctionCall 4 _mod@__lpython_overloaded_3___mod 4 _mod [((RealConstant 11.000000 (Real 8 []))) ((RealUnaryMinus (RealConstant 3.000000 (Real 8 [])) (Real 8 []) (RealConstant -3.000000 (Real 8 []))))] (Real 8 []) (RealConstant -1.000000 (Real 8 [])) ()) Sub (RealUnaryMinus (RealConstant 1.000000 (Real 8 [])) (Real 8 []) (RealConstant -1.000000 (Real 8 []))) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 4 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (FunctionCall 4 _mod@__lpython_overloaded_3___mod 4 _mod [((RealUnaryMinus (RealConstant 11.000000 (Real 8 [])) (Real 8 []) (RealConstant -11.000000 (Real 8 [])))) ((RealConstant 3.000000 (Real 8 [])))] (Real 8 []) (RealConstant 1.000000 (Real 8 [])) ()) Sub (RealConstant 1.000000 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 4 eps) (Logical 4 []) ()) ())] () Public .false. .false.), test_mod: (Function (SymbolTable 3 {_lpython_return_variable: (Variable 3 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 3 _mod 6 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 3 _mod@__lpython_overloaded_0___mod 6 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), a: (Variable 3 a [] In () () Default (Integer 4 []) Source Public Required .false.), b: (Variable 3 b [] In () () Default (Integer 4 []) Source Public Required .false.)}) test_mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 3 a) (Var 3 b)] [(= (Var 3 _lpython_return_variable) (FunctionCall 3 _mod@__lpython_overloaded_0___mod 3 _mod [((Var 3 a)) ((Var 3 b))] (Integer 4 []) () ()) ()) (Return)] (Var 3 _lpython_return_variable) Public .false. .false.), test_multiply: (Function (SymbolTable 2 {_lpython_return_variable: (Variable 2 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), a: (Variable 2 a [] In () () Default (Integer 4 []) Source Public Required .false.), b: (Variable 2 b [] In () () Default (Integer 4 []) Source Public Required .false.)}) test_multiply (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 2 a) (Var 2 b)] [(= (Var 2 _lpython_return_variable) (IntegerBinOp (Var 2 a) Mul (Var 2 b) (Integer 4 []) ()) ()) (Return)] (Var 2 _lpython_return_variable) Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 107 {_lpython_main_program: (ExternalSymbol 107 _lpython_main_program 109 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 107 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 110 {_lpython_main_program: (Function (SymbolTable 109 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [main0] [] [(SubroutineCall 110 main0 () [] ())] () Public .false. .false.), main0: (Function (SymbolTable 4 {_mod: (ExternalSymbol 4 _mod 6 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 4 _mod@__lpython_overloaded_2___mod 6 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), _mod@__lpython_overloaded_5___mod: (ExternalSymbol 4 _mod@__lpython_overloaded_5___mod 6 __lpython_overloaded_5___mod lpython_builtin [] __lpython_overloaded_5___mod Public), a: (Variable 4 a [] Local () () Default (Integer 4 []) Source Public Required .false.), abs: (ExternalSymbol 4 abs 6 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 4 abs@__lpython_overloaded_0__abs 6 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), b: (Variable 4 b [] Local () () Default (Integer 4 []) Source Public Required .false.), eps: (Variable 4 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 4 i [] Local () () Default (Integer 8 []) Source Public Required .false.), i1: (Variable 4 i1 [] Local (IntegerConstant 10 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), i2: (Variable 4 i2 [] Local (IntegerConstant 4 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), i3: (Variable 4 i3 [] Local (IntegerConstant 432534534 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), i4: (Variable 4 i4 [] Local (IntegerUnaryMinus (IntegerConstant 4325 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4325 (Integer 4 []))) () Default (Integer 4 []) Source Public Required .false.)}) main0 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_multiply test_mod test_mod test_mod _mod@__lpython_overloaded_2___mod test_mod _mod@__lpython_overloaded_2___mod _mod@__lpython_overloaded_2___mod _mod@__lpython_overloaded_2___mod _mod@__lpython_overloaded_2___mod abs@__lpython_overloaded_0__abs _mod@__lpython_overloaded_5___mod abs@__lpython_overloaded_0__abs _mod@__lpython_overloaded_5___mod] [] [(= (Var 4 a) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 4 b) (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) ()) (= (Var 4 eps) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (IntegerCompare (FunctionCall 110 test_multiply () [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (IntegerUnaryMinus (IntegerConstant 50 (Integer 4 [])) (Integer 4 []) (IntegerConstant -50 (Integer 4 []))) (Logical 4 []) ()) ()) (= (Var 4 i) (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) ()) (= (Var 4 i) (IntegerBinOp (Var 4 i) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) (Integer 8 []) ()) ()) (Assert (IntegerCompare (Var 4 i) Eq (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 []))) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 4 b) (IntegerConstant 5 (Integer 4 [])) ()) (Assert (IntegerCompare (FunctionCall 110 test_mod () [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 110 test_mod () [((IntegerConstant 23 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Integer 4 []) () ()) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerConstant 123282374 (Integer 4 [])) ()) (= (Var 4 b) (IntegerConstant 32771 (Integer 4 [])) ()) (Assert (IntegerCompare (FunctionCall 110 test_mod () [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (IntegerConstant 30643 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerUnaryMinus (IntegerConstant 5345 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5345 (Integer 4 []))) ()) (= (Var 4 b) (IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))) ()) (Assert (IntegerCompare (FunctionCall 4 _mod@__lpython_overloaded_2___mod 4 _mod [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerUnaryMinus (IntegerConstant 123282374 (Integer 4 [])) (Integer 4 []) (IntegerConstant -123282374 (Integer 4 []))) ()) (= (Var 4 b) (IntegerConstant 32771 (Integer 4 [])) ()) (Assert (IntegerCompare (FunctionCall 110 test_mod () [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (IntegerConstant 2128 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) BitOr (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant 14 (Integer 4 []))) Eq (IntegerConstant 14 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (IntegerConstant 105346 (Integer 4 [])) (Integer 4 []) (IntegerConstant -105346 (Integer 4 []))) BitOr (IntegerUnaryMinus (IntegerConstant 32771 (Integer 4 [])) (Integer 4 []) (IntegerConstant -32771 (Integer 4 []))) (Integer 4 []) (IntegerConstant -32769 (Integer 4 []))) Eq (IntegerUnaryMinus (IntegerConstant 32769 (Integer 4 [])) (Integer 4 []) (IntegerConstant -32769 (Integer 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) BitAnd (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant 0 (Integer 4 []))) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (IntegerConstant 105346 (Integer 4 [])) (Integer 4 []) (IntegerConstant -105346 (Integer 4 []))) BitAnd (IntegerUnaryMinus (IntegerConstant 32771 (Integer 4 [])) (Integer 4 []) (IntegerConstant -32771 (Integer 4 []))) (Integer 4 []) (IntegerConstant -105348 (Integer 4 []))) Eq (IntegerUnaryMinus (IntegerConstant 105348 (Integer 4 [])) (Integer 4 []) (IntegerConstant -105348 (Integer 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) BitXor (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant 14 (Integer 4 []))) Eq (IntegerConstant 14 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (IntegerConstant 105346 (Integer 4 [])) (Integer 4 []) (IntegerConstant -105346 (Integer 4 []))) BitXor (IntegerUnaryMinus (IntegerConstant 32771 (Integer 4 [])) (Integer 4 []) (IntegerConstant -32771 (Integer 4 []))) (Integer 4 []) (IntegerConstant 72579 (Integer 4 []))) Eq (IntegerConstant 72579 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) BitRShift (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 5 (Integer 4 []))) Eq (IntegerConstant 5 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerConstant 5 (Integer 4 [])) BitLShift (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 10 (Integer 4 []))) Eq (IntegerConstant 10 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 4 i1) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 4 i2) (IntegerConstant 4 (Integer 4 [])) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i1) BitLShift (Var 4 i2) (Integer 4 []) ()) Eq (IntegerConstant 160 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i1) BitRShift (Var 4 i2) (Integer 4 []) ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i1) BitAnd (Var 4 i2) (Integer 4 []) ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i1) BitOr (Var 4 i2) (Integer 4 []) ()) Eq (IntegerConstant 14 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i1) BitXor (Var 4 i2) (Integer 4 []) ()) Eq (IntegerConstant 14 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (Var 4 i1) (Integer 4 []) ()) BitXor (IntegerUnaryMinus (Var 4 i2) (Integer 4 []) ()) (Integer 4 []) ()) Eq (IntegerConstant 10 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 i3) (IntegerConstant 432534534 (Integer 4 [])) ()) (= (Var 4 i4) (IntegerUnaryMinus (IntegerConstant 4325 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4325 (Integer 4 []))) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i3) BitOr (Var 4 i4) (Integer 4 []) ()) Eq (IntegerUnaryMinus (IntegerConstant 225 (Integer 4 [])) (Integer 4 []) (IntegerConstant -225 (Integer 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (Var 4 i4) BitRShift (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) ()) Eq (IntegerUnaryMinus (IntegerConstant 541 (Integer 4 [])) (Integer 4 []) (IntegerConstant -541 (Integer 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (Var 4 i3) (Integer 4 []) ()) BitAnd (Var 4 i4) (Integer 4 []) ()) Eq (IntegerUnaryMinus (IntegerConstant 432534758 (Integer 4 [])) (Integer 4 []) (IntegerConstant -432534758 (Integer 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (Var 4 i3) (Integer 4 []) ()) BitXor (Var 4 i4) (Integer 4 []) ()) Eq (IntegerConstant 432530657 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 4 a) (IntegerBinOp (Var 4 a) BitOr (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 14 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerBinOp (Var 4 a) BitXor (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 13 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 b) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 4 a) (FunctionCall 4 _mod@__lpython_overloaded_2___mod 4 _mod [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 3 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 b) (IntegerConstant 4 (Integer 4 [])) ()) (= (Var 4 a) (IntegerBinOp (Var 4 a) BitLShift (Var 4 b) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 48 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerBinOp (Var 4 a) BitRShift (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 24 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 a) (IntegerBinOp (Var 4 a) BitAnd (Var 4 b) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 4 b) (IntegerBinOp (Var 4 b) Pow (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 4 b) Eq (IntegerConstant 256 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 4 _mod@__lpython_overloaded_2___mod 4 _mod [((IntegerUnaryMinus (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) (IntegerConstant -8 (Integer 4 [])))) ((IntegerConstant 3 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 4 _mod@__lpython_overloaded_2___mod 4 _mod [((IntegerConstant 8 (Integer 4 []))) ((IntegerUnaryMinus (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) (IntegerConstant -3 (Integer 4 []))))] (Integer 4 []) (IntegerConstant -1 (Integer 4 [])) ()) Eq (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 4 _mod@__lpython_overloaded_2___mod 4 _mod [((IntegerUnaryMinus (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) (IntegerConstant -8 (Integer 4 [])))) ((IntegerUnaryMinus (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) (IntegerConstant -3 (Integer 4 []))))] (Integer 4 []) (IntegerConstant -2 (Integer 4 [])) ()) Eq (IntegerUnaryMinus (IntegerConstant 2 (Integer 4 [])) (Integer 4 []) (IntegerConstant -2 (Integer 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (FunctionCall 4 _mod@__lpython_overloaded_5___mod 4 _mod [((RealConstant 11.000000 (Real 8 []))) ((RealUnaryMinus (RealConstant 3.000000 (Real 8 [])) (Real 8 []) (RealConstant -3.000000 (Real 8 []))))] (Real 8 []) (RealConstant -1.000000 (Real 8 [])) ()) Sub (RealUnaryMinus (RealConstant 1.000000 (Real 8 [])) (Real 8 []) (RealConstant -1.000000 (Real 8 []))) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 4 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (FunctionCall 4 _mod@__lpython_overloaded_5___mod 4 _mod [((RealUnaryMinus (RealConstant 11.000000 (Real 8 [])) (Real 8 []) (RealConstant -11.000000 (Real 8 [])))) ((RealConstant 3.000000 (Real 8 [])))] (Real 8 []) (RealConstant 1.000000 (Real 8 [])) ()) Sub (RealConstant 1.000000 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 4 eps) (Logical 4 []) ()) ())] () Public .false. .false.), test_mod: (Function (SymbolTable 3 {_lpython_return_variable: (Variable 3 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 3 _mod 6 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 3 _mod@__lpython_overloaded_2___mod 6 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), a: (Variable 3 a [] In () () Default (Integer 4 []) Source Public Required .false.), b: (Variable 3 b [] In () () Default (Integer 4 []) Source Public Required .false.)}) test_mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 3 a) (Var 3 b)] [(= (Var 3 _lpython_return_variable) (FunctionCall 3 _mod@__lpython_overloaded_2___mod 3 _mod [((Var 3 a)) ((Var 3 b))] (Integer 4 []) () ()) ()) (Return)] (Var 3 _lpython_return_variable) Public .false. .false.), test_multiply: (Function (SymbolTable 2 {_lpython_return_variable: (Variable 2 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), a: (Variable 2 a [] In () () Default (Integer 4 []) Source Public Required .false.), b: (Variable 2 b [] In () () Default (Integer 4 []) Source Public Required .false.)}) test_multiply (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 2 a) (Var 2 b)] [(= (Var 2 _lpython_return_variable) (IntegerBinOp (Var 2 a) Mul (Var 2 b) (Integer 4 []) ()) ()) (Return)] (Var 2 _lpython_return_variable) Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 108 {_lpython_main_program: (ExternalSymbol 108 _lpython_main_program 110 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 108 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-expr_07-7742668.json b/tests/reference/asr-expr_07-7742668.json index 6dbe0f9b84..55bdb60c03 100644 --- a/tests/reference/asr-expr_07-7742668.json +++ b/tests/reference/asr-expr_07-7742668.json @@ -2,7 +2,7 @@ "basename": "asr-expr_07-7742668", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/expr_07.py", - "infile_hash": "d8ed3fe56d955e95df5881ab629099ffb257b66f655563c5117dd7d2", + "infile_hash": "5c3cc1f1662783acd989ceafcb0eb3259e0194dad005c5bd4e502710", "outfile": null, "outfile_hash": null, "stdout": "asr-expr_07-7742668.stdout", diff --git a/tests/reference/asr-expr_09-f3e89c8.json b/tests/reference/asr-expr_09-f3e89c8.json index d70509aca8..0921487cfe 100644 --- a/tests/reference/asr-expr_09-f3e89c8.json +++ b/tests/reference/asr-expr_09-f3e89c8.json @@ -2,11 +2,11 @@ "basename": "asr-expr_09-f3e89c8", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/expr_09.py", - "infile_hash": "db79abe01838623b1051f32c79d69f192406adec0744350b668b6fec", + "infile_hash": "5786bfd0706e0850ec51d9f6cface5c7df4c30f3b4715f2e76cc553b", "outfile": null, "outfile_hash": null, "stdout": "asr-expr_09-f3e89c8.stdout", - "stdout_hash": "e1a1660a594ca4c3c61d70755ca457791fe86e4b8ef1230b02f1cadd", + "stdout_hash": "d52bf7565951e09277b5891789434b29b8d551c64f41199a2a777719", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-expr_09-f3e89c8.stdout b/tests/reference/asr-expr_09-f3e89c8.stdout index 16cbdecd8d..4ebec075e1 100644 --- a/tests/reference/asr-expr_09-f3e89c8.stdout +++ b/tests/reference/asr-expr_09-f3e89c8.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 111 {_lpython_main_program: (Function (SymbolTable 110 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_multiple_assign_1 test_issue_928 main0] [] [(SubroutineCall 111 test_multiple_assign_1 () [] ()) (SubroutineCall 111 test_issue_928 () [] ()) (SubroutineCall 111 main0 () [] ())] () Public .false. .false.), main0: (Function (SymbolTable 2 {i1: (Variable 2 i1 [] Local (IntegerConstant 10 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), i2: (Variable 2 i2 [] Local (IntegerConstant 4 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.)}) main0 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 2 i1) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 2 i2) (IntegerConstant 4 (Integer 4 [])) ()) (= (Var 2 i1) (IntegerConstant 3 (Integer 4 [])) ()) (= (Var 2 i2) (IntegerConstant 5 (Integer 4 [])) ()) (Print () [(IntegerBinOp (IntegerUnaryMinus (Var 2 i1) (Integer 4 []) ()) BitXor (IntegerUnaryMinus (Var 2 i2) (Integer 4 []) ()) (Integer 4 []) ())] () ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (Var 2 i1) (Integer 4 []) ()) BitXor (IntegerUnaryMinus (Var 2 i2) (Integer 4 []) ()) (Integer 4 []) ()) Eq (IntegerConstant 6 (Integer 4 [])) (Logical 4 []) ()) ())] () Public .false. .false.), test_issue_928: (Function (SymbolTable 4 {a: (Variable 4 a [] Local () () Default (Integer 4 []) Source Public Required .false.), b: (Variable 4 b [] Local () () Default (Integer 4 []) Source Public Required .false.), c: (Variable 4 c [] Local () () Default (Tuple [(Integer 4 []) (Integer 4 [])]) Source Public Required .false.)}) test_issue_928 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (TupleConstant [(Var 4 a) (Var 4 b)] (Tuple [(Integer 4 []) (Integer 4 [])])) (TupleConstant [(IntegerConstant 2 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) (= (Var 4 c) (TupleConstant [(IntegerConstant 2 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (Var 4 b) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (LogicalBinOp (IntegerCompare (TupleItem (Var 4 c) (IntegerConstant 0 (Integer 4 [])) (Integer 4 []) ()) Eq (Var 4 a) (Logical 4 []) ()) And (IntegerCompare (TupleItem (Var 4 c) (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) Eq (Var 4 b) (Logical 4 []) ()) (Logical 4 []) ()) ())] () Public .false. .false.), test_multiple_assign_1: (Function (SymbolTable 3 {a: (Variable 3 a [] Local () () Default (Integer 4 []) Source Public Required .false.), abs: (ExternalSymbol 3 abs 6 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 3 abs@__lpython_overloaded_0__abs 6 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), b: (Variable 3 b [] Local () () Default (Integer 4 []) Source Public Required .false.), c: (Variable 3 c [] Local () () Default (Integer 4 []) Source Public Required .false.), d: (Variable 3 d [] Local () () Default (Real 8 []) Source Public Required .false.), e: (Variable 3 e [] Local () () Default (Real 8 []) Source Public Required .false.), g: (Variable 3 g [] Local () () Default (Integer 4 []) Source Public Required .false.), i: (Variable 3 i [] Local () () Default (List (Real 8 [])) Source Public Required .false.), j: (Variable 3 j [] Local () () Default (List (Real 8 [])) Source Public Required .false.), k: (Variable 3 k [] Local () () Default (List (Real 8 [])) Source Public Required .false.), x: (Variable 3 x [] Local () () Default (Real 8 []) Source Public Required .false.), y: (Variable 3 y [] Local () () Default (Real 8 []) Source Public Required .false.)}) test_multiple_assign_1 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [] [(= (Var 3 g) (IntegerConstant 5 (Integer 4 [])) ()) (= (Var 3 d) (RealBinOp (Cast (Var 3 g) IntegerToReal (Real 8 []) ()) Add (RealConstant 1.000000 (Real 8 [])) (Real 8 []) ()) ()) (= (Var 3 e) (RealBinOp (Cast (Var 3 g) IntegerToReal (Real 8 []) ()) Add (RealConstant 1.000000 (Real 8 [])) (Real 8 []) ()) ()) (= (Var 3 a) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 3 b) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 3 c) (IntegerConstant 10 (Integer 4 [])) ()) (Assert (IntegerCompare (Var 3 a) Eq (Var 3 b) (Logical 4 []) ()) ()) (Assert (IntegerCompare (Var 3 b) Eq (Var 3 c) (Logical 4 []) ()) ()) (Assert (IntegerCompare (Var 3 a) Eq (IntegerConstant 10 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 3 x) (RealConstant 23.000000 (Real 8 [])) ()) (= (Var 3 y) (RealConstant 23.000000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (Var 3 x) Sub (RealConstant 23.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000001 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (Var 3 y) Sub (RealConstant 23.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (Var 3 e) Sub (RealConstant 6.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000001 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (Var 3 d) Sub (RealConstant 6.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 3 k) (ListConstant [] (List (Real 8 []))) ()) (= (Var 3 g) (IntegerConstant 0 (Integer 4 [])) ()) (DoLoop ((Var 3 g) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(ListAppend (Var 3 k) (RealBinOp (RealBinOp (Cast (Var 3 g) IntegerToReal (Real 8 []) ()) Mul (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Add (RealConstant 5.000000 (Real 8 [])) (Real 8 []) ()))]) (= (Var 3 i) (Var 3 k) ()) (= (Var 3 j) (Var 3 k) ()) (DoLoop ((Var 3 g) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ListItem (Var 3 i) (Var 3 g) (Real 8 []) ()) Sub (ListItem (Var 3 j) (Var 3 g) (Real 8 []) ()) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ListItem (Var 3 i) (Var 3 g) (Real 8 []) ()) Sub (ListItem (Var 3 k) (Var 3 g) (Real 8 []) ()) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (RealBinOp (RealBinOp (Cast (Var 3 g) IntegerToReal (Real 8 []) ()) Mul (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Add (RealConstant 5.000000 (Real 8 [])) (Real 8 []) ()) Sub (ListItem (Var 3 k) (Var 3 g) (Real 8 []) ()) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ())])] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 109 {_lpython_main_program: (ExternalSymbol 109 _lpython_main_program 111 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 109 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 112 {_lpython_main_program: (Function (SymbolTable 111 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_multiple_assign_1 test_issue_928 main0] [] [(SubroutineCall 112 test_multiple_assign_1 () [] ()) (SubroutineCall 112 test_issue_928 () [] ()) (SubroutineCall 112 main0 () [] ())] () Public .false. .false.), main0: (Function (SymbolTable 2 {i1: (Variable 2 i1 [] Local (IntegerConstant 10 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), i2: (Variable 2 i2 [] Local (IntegerConstant 4 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.)}) main0 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 2 i1) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 2 i2) (IntegerConstant 4 (Integer 4 [])) ()) (= (Var 2 i1) (IntegerConstant 3 (Integer 4 [])) ()) (= (Var 2 i2) (IntegerConstant 5 (Integer 4 [])) ()) (Print () [(IntegerBinOp (IntegerUnaryMinus (Var 2 i1) (Integer 4 []) ()) BitXor (IntegerUnaryMinus (Var 2 i2) (Integer 4 []) ()) (Integer 4 []) ())] () ()) (Assert (IntegerCompare (IntegerBinOp (IntegerUnaryMinus (Var 2 i1) (Integer 4 []) ()) BitXor (IntegerUnaryMinus (Var 2 i2) (Integer 4 []) ()) (Integer 4 []) ()) Eq (IntegerConstant 6 (Integer 4 [])) (Logical 4 []) ()) ())] () Public .false. .false.), test_issue_928: (Function (SymbolTable 4 {a: (Variable 4 a [] Local () () Default (Integer 4 []) Source Public Required .false.), b: (Variable 4 b [] Local () () Default (Integer 4 []) Source Public Required .false.), c: (Variable 4 c [] Local () () Default (Tuple [(Integer 4 []) (Integer 4 [])]) Source Public Required .false.)}) test_issue_928 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (TupleConstant [(Var 4 a) (Var 4 b)] (Tuple [(Integer 4 []) (Integer 4 [])])) (TupleConstant [(IntegerConstant 2 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) (= (Var 4 c) (TupleConstant [(IntegerConstant 2 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))] (Tuple [(Integer 4 []) (Integer 4 [])])) ()) (Assert (IntegerCompare (Var 4 a) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (Var 4 b) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (LogicalBinOp (IntegerCompare (TupleItem (Var 4 c) (IntegerConstant 0 (Integer 4 [])) (Integer 4 []) ()) Eq (Var 4 a) (Logical 4 []) ()) And (IntegerCompare (TupleItem (Var 4 c) (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) Eq (Var 4 b) (Logical 4 []) ()) (Logical 4 []) ()) ())] () Public .false. .false.), test_multiple_assign_1: (Function (SymbolTable 3 {a: (Variable 3 a [] Local () () Default (Integer 4 []) Source Public Required .false.), abs: (ExternalSymbol 3 abs 6 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 3 abs@__lpython_overloaded_0__abs 6 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), b: (Variable 3 b [] Local () () Default (Integer 4 []) Source Public Required .false.), c: (Variable 3 c [] Local () () Default (Integer 4 []) Source Public Required .false.), d: (Variable 3 d [] Local () () Default (Real 8 []) Source Public Required .false.), e: (Variable 3 e [] Local () () Default (Real 8 []) Source Public Required .false.), g: (Variable 3 g [] Local () () Default (Integer 4 []) Source Public Required .false.), i: (Variable 3 i [] Local () () Default (List (Real 8 [])) Source Public Required .false.), j: (Variable 3 j [] Local () () Default (List (Real 8 [])) Source Public Required .false.), k: (Variable 3 k [] Local () () Default (List (Real 8 [])) Source Public Required .false.), x: (Variable 3 x [] Local () () Default (Real 8 []) Source Public Required .false.), y: (Variable 3 y [] Local () () Default (Real 8 []) Source Public Required .false.)}) test_multiple_assign_1 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [] [(= (Var 3 g) (IntegerConstant 5 (Integer 4 [])) ()) (= (Var 3 d) (RealBinOp (Cast (Var 3 g) IntegerToReal (Real 8 []) ()) Add (RealConstant 1.000000 (Real 8 [])) (Real 8 []) ()) ()) (= (Var 3 e) (RealBinOp (Cast (Var 3 g) IntegerToReal (Real 8 []) ()) Add (RealConstant 1.000000 (Real 8 [])) (Real 8 []) ()) ()) (= (Var 3 a) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 3 b) (IntegerConstant 10 (Integer 4 [])) ()) (= (Var 3 c) (IntegerConstant 10 (Integer 4 [])) ()) (Assert (IntegerCompare (Var 3 a) Eq (Var 3 b) (Logical 4 []) ()) ()) (Assert (IntegerCompare (Var 3 b) Eq (Var 3 c) (Logical 4 []) ()) ()) (Assert (IntegerCompare (Var 3 a) Eq (IntegerConstant 10 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 3 x) (RealConstant 23.000000 (Real 8 [])) ()) (= (Var 3 y) (RealConstant 23.000000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (Var 3 x) Sub (RealConstant 23.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000001 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (Var 3 y) Sub (RealConstant 23.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (Var 3 e) Sub (RealConstant 6.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000001 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (Var 3 d) Sub (RealConstant 6.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 3 k) (ListConstant [] (List (Real 8 []))) ()) (= (Var 3 g) (IntegerConstant 0 (Integer 4 [])) ()) (DoLoop ((Var 3 g) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(ListAppend (Var 3 k) (RealBinOp (RealBinOp (Cast (Var 3 g) IntegerToReal (Real 8 []) ()) Mul (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Add (RealConstant 5.000000 (Real 8 [])) (Real 8 []) ()))]) (= (Var 3 i) (Var 3 k) ()) (= (Var 3 j) (Var 3 k) ()) (DoLoop ((Var 3 g) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 10 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ListItem (Var 3 i) (Var 3 g) (Real 8 []) ()) Sub (ListItem (Var 3 j) (Var 3 g) (Real 8 []) ()) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ListItem (Var 3 i) (Var 3 g) (Real 8 []) ()) Sub (ListItem (Var 3 k) (Var 3 g) (Real 8 []) ()) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (RealBinOp (RealBinOp (Cast (Var 3 g) IntegerToReal (Real 8 []) ()) Mul (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) Add (RealConstant 5.000000 (Real 8 [])) (Real 8 []) ()) Sub (ListItem (Var 3 k) (Var 3 g) (Real 8 []) ()) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ())])] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 110 {_lpython_main_program: (ExternalSymbol 110 _lpython_main_program 112 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 110 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-expr_10-d39708c.json b/tests/reference/asr-expr_10-d39708c.json index 4eb50755b3..ef47080863 100644 --- a/tests/reference/asr-expr_10-d39708c.json +++ b/tests/reference/asr-expr_10-d39708c.json @@ -2,7 +2,7 @@ "basename": "asr-expr_10-d39708c", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/expr_10.py", - "infile_hash": "00aac96059a6e3d6615e357e73cd79b96646d200ef89978251c8ef5a", + "infile_hash": "a371877a6249c5d8af75ad5afdd4c6f762841733ed517dafcdfd6b10", "outfile": null, "outfile_hash": null, "stdout": "asr-expr_10-d39708c.stdout", diff --git a/tests/reference/asr-expr_12-6769be0.json b/tests/reference/asr-expr_12-6769be0.json index 178e581f7d..e3d6a595cb 100644 --- a/tests/reference/asr-expr_12-6769be0.json +++ b/tests/reference/asr-expr_12-6769be0.json @@ -2,7 +2,7 @@ "basename": "asr-expr_12-6769be0", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/expr_12.py", - "infile_hash": "0d98c6e93b5c0765f6829f51bf12d6487b9fa0d1381e07e11bddbea7", + "infile_hash": "00534ea8d2143408735ea96d7a26888e53563758c1b14569daf0f962", "outfile": null, "outfile_hash": null, "stdout": "asr-expr_12-6769be0.stdout", diff --git a/tests/reference/asr-expr_14-f2bd343.json b/tests/reference/asr-expr_14-f2bd343.json index 86878a529b..1402e38138 100644 --- a/tests/reference/asr-expr_14-f2bd343.json +++ b/tests/reference/asr-expr_14-f2bd343.json @@ -2,11 +2,11 @@ "basename": "asr-expr_14-f2bd343", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/expr_14.py", - "infile_hash": "cff6017d066d4b82e535a5af9d772b2f75a1dae8fd6155f21dca5899", + "infile_hash": "bf5d0d167082af64149be967dc182b9e2e8cb35091fa410ae4afee6f", "outfile": null, "outfile_hash": null, "stdout": "asr-expr_14-f2bd343.stdout", - "stdout_hash": "361e1a7f692256724f195e48bcdef4ca8e4aa7301247cc295e75b8b9", + "stdout_hash": "4ada21de65a857bae07b81e5da86c8849973ff12804fd23aa2fabd83", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-expr_14-f2bd343.stdout b/tests/reference/asr-expr_14-f2bd343.stdout index 3bed7fe92f..859e3d158a 100644 --- a/tests/reference/asr-expr_14-f2bd343.stdout +++ b/tests/reference/asr-expr_14-f2bd343.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 107 {_lpython_main_program: (Function (SymbolTable 106 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_divide] [] [(SubroutineCall 107 test_divide () [] ())] () Public .false. .false.), test_divide: (Function (SymbolTable 2 {a1: (Variable 2 a1 [] Local () () Default (Integer 4 []) Source Public Required .false.), a2: (Variable 2 a2 [] Local () () Default (Integer 4 []) Source Public Required .false.), a3: (Variable 2 a3 [] Local () () Default (Real 8 []) Source Public Required .false.), abs: (ExternalSymbol 2 abs 4 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 2 abs@__lpython_overloaded_0__abs 4 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_1__abs: (ExternalSymbol 2 abs@__lpython_overloaded_1__abs 4 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), abs@__lpython_overloaded_7__abs: (ExternalSymbol 2 abs@__lpython_overloaded_7__abs 4 __lpython_overloaded_7__abs lpython_builtin [] __lpython_overloaded_7__abs Public), abs@__lpython_overloaded_8__abs: (ExternalSymbol 2 abs@__lpython_overloaded_8__abs 4 __lpython_overloaded_8__abs lpython_builtin [] __lpython_overloaded_8__abs Public), b1: (Variable 2 b1 [] Local () () Default (Integer 8 []) Source Public Required .false.), b2: (Variable 2 b2 [] Local () () Default (Integer 8 []) Source Public Required .false.), b3: (Variable 2 b3 [] Local () () Default (Real 8 []) Source Public Required .false.), c1: (Variable 2 c1 [] Local () () Default (Real 4 []) Source Public Required .false.), c2: (Variable 2 c2 [] Local () () Default (Real 4 []) Source Public Required .false.), c3: (Variable 2 c3 [] Local () () Default (Real 4 []) Source Public Required .false.), d1: (Variable 2 d1 [] Local () () Default (Real 8 []) Source Public Required .false.), d2: (Variable 2 d2 [] Local () () Default (Real 8 []) Source Public Required .false.), d3: (Variable 2 d3 [] Local () () Default (Real 8 []) Source Public Required .false.), e1: (Variable 2 e1 [] Local () () Default (Complex 4 []) Source Public Required .false.), e2: (Variable 2 e2 [] Local () () Default (Complex 4 []) Source Public Required .false.), e3: (Variable 2 e3 [] Local () () Default (Complex 4 []) Source Public Required .false.), f1: (Variable 2 f1 [] Local () () Default (Complex 8 []) Source Public Required .false.), f2: (Variable 2 f2 [] Local () () Default (Complex 8 []) Source Public Required .false.), f3: (Variable 2 f3 [] Local () () Default (Complex 8 []) Source Public Required .false.)}) test_divide (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_1__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_7__abs abs@__lpython_overloaded_8__abs] [] [(= (Var 2 a1) (IntegerConstant 1 (Integer 4 [])) ()) (= (Var 2 a2) (IntegerConstant 9 (Integer 4 [])) ()) (= (Var 2 a3) (RealBinOp (Cast (Var 2 a2) IntegerToReal (Real 8 []) ()) Div (Cast (Var 2 a1) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Var 2 a3) Sub (RealConstant 9.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 2 b1) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 []))) ()) (= (Var 2 b2) (Cast (IntegerConstant 10 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 10 (Integer 8 []))) ()) (= (Var 2 b3) (RealBinOp (Cast (Var 2 b2) IntegerToReal (Real 8 []) ()) Div (Cast (Var 2 b1) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Var 2 b3) Sub (RealConstant 5.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 2 c1) (Cast (RealConstant 3.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.000000 (Real 4 []))) ()) (= (Var 2 c2) (Cast (RealConstant 11.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 11.000000 (Real 4 []))) ()) (= (Var 2 c3) (RealBinOp (Var 2 c2) Div (Var 2 c1) (Real 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_1__abs 2 abs [((RealBinOp (Var 2 c3) Sub (Cast (RealConstant 3.666666 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.666666 (Real 4 []))) (Real 4 []) ()))] (Real 4 []) () ()) LtE (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (= (Var 2 d1) (RealConstant 4.000000 (Real 8 [])) ()) (= (Var 2 d2) (RealConstant 12.000000 (Real 8 [])) ()) (= (Var 2 d3) (RealBinOp (Var 2 d2) Div (Var 2 d1) (Real 8 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Var 2 d3) Sub (RealConstant 3.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 2 e1) (ComplexBinOp (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToComplex (Complex 4 []) (ComplexConstant 5.000000 0.000000 (Complex 4 []))) Add (Cast (ComplexConstant 0.000000 6.000000 (Complex 8 [])) ComplexToComplex (Complex 4 []) (ComplexConstant 0.000000 6.000000 (Complex 4 []))) (Complex 4 []) (ComplexConstant 5.000000 6.000000 (Complex 4 []))) ()) (= (Var 2 e2) (ComplexBinOp (Cast (IntegerConstant 13 (Integer 4 [])) IntegerToComplex (Complex 4 []) (ComplexConstant 13.000000 0.000000 (Complex 4 []))) Add (Cast (ComplexConstant 0.000000 14.000000 (Complex 8 [])) ComplexToComplex (Complex 4 []) (ComplexConstant 0.000000 14.000000 (Complex 4 []))) (Complex 4 []) (ComplexConstant 13.000000 14.000000 (Complex 4 []))) ()) (= (Var 2 e3) (ComplexBinOp (Var 2 e2) Div (Var 2 e1) (Complex 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_7__abs 2 abs [((ComplexBinOp (ComplexBinOp (Var 2 e3) Sub (Cast (RealConstant 2.442623 (Real 8 [])) RealToComplex (Complex 4 []) (ComplexConstant 2.442623 0.000000 (Complex 4 []))) (Complex 4 []) ()) Add (Cast (ComplexConstant 0.000000 0.131148 (Complex 8 [])) ComplexToComplex (Complex 4 []) (ComplexConstant 0.000000 0.131148 (Complex 4 []))) (Complex 4 []) ()))] (Real 4 []) () ()) LtE (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (= (Var 2 f1) (ComplexBinOp (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 7.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 8.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 7.000000 8.000000 (Complex 8 []))) ()) (= (Var 2 f2) (ComplexBinOp (Cast (IntegerConstant 15 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 15.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 16.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 15.000000 16.000000 (Complex 8 []))) ()) (= (Var 2 f3) (ComplexBinOp (Var 2 f2) Div (Var 2 f1) (Complex 8 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_8__abs 2 abs [((ComplexBinOp (ComplexBinOp (Var 2 f3) Sub (Cast (RealConstant 2.061947 (Real 8 [])) RealToComplex (Complex 8 []) (ComplexConstant 2.061947 0.000000 (Complex 8 []))) (Complex 8 []) ()) Add (ComplexConstant 0.000000 0.070796 (Complex 8 [])) (Complex 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000001 (Real 8 [])) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {_lpython_main_program: (ExternalSymbol 105 _lpython_main_program 107 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 105 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 108 {_lpython_main_program: (Function (SymbolTable 107 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_divide] [] [(SubroutineCall 108 test_divide () [] ())] () Public .false. .false.), test_divide: (Function (SymbolTable 2 {a1: (Variable 2 a1 [] Local () () Default (Integer 4 []) Source Public Required .false.), a2: (Variable 2 a2 [] Local () () Default (Integer 4 []) Source Public Required .false.), a3: (Variable 2 a3 [] Local () () Default (Real 8 []) Source Public Required .false.), abs: (ExternalSymbol 2 abs 4 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 2 abs@__lpython_overloaded_0__abs 4 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_1__abs: (ExternalSymbol 2 abs@__lpython_overloaded_1__abs 4 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), abs@__lpython_overloaded_7__abs: (ExternalSymbol 2 abs@__lpython_overloaded_7__abs 4 __lpython_overloaded_7__abs lpython_builtin [] __lpython_overloaded_7__abs Public), abs@__lpython_overloaded_8__abs: (ExternalSymbol 2 abs@__lpython_overloaded_8__abs 4 __lpython_overloaded_8__abs lpython_builtin [] __lpython_overloaded_8__abs Public), b1: (Variable 2 b1 [] Local () () Default (Integer 8 []) Source Public Required .false.), b2: (Variable 2 b2 [] Local () () Default (Integer 8 []) Source Public Required .false.), b3: (Variable 2 b3 [] Local () () Default (Real 8 []) Source Public Required .false.), c1: (Variable 2 c1 [] Local () () Default (Real 4 []) Source Public Required .false.), c2: (Variable 2 c2 [] Local () () Default (Real 4 []) Source Public Required .false.), c3: (Variable 2 c3 [] Local () () Default (Real 4 []) Source Public Required .false.), d1: (Variable 2 d1 [] Local () () Default (Real 8 []) Source Public Required .false.), d2: (Variable 2 d2 [] Local () () Default (Real 8 []) Source Public Required .false.), d3: (Variable 2 d3 [] Local () () Default (Real 8 []) Source Public Required .false.), e1: (Variable 2 e1 [] Local () () Default (Complex 4 []) Source Public Required .false.), e2: (Variable 2 e2 [] Local () () Default (Complex 4 []) Source Public Required .false.), e3: (Variable 2 e3 [] Local () () Default (Complex 4 []) Source Public Required .false.), f1: (Variable 2 f1 [] Local () () Default (Complex 8 []) Source Public Required .false.), f2: (Variable 2 f2 [] Local () () Default (Complex 8 []) Source Public Required .false.), f3: (Variable 2 f3 [] Local () () Default (Complex 8 []) Source Public Required .false.)}) test_divide (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_1__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_7__abs abs@__lpython_overloaded_8__abs] [] [(= (Var 2 a1) (IntegerConstant 1 (Integer 4 [])) ()) (= (Var 2 a2) (IntegerConstant 9 (Integer 4 [])) ()) (= (Var 2 a3) (RealBinOp (Cast (Var 2 a2) IntegerToReal (Real 8 []) ()) Div (Cast (Var 2 a1) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Var 2 a3) Sub (RealConstant 9.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 2 b1) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 []))) ()) (= (Var 2 b2) (Cast (IntegerConstant 10 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 10 (Integer 8 []))) ()) (= (Var 2 b3) (RealBinOp (Cast (Var 2 b2) IntegerToReal (Real 8 []) ()) Div (Cast (Var 2 b1) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Var 2 b3) Sub (RealConstant 5.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 2 c1) (Cast (RealConstant 3.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.000000 (Real 4 []))) ()) (= (Var 2 c2) (Cast (RealConstant 11.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 11.000000 (Real 4 []))) ()) (= (Var 2 c3) (RealBinOp (Var 2 c2) Div (Var 2 c1) (Real 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_1__abs 2 abs [((RealBinOp (Var 2 c3) Sub (Cast (RealConstant 3.666666 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.666666 (Real 4 []))) (Real 4 []) ()))] (Real 4 []) () ()) LtE (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (= (Var 2 d1) (RealConstant 4.000000 (Real 8 [])) ()) (= (Var 2 d2) (RealConstant 12.000000 (Real 8 [])) ()) (= (Var 2 d3) (RealBinOp (Var 2 d2) Div (Var 2 d1) (Real 8 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Var 2 d3) Sub (RealConstant 3.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 2 e1) (ComplexBinOp (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToComplex (Complex 4 []) (ComplexConstant 5.000000 0.000000 (Complex 4 []))) Add (Cast (ComplexConstant 0.000000 6.000000 (Complex 8 [])) ComplexToComplex (Complex 4 []) (ComplexConstant 0.000000 6.000000 (Complex 4 []))) (Complex 4 []) (ComplexConstant 5.000000 6.000000 (Complex 4 []))) ()) (= (Var 2 e2) (ComplexBinOp (Cast (IntegerConstant 13 (Integer 4 [])) IntegerToComplex (Complex 4 []) (ComplexConstant 13.000000 0.000000 (Complex 4 []))) Add (Cast (ComplexConstant 0.000000 14.000000 (Complex 8 [])) ComplexToComplex (Complex 4 []) (ComplexConstant 0.000000 14.000000 (Complex 4 []))) (Complex 4 []) (ComplexConstant 13.000000 14.000000 (Complex 4 []))) ()) (= (Var 2 e3) (ComplexBinOp (Var 2 e2) Div (Var 2 e1) (Complex 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_7__abs 2 abs [((ComplexBinOp (ComplexBinOp (Var 2 e3) Sub (Cast (RealConstant 2.442623 (Real 8 [])) RealToComplex (Complex 4 []) (ComplexConstant 2.442623 0.000000 (Complex 4 []))) (Complex 4 []) ()) Add (Cast (ComplexConstant 0.000000 0.131148 (Complex 8 [])) ComplexToComplex (Complex 4 []) (ComplexConstant 0.000000 0.131148 (Complex 4 []))) (Complex 4 []) ()))] (Real 4 []) () ()) LtE (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (= (Var 2 f1) (ComplexBinOp (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 7.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 8.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 7.000000 8.000000 (Complex 8 []))) ()) (= (Var 2 f2) (ComplexBinOp (Cast (IntegerConstant 15 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 15.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 16.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 15.000000 16.000000 (Complex 8 []))) ()) (= (Var 2 f3) (ComplexBinOp (Var 2 f2) Div (Var 2 f1) (Complex 8 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_8__abs 2 abs [((ComplexBinOp (ComplexBinOp (Var 2 f3) Sub (Cast (RealConstant 2.061947 (Real 8 [])) RealToComplex (Complex 8 []) (ComplexConstant 2.061947 0.000000 (Complex 8 []))) (Complex 8 []) ()) Add (ComplexConstant 0.000000 0.070796 (Complex 8 [])) (Complex 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000001 (Real 8 [])) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {_lpython_main_program: (ExternalSymbol 106 _lpython_main_program 108 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 106 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-func_01-d87aa4a.json b/tests/reference/asr-func_01-d87aa4a.json index 39d10f1c7e..2ac3164ce4 100644 --- a/tests/reference/asr-func_01-d87aa4a.json +++ b/tests/reference/asr-func_01-d87aa4a.json @@ -2,7 +2,7 @@ "basename": "asr-func_01-d87aa4a", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/func_01.py", - "infile_hash": "fe27c8537c6e7447cb8b3ea3b4a9553f6786ff70600c30fdf196b602", + "infile_hash": "feb3ed4318642084eaa53e796f3f055c2faa47af50bcb1d90c03910c", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-func_inline_01-56af272.json b/tests/reference/asr-func_inline_01-56af272.json index d99651b0e6..962a571918 100644 --- a/tests/reference/asr-func_inline_01-56af272.json +++ b/tests/reference/asr-func_inline_01-56af272.json @@ -2,7 +2,7 @@ "basename": "asr-func_inline_01-56af272", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/func_inline_01.py", - "infile_hash": "e9d50789dd554b57842e52e0818c0803943173620119bfb6f3787f83", + "infile_hash": "65a2e9a9bc7ad68a5e104549eed00cafd02b643a1d91ab2e175b2198", "outfile": null, "outfile_hash": null, "stdout": "asr-func_inline_01-56af272.stdout", diff --git a/tests/reference/asr-generics_01-d616074.json b/tests/reference/asr-generics_01-d616074.json index eda3dfd2b4..6f6aee9ea3 100644 --- a/tests/reference/asr-generics_01-d616074.json +++ b/tests/reference/asr-generics_01-d616074.json @@ -2,7 +2,7 @@ "basename": "asr-generics_01-d616074", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/generics_01.py", - "infile_hash": "cf91399f0cae8a099eec7af56ef12bc0f52e60599f0971baf5e001b5", + "infile_hash": "3062320cca6688cea4b76b4c18dbaf5d1dcc1de193459ee598e84935", "outfile": null, "outfile_hash": null, "stdout": "asr-generics_01-d616074.stdout", diff --git a/tests/reference/asr-generics_02-e2ea5c9.json b/tests/reference/asr-generics_02-e2ea5c9.json index 550f15c1dc..4cc9796e32 100644 --- a/tests/reference/asr-generics_02-e2ea5c9.json +++ b/tests/reference/asr-generics_02-e2ea5c9.json @@ -2,7 +2,7 @@ "basename": "asr-generics_02-e2ea5c9", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/generics_02.py", - "infile_hash": "6f748cbf059da328ff092c08ad0063e639ba460eb481fadfadeebc51", + "infile_hash": "1103ff0edcb14e988eaa30252064dd77c7012884226c63f35f7aab01", "outfile": null, "outfile_hash": null, "stdout": "asr-generics_02-e2ea5c9.stdout", diff --git a/tests/reference/asr-generics_array_01-682b1b2.json b/tests/reference/asr-generics_array_01-682b1b2.json index c0fddccb32..9f9c207063 100644 --- a/tests/reference/asr-generics_array_01-682b1b2.json +++ b/tests/reference/asr-generics_array_01-682b1b2.json @@ -2,11 +2,11 @@ "basename": "asr-generics_array_01-682b1b2", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/generics_array_01.py", - "infile_hash": "577e2138c4c3c6c6550b24968b820b08adf826c7d2a8f569445a30d7", + "infile_hash": "c6df2de74d7c7d6c34034bba81ec72f26fb3fbab9f6651f0caced593", "outfile": null, "outfile_hash": null, "stdout": "asr-generics_array_01-682b1b2.stdout", - "stdout_hash": "e85fe267634cf3cf7d863893a4435135291f212755037c1245ff4f5c", + "stdout_hash": "9aa83809ba106e1940c77116da1771909d887743972d7dfbc016cc10", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-generics_array_01-682b1b2.stdout b/tests/reference/asr-generics_array_01-682b1b2.stdout index d70f44b002..2ef5d22011 100644 --- a/tests/reference/asr-generics_array_01-682b1b2.stdout +++ b/tests/reference/asr-generics_array_01-682b1b2.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 185 {T: (Variable 185 T [] Local () () Default (TypeParameter T []) Source Public Required .false.), __asr_generic_f_0: (Function (SymbolTable 182 {_lpython_return_variable: (Variable 182 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), i: (Variable 182 i [] In () () Default (Integer 4 []) Source Public Required .false.), lst: (Variable 182 lst [] InOut () () Default (Integer 4 [(() ())]) Source Public Required .false.)}) __asr_generic_f_0 (FunctionType [(Integer 4 [(() ())]) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 182 lst) (Var 182 i)] [(= (ArrayItem (Var 182 lst) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (Var 182 i) ()) (= (Var 182 _lpython_return_variable) (ArrayItem (Var 182 lst) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) ()) (Return)] (Var 182 _lpython_return_variable) Public .false. .false.), _lpython_main_program: (Function (SymbolTable 184 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [use_array] [] [(SubroutineCall 185 use_array () [] ())] () Public .false. .false.), f: (Function (SymbolTable 180 {_lpython_return_variable: (Variable 180 _lpython_return_variable [] ReturnVar () () Default (TypeParameter T []) Source Public Required .false.), i: (Variable 180 i [] In () () Default (TypeParameter T []) Source Public Required .false.), lst: (Variable 180 lst [] InOut () () Default (TypeParameter T [(() ())]) Source Public Required .false.)}) f (FunctionType [(TypeParameter T [(() ())]) (TypeParameter T [])] (TypeParameter T []) Source Implementation () .false. .false. .false. .false. .false. [(TypeParameter T [])] [] .false.) [] [(Var 180 lst) (Var 180 i)] [(= (ArrayItem (Var 180 lst) [(() (IntegerConstant 0 (Integer 4 [])) ())] (TypeParameter T []) RowMajor ()) (Var 180 i) ()) (= (Var 180 _lpython_return_variable) (ArrayItem (Var 180 lst) [(() (IntegerConstant 0 (Integer 4 [])) ())] (TypeParameter T []) RowMajor ()) ()) (Return)] (Var 180 _lpython_return_variable) Public .false. .false.), use_array: (Function (SymbolTable 181 {array: (Variable 181 array [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), x: (Variable 181 x [] Local () () Default (Integer 4 []) Source Public Required .false.)}) use_array (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [__asr_generic_f_0] [] [(= (Var 181 x) (IntegerConstant 69 (Integer 4 [])) ()) (Print () [(FunctionCall 185 __asr_generic_f_0 () [((Var 181 array)) ((Var 181 x))] (Integer 4 []) () ())] () ())] () Public .false. .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 183 {_lpython_main_program: (ExternalSymbol 183 _lpython_main_program 185 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 183 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_2___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_0___mod 79 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_0___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 186 {T: (Variable 186 T [] Local () () Default (TypeParameter T []) Source Public Required .false.), __asr_generic_f_0: (Function (SymbolTable 183 {_lpython_return_variable: (Variable 183 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), i: (Variable 183 i [] In () () Default (Integer 4 []) Source Public Required .false.), lst: (Variable 183 lst [] InOut () () Default (Integer 4 [(() ())]) Source Public Required .false.)}) __asr_generic_f_0 (FunctionType [(Integer 4 [(() ())]) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 183 lst) (Var 183 i)] [(= (ArrayItem (Var 183 lst) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (Var 183 i) ()) (= (Var 183 _lpython_return_variable) (ArrayItem (Var 183 lst) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) ()) (Return)] (Var 183 _lpython_return_variable) Public .false. .false.), _lpython_main_program: (Function (SymbolTable 185 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [use_array] [] [(SubroutineCall 186 use_array () [] ())] () Public .false. .false.), f: (Function (SymbolTable 181 {_lpython_return_variable: (Variable 181 _lpython_return_variable [] ReturnVar () () Default (TypeParameter T []) Source Public Required .false.), i: (Variable 181 i [] In () () Default (TypeParameter T []) Source Public Required .false.), lst: (Variable 181 lst [] InOut () () Default (TypeParameter T [(() ())]) Source Public Required .false.)}) f (FunctionType [(TypeParameter T [(() ())]) (TypeParameter T [])] (TypeParameter T []) Source Implementation () .false. .false. .false. .false. .false. [(TypeParameter T [])] [] .false.) [] [(Var 181 lst) (Var 181 i)] [(= (ArrayItem (Var 181 lst) [(() (IntegerConstant 0 (Integer 4 [])) ())] (TypeParameter T []) RowMajor ()) (Var 181 i) ()) (= (Var 181 _lpython_return_variable) (ArrayItem (Var 181 lst) [(() (IntegerConstant 0 (Integer 4 [])) ())] (TypeParameter T []) RowMajor ()) ()) (Return)] (Var 181 _lpython_return_variable) Public .false. .false.), use_array: (Function (SymbolTable 182 {array: (Variable 182 array [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), x: (Variable 182 x [] Local () () Default (Integer 4 []) Source Public Required .false.)}) use_array (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [__asr_generic_f_0] [] [(= (Var 182 x) (IntegerConstant 69 (Integer 4 [])) ()) (Print () [(FunctionCall 186 __asr_generic_f_0 () [((Var 182 array)) ((Var 182 x))] (Integer 4 []) () ())] () ())] () Public .false. .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 184 {_lpython_main_program: (ExternalSymbol 184 _lpython_main_program 186 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 184 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_4___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_4___mod 79 __lpython_overloaded_4___mod lpython_builtin [] __lpython_overloaded_4___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_4___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_4___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_2___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) diff --git a/tests/reference/asr-generics_array_02-22c8dc1.json b/tests/reference/asr-generics_array_02-22c8dc1.json index 84794ad3d7..4299ed37af 100644 --- a/tests/reference/asr-generics_array_02-22c8dc1.json +++ b/tests/reference/asr-generics_array_02-22c8dc1.json @@ -2,11 +2,11 @@ "basename": "asr-generics_array_02-22c8dc1", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/generics_array_02.py", - "infile_hash": "a9575810ad7ee98bcc913414faf45c3fbb2e62a42e6a085e158ae280", + "infile_hash": "573a1e2d702f2a144956a57e367291c359b68f385b9163131a95334a", "outfile": null, "outfile_hash": null, "stdout": "asr-generics_array_02-22c8dc1.stdout", - "stdout_hash": "e6a02a53748fdef89e345b642c82bac44ef4a63be90f60d437c6807c", + "stdout_hash": "27d9a539a385618dc4f724fa8969aea0ee12775f84376d1fccf5d17e", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-generics_array_02-22c8dc1.stdout b/tests/reference/asr-generics_array_02-22c8dc1.stdout index c5ac3b442f..b067780521 100644 --- a/tests/reference/asr-generics_array_02-22c8dc1.stdout +++ b/tests/reference/asr-generics_array_02-22c8dc1.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 190 {T: (Variable 190 T [] Local () () Default (TypeParameter T []) Source Public Required .false.), __asr_generic_g_0: (Function (SymbolTable 186 {a: (Variable 186 a [n] InOut () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 186 n))]) Source Public Required .false.), b: (Variable 186 b [n] InOut () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 186 n))]) Source Public Required .false.), i: (Variable 186 i [] Local () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 186 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 186 r [n] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 186 n))]) Source Public Required .false.)}) __asr_generic_g_0 (FunctionType [(Integer 4 []) (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 186 n))]) (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 186 n))])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [add_integer] [(Var 186 n) (Var 186 a) (Var 186 b)] [(DoLoop ((Var 186 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 186 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 186 r) [(() (Var 186 i) ())] (Integer 4 []) RowMajor ()) (FunctionCall 190 add_integer () [((ArrayItem (Var 186 a) [(() (Var 186 i) ())] (Integer 4 []) RowMajor ())) ((ArrayItem (Var 186 b) [(() (Var 186 i) ())] (Integer 4 []) RowMajor ()))] (Integer 4 []) () ()) ())]) (Print () [(ArrayItem (Var 186 r) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ())] () ())] () Public .false. .false.), __asr_generic_g_1: (Function (SymbolTable 187 {a: (Variable 187 a [n] InOut () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n))]) Source Public Required .false.), b: (Variable 187 b [n] InOut () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n))]) Source Public Required .false.), i: (Variable 187 i [] Local () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 187 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 187 r [n] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n))]) Source Public Required .false.)}) __asr_generic_g_1 (FunctionType [(Integer 4 []) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n))]) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n))])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [add_float] [(Var 187 n) (Var 187 a) (Var 187 b)] [(DoLoop ((Var 187 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 187 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 187 r) [(() (Var 187 i) ())] (Real 4 []) RowMajor ()) (FunctionCall 190 add_float () [((ArrayItem (Var 187 a) [(() (Var 187 i) ())] (Real 4 []) RowMajor ())) ((ArrayItem (Var 187 b) [(() (Var 187 i) ())] (Real 4 []) RowMajor ()))] (Real 4 []) () ()) ())]) (Print () [(ArrayItem (Var 187 r) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ())] () ())] () Public .false. .false.), _lpython_main_program: (Function (SymbolTable 189 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [main] [] [(SubroutineCall 190 main () [] ())] () Public .false. .false.), add: (Function (SymbolTable 180 {_lpython_return_variable: (Variable 180 _lpython_return_variable [] ReturnVar () () Default (TypeParameter T []) Source Public Required .false.), x: (Variable 180 x [] In () () Default (TypeParameter T []) Source Public Required .false.), y: (Variable 180 y [] In () () Default (TypeParameter T []) Source Public Required .false.)}) add (FunctionType [(TypeParameter T []) (TypeParameter T [])] (TypeParameter T []) Source Implementation () .false. .false. .false. .false. .false. [(TypeParameter T [])] [] .true.) [] [(Var 180 x) (Var 180 y)] [] (Var 180 _lpython_return_variable) Public .false. .false.), add_float: (Function (SymbolTable 182 {_lpython_return_variable: (Variable 182 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 182 x [] In () () Default (Real 4 []) Source Public Required .false.), y: (Variable 182 y [] In () () Default (Real 4 []) Source Public Required .false.)}) add_float (FunctionType [(Real 4 []) (Real 4 [])] (Real 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 182 x) (Var 182 y)] [(= (Var 182 _lpython_return_variable) (RealBinOp (Var 182 x) Add (Var 182 y) (Real 4 []) ()) ()) (Return)] (Var 182 _lpython_return_variable) Public .false. .false.), add_integer: (Function (SymbolTable 181 {_lpython_return_variable: (Variable 181 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), x: (Variable 181 x [] In () () Default (Integer 4 []) Source Public Required .false.), y: (Variable 181 y [] In () () Default (Integer 4 []) Source Public Required .false.)}) add_integer (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 181 x) (Var 181 y)] [(= (Var 181 _lpython_return_variable) (IntegerBinOp (Var 181 x) Add (Var 181 y) (Integer 4 []) ()) ()) (Return)] (Var 181 _lpython_return_variable) Public .false. .false.), g: (Function (SymbolTable 183 {a: (Variable 183 a [n] InOut () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n))]) Source Public Required .false.), b: (Variable 183 b [n] InOut () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n))]) Source Public Required .false.), i: (Variable 183 i [] Local () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 183 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 183 r [n] Local () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n))]) Source Public Required .false.)}) g (FunctionType [(Integer 4 []) (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n))]) (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n))])] () Source Implementation () .false. .false. .false. .false. .false. [(TypeParameter T [])] [190 add] .false.) [add] [(Var 183 n) (Var 183 a) (Var 183 b)] [(DoLoop ((Var 183 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 183 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 183 r) [(() (Var 183 i) ())] (TypeParameter T []) RowMajor ()) (FunctionCall 190 add () [((ArrayItem (Var 183 a) [(() (Var 183 i) ())] (TypeParameter T []) RowMajor ())) ((ArrayItem (Var 183 b) [(() (Var 183 i) ())] (TypeParameter T []) RowMajor ()))] (TypeParameter T []) () ()) ())]) (Print () [(ArrayItem (Var 183 r) [(() (IntegerConstant 0 (Integer 4 [])) ())] (TypeParameter T []) RowMajor ())] () ())] () Public .false. .false.), main: (Function (SymbolTable 184 {a_float: (Variable 184 a_float [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), a_int: (Variable 184 a_int [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), b_float: (Variable 184 b_float [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), b_int: (Variable 184 b_int [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.)}) main (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [__asr_generic_g_0 __asr_generic_g_1] [] [(= (ArrayItem (Var 184 a_int) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 400 (Integer 4 [])) ()) (= (ArrayItem (Var 184 b_int) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 20 (Integer 4 [])) ()) (SubroutineCall 190 __asr_generic_g_0 () [((IntegerConstant 1 (Integer 4 []))) ((Var 184 a_int)) ((Var 184 b_int))] ()) (= (ArrayItem (Var 184 a_float) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) (Cast (RealConstant 400.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 400.000000 (Real 4 []))) ()) (= (ArrayItem (Var 184 b_float) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) (Cast (RealConstant 20.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 20.000000 (Real 4 []))) ()) (SubroutineCall 190 __asr_generic_g_1 () [((IntegerConstant 1 (Integer 4 []))) ((Var 184 a_float)) ((Var 184 b_float))] ())] () Public .false. .false.), n: (Variable 190 n [] Local () () Default (Integer 4 []) Source Public Required .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 188 {_lpython_main_program: (ExternalSymbol 188 _lpython_main_program 190 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 188 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_2___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_0___mod 79 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_0___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 191 {T: (Variable 191 T [] Local () () Default (TypeParameter T []) Source Public Required .false.), __asr_generic_g_0: (Function (SymbolTable 187 {a: (Variable 187 a [n] InOut () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n))]) Source Public Required .false.), b: (Variable 187 b [n] InOut () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n))]) Source Public Required .false.), i: (Variable 187 i [] Local () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 187 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 187 r [n] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n))]) Source Public Required .false.)}) __asr_generic_g_0 (FunctionType [(Integer 4 []) (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n))]) (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n))])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [add_integer] [(Var 187 n) (Var 187 a) (Var 187 b)] [(DoLoop ((Var 187 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 187 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 187 r) [(() (Var 187 i) ())] (Integer 4 []) RowMajor ()) (FunctionCall 191 add_integer () [((ArrayItem (Var 187 a) [(() (Var 187 i) ())] (Integer 4 []) RowMajor ())) ((ArrayItem (Var 187 b) [(() (Var 187 i) ())] (Integer 4 []) RowMajor ()))] (Integer 4 []) () ()) ())]) (Print () [(ArrayItem (Var 187 r) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ())] () ())] () Public .false. .false.), __asr_generic_g_1: (Function (SymbolTable 188 {a: (Variable 188 a [n] InOut () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n))]) Source Public Required .false.), b: (Variable 188 b [n] InOut () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n))]) Source Public Required .false.), i: (Variable 188 i [] Local () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 188 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 188 r [n] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n))]) Source Public Required .false.)}) __asr_generic_g_1 (FunctionType [(Integer 4 []) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n))]) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n))])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [add_float] [(Var 188 n) (Var 188 a) (Var 188 b)] [(DoLoop ((Var 188 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 188 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 188 r) [(() (Var 188 i) ())] (Real 4 []) RowMajor ()) (FunctionCall 191 add_float () [((ArrayItem (Var 188 a) [(() (Var 188 i) ())] (Real 4 []) RowMajor ())) ((ArrayItem (Var 188 b) [(() (Var 188 i) ())] (Real 4 []) RowMajor ()))] (Real 4 []) () ()) ())]) (Print () [(ArrayItem (Var 188 r) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ())] () ())] () Public .false. .false.), _lpython_main_program: (Function (SymbolTable 190 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [main] [] [(SubroutineCall 191 main () [] ())] () Public .false. .false.), add: (Function (SymbolTable 181 {_lpython_return_variable: (Variable 181 _lpython_return_variable [] ReturnVar () () Default (TypeParameter T []) Source Public Required .false.), x: (Variable 181 x [] In () () Default (TypeParameter T []) Source Public Required .false.), y: (Variable 181 y [] In () () Default (TypeParameter T []) Source Public Required .false.)}) add (FunctionType [(TypeParameter T []) (TypeParameter T [])] (TypeParameter T []) Source Implementation () .false. .false. .false. .false. .false. [(TypeParameter T [])] [] .true.) [] [(Var 181 x) (Var 181 y)] [] (Var 181 _lpython_return_variable) Public .false. .false.), add_float: (Function (SymbolTable 183 {_lpython_return_variable: (Variable 183 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 183 x [] In () () Default (Real 4 []) Source Public Required .false.), y: (Variable 183 y [] In () () Default (Real 4 []) Source Public Required .false.)}) add_float (FunctionType [(Real 4 []) (Real 4 [])] (Real 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 183 x) (Var 183 y)] [(= (Var 183 _lpython_return_variable) (RealBinOp (Var 183 x) Add (Var 183 y) (Real 4 []) ()) ()) (Return)] (Var 183 _lpython_return_variable) Public .false. .false.), add_integer: (Function (SymbolTable 182 {_lpython_return_variable: (Variable 182 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), x: (Variable 182 x [] In () () Default (Integer 4 []) Source Public Required .false.), y: (Variable 182 y [] In () () Default (Integer 4 []) Source Public Required .false.)}) add_integer (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 182 x) (Var 182 y)] [(= (Var 182 _lpython_return_variable) (IntegerBinOp (Var 182 x) Add (Var 182 y) (Integer 4 []) ()) ()) (Return)] (Var 182 _lpython_return_variable) Public .false. .false.), g: (Function (SymbolTable 184 {a: (Variable 184 a [n] InOut () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n))]) Source Public Required .false.), b: (Variable 184 b [n] InOut () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n))]) Source Public Required .false.), i: (Variable 184 i [] Local () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 184 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 184 r [n] Local () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n))]) Source Public Required .false.)}) g (FunctionType [(Integer 4 []) (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n))]) (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n))])] () Source Implementation () .false. .false. .false. .false. .false. [(TypeParameter T [])] [191 add] .false.) [add] [(Var 184 n) (Var 184 a) (Var 184 b)] [(DoLoop ((Var 184 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 184 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 184 r) [(() (Var 184 i) ())] (TypeParameter T []) RowMajor ()) (FunctionCall 191 add () [((ArrayItem (Var 184 a) [(() (Var 184 i) ())] (TypeParameter T []) RowMajor ())) ((ArrayItem (Var 184 b) [(() (Var 184 i) ())] (TypeParameter T []) RowMajor ()))] (TypeParameter T []) () ()) ())]) (Print () [(ArrayItem (Var 184 r) [(() (IntegerConstant 0 (Integer 4 [])) ())] (TypeParameter T []) RowMajor ())] () ())] () Public .false. .false.), main: (Function (SymbolTable 185 {a_float: (Variable 185 a_float [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), a_int: (Variable 185 a_int [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), b_float: (Variable 185 b_float [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), b_int: (Variable 185 b_int [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.)}) main (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [__asr_generic_g_0 __asr_generic_g_1] [] [(= (ArrayItem (Var 185 a_int) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 400 (Integer 4 [])) ()) (= (ArrayItem (Var 185 b_int) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 20 (Integer 4 [])) ()) (SubroutineCall 191 __asr_generic_g_0 () [((IntegerConstant 1 (Integer 4 []))) ((Var 185 a_int)) ((Var 185 b_int))] ()) (= (ArrayItem (Var 185 a_float) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) (Cast (RealConstant 400.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 400.000000 (Real 4 []))) ()) (= (ArrayItem (Var 185 b_float) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) (Cast (RealConstant 20.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 20.000000 (Real 4 []))) ()) (SubroutineCall 191 __asr_generic_g_1 () [((IntegerConstant 1 (Integer 4 []))) ((Var 185 a_float)) ((Var 185 b_float))] ())] () Public .false. .false.), n: (Variable 191 n [] Local () () Default (Integer 4 []) Source Public Required .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 189 {_lpython_main_program: (ExternalSymbol 189 _lpython_main_program 191 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 189 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_4___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_4___mod 79 __lpython_overloaded_4___mod lpython_builtin [] __lpython_overloaded_4___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_4___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_4___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_2___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) diff --git a/tests/reference/asr-generics_array_03-fb3706c.json b/tests/reference/asr-generics_array_03-fb3706c.json index 95e7568737..046eb84c61 100644 --- a/tests/reference/asr-generics_array_03-fb3706c.json +++ b/tests/reference/asr-generics_array_03-fb3706c.json @@ -2,11 +2,11 @@ "basename": "asr-generics_array_03-fb3706c", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/generics_array_03.py", - "infile_hash": "66caaf36c724826274bb5288573e19175417a30c8470ce092e569adc", + "infile_hash": "61d9cb73bacec6dfec919e6d25a549e749e1e73d895b0b48d6cdcaaf", "outfile": null, "outfile_hash": null, "stdout": "asr-generics_array_03-fb3706c.stdout", - "stdout_hash": "fa8c6b7cc9933aa8623103e1f7c6eb17b08873ee5c0f99e96a7e5e0c", + "stdout_hash": "3488f060ea913f3051d04ec99e6ea0a4b0c7ac62c3a54f39ae1e30c7", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-generics_array_03-fb3706c.stdout b/tests/reference/asr-generics_array_03-fb3706c.stdout index 604f8c0d23..fa2602a45a 100644 --- a/tests/reference/asr-generics_array_03-fb3706c.stdout +++ b/tests/reference/asr-generics_array_03-fb3706c.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 191 {T: (Variable 191 T [] Local () () Default (TypeParameter T []) Source Public Required .false.), __asr_generic_g_0: (Function (SymbolTable 187 {_lpython_return_variable: (Variable 187 _lpython_return_variable [n m] ReturnVar () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 187 m))]) Source Public Required .false.), a: (Variable 187 a [n m] InOut () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 187 m))]) Source Public Required .false.), b: (Variable 187 b [n m] InOut () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 187 m))]) Source Public Required .false.), i: (Variable 187 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 187 j [] Local () () Default (Integer 4 []) Source Public Required .false.), m: (Variable 187 m [] In () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 187 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 187 r [n m] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 187 m))]) Source Public Required .false.)}) __asr_generic_g_0 (FunctionType [(Integer 4 []) (Integer 4 []) (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 187 m))]) (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 187 m))])] (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 187 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 187 m))]) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [add_integer] [(Var 187 n) (Var 187 m) (Var 187 a) (Var 187 b)] [(DoLoop ((Var 187 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 187 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 187 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 187 m) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 187 r) [(() (Var 187 i) ()) (() (Var 187 j) ())] (Integer 4 []) RowMajor ()) (FunctionCall 191 add_integer () [((ArrayItem (Var 187 a) [(() (Var 187 i) ()) (() (Var 187 j) ())] (Integer 4 []) RowMajor ())) ((ArrayItem (Var 187 b) [(() (Var 187 i) ()) (() (Var 187 j) ())] (Integer 4 []) RowMajor ()))] (Integer 4 []) () ()) ())])]) (Print () [(ArrayItem (Var 187 r) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ())] () ())] (Var 187 _lpython_return_variable) Public .false. .false.), __asr_generic_g_1: (Function (SymbolTable 188 {_lpython_return_variable: (Variable 188 _lpython_return_variable [n m] ReturnVar () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) Source Public Required .false.), a: (Variable 188 a [n m] InOut () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) Source Public Required .false.), b: (Variable 188 b [n m] InOut () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) Source Public Required .false.), i: (Variable 188 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 188 j [] Local () () Default (Integer 4 []) Source Public Required .false.), m: (Variable 188 m [] In () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 188 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 188 r [n m] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) Source Public Required .false.)}) __asr_generic_g_1 (FunctionType [(Integer 4 []) (Integer 4 []) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))])] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [add_float] [(Var 188 n) (Var 188 m) (Var 188 a) (Var 188 b)] [(DoLoop ((Var 188 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 188 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 188 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 188 m) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 188 r) [(() (Var 188 i) ()) (() (Var 188 j) ())] (Real 4 []) RowMajor ()) (FunctionCall 191 add_float () [((ArrayItem (Var 188 a) [(() (Var 188 i) ()) (() (Var 188 j) ())] (Real 4 []) RowMajor ())) ((ArrayItem (Var 188 b) [(() (Var 188 i) ()) (() (Var 188 j) ())] (Real 4 []) RowMajor ()))] (Real 4 []) () ()) ())])]) (Print () [(ArrayItem (Var 188 r) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ())] () ())] (Var 188 _lpython_return_variable) Public .false. .false.), _lpython_main_program: (Function (SymbolTable 190 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [main] [] [(SubroutineCall 191 main () [] ())] () Public .false. .false.), add: (Function (SymbolTable 180 {_lpython_return_variable: (Variable 180 _lpython_return_variable [] ReturnVar () () Default (TypeParameter T []) Source Public Required .false.), x: (Variable 180 x [] In () () Default (TypeParameter T []) Source Public Required .false.), y: (Variable 180 y [] In () () Default (TypeParameter T []) Source Public Required .false.)}) add (FunctionType [(TypeParameter T []) (TypeParameter T [])] (TypeParameter T []) Source Implementation () .false. .false. .false. .false. .false. [(TypeParameter T [])] [] .true.) [] [(Var 180 x) (Var 180 y)] [] (Var 180 _lpython_return_variable) Public .false. .false.), add_float: (Function (SymbolTable 182 {_lpython_return_variable: (Variable 182 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 182 x [] In () () Default (Real 4 []) Source Public Required .false.), y: (Variable 182 y [] In () () Default (Real 4 []) Source Public Required .false.)}) add_float (FunctionType [(Real 4 []) (Real 4 [])] (Real 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 182 x) (Var 182 y)] [(= (Var 182 _lpython_return_variable) (RealBinOp (Var 182 x) Add (Var 182 y) (Real 4 []) ()) ()) (Return)] (Var 182 _lpython_return_variable) Public .false. .false.), add_integer: (Function (SymbolTable 181 {_lpython_return_variable: (Variable 181 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), x: (Variable 181 x [] In () () Default (Integer 4 []) Source Public Required .false.), y: (Variable 181 y [] In () () Default (Integer 4 []) Source Public Required .false.)}) add_integer (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 181 x) (Var 181 y)] [(= (Var 181 _lpython_return_variable) (IntegerBinOp (Var 181 x) Add (Var 181 y) (Integer 4 []) ()) ()) (Return)] (Var 181 _lpython_return_variable) Public .false. .false.), g: (Function (SymbolTable 183 {_lpython_return_variable: (Variable 183 _lpython_return_variable [n m] ReturnVar () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 183 m))]) Source Public Required .false.), a: (Variable 183 a [n m] InOut () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 183 m))]) Source Public Required .false.), b: (Variable 183 b [n m] InOut () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 183 m))]) Source Public Required .false.), i: (Variable 183 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 183 j [] Local () () Default (Integer 4 []) Source Public Required .false.), m: (Variable 183 m [] In () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 183 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 183 r [n m] Local () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 183 m))]) Source Public Required .false.)}) g (FunctionType [(Integer 4 []) (Integer 4 []) (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 183 m))]) (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 183 m))])] (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 183 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 183 m))]) Source Implementation () .false. .false. .false. .false. .false. [(TypeParameter T [])] [191 add] .false.) [add] [(Var 183 n) (Var 183 m) (Var 183 a) (Var 183 b)] [(DoLoop ((Var 183 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 183 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 183 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 183 m) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 183 r) [(() (Var 183 i) ()) (() (Var 183 j) ())] (TypeParameter T []) RowMajor ()) (FunctionCall 191 add () [((ArrayItem (Var 183 a) [(() (Var 183 i) ()) (() (Var 183 j) ())] (TypeParameter T []) RowMajor ())) ((ArrayItem (Var 183 b) [(() (Var 183 i) ()) (() (Var 183 j) ())] (TypeParameter T []) RowMajor ()))] (TypeParameter T []) () ()) ())])]) (Print () [(ArrayItem (Var 183 r) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (TypeParameter T []) RowMajor ())] () ())] (Var 183 _lpython_return_variable) Public .false. .false.), m: (Variable 191 m [] Local () () Default (Integer 4 []) Source Public Required .false.), main: (Function (SymbolTable 184 {__lcompilers_dummy: (Variable 184 __lcompilers_dummy [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), __lcompilers_dummy1: (Variable 184 __lcompilers_dummy1 [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), a_float: (Variable 184 a_float [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), a_int: (Variable 184 a_int [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), b_float: (Variable 184 b_float [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), b_int: (Variable 184 b_int [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.)}) main (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [__asr_generic_g_0 __asr_generic_g_1] [] [(= (ArrayItem (Var 184 a_int) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 400 (Integer 4 [])) ()) (= (ArrayItem (Var 184 b_int) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 20 (Integer 4 [])) ()) (= (Var 184 __lcompilers_dummy) (FunctionCall 191 __asr_generic_g_0 () [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 1 (Integer 4 []))) ((Var 184 a_int)) ((Var 184 b_int))] (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) () ()) ()) (= (ArrayItem (Var 184 a_float) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) (Cast (IntegerConstant 400 (Integer 4 [])) IntegerToReal (Real 4 []) ()) ()) (= (ArrayItem (Var 184 b_float) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) (Cast (IntegerConstant 20 (Integer 4 [])) IntegerToReal (Real 4 []) ()) ()) (= (Var 184 __lcompilers_dummy1) (FunctionCall 191 __asr_generic_g_1 () [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 1 (Integer 4 []))) ((Var 184 a_float)) ((Var 184 b_float))] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) () ()) ())] () Public .false. .false.), n: (Variable 191 n [] Local () () Default (Integer 4 []) Source Public Required .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 189 {_lpython_main_program: (ExternalSymbol 189 _lpython_main_program 191 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 189 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_2___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_0___mod 79 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_0___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 192 {T: (Variable 192 T [] Local () () Default (TypeParameter T []) Source Public Required .false.), __asr_generic_g_0: (Function (SymbolTable 188 {_lpython_return_variable: (Variable 188 _lpython_return_variable [n m] ReturnVar () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) Source Public Required .false.), a: (Variable 188 a [n m] InOut () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) Source Public Required .false.), b: (Variable 188 b [n m] InOut () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) Source Public Required .false.), i: (Variable 188 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 188 j [] Local () () Default (Integer 4 []) Source Public Required .false.), m: (Variable 188 m [] In () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 188 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 188 r [n m] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) Source Public Required .false.)}) __asr_generic_g_0 (FunctionType [(Integer 4 []) (Integer 4 []) (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))])] (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (Var 188 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 188 m))]) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [add_integer] [(Var 188 n) (Var 188 m) (Var 188 a) (Var 188 b)] [(DoLoop ((Var 188 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 188 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 188 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 188 m) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 188 r) [(() (Var 188 i) ()) (() (Var 188 j) ())] (Integer 4 []) RowMajor ()) (FunctionCall 192 add_integer () [((ArrayItem (Var 188 a) [(() (Var 188 i) ()) (() (Var 188 j) ())] (Integer 4 []) RowMajor ())) ((ArrayItem (Var 188 b) [(() (Var 188 i) ()) (() (Var 188 j) ())] (Integer 4 []) RowMajor ()))] (Integer 4 []) () ()) ())])]) (Print () [(ArrayItem (Var 188 r) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ())] () ())] (Var 188 _lpython_return_variable) Public .false. .false.), __asr_generic_g_1: (Function (SymbolTable 189 {_lpython_return_variable: (Variable 189 _lpython_return_variable [n m] ReturnVar () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 189 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 189 m))]) Source Public Required .false.), a: (Variable 189 a [n m] InOut () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 189 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 189 m))]) Source Public Required .false.), b: (Variable 189 b [n m] InOut () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 189 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 189 m))]) Source Public Required .false.), i: (Variable 189 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 189 j [] Local () () Default (Integer 4 []) Source Public Required .false.), m: (Variable 189 m [] In () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 189 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 189 r [n m] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 189 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 189 m))]) Source Public Required .false.)}) __asr_generic_g_1 (FunctionType [(Integer 4 []) (Integer 4 []) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 189 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 189 m))]) (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 189 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 189 m))])] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (Var 189 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 189 m))]) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [add_float] [(Var 189 n) (Var 189 m) (Var 189 a) (Var 189 b)] [(DoLoop ((Var 189 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 189 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 189 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 189 m) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 189 r) [(() (Var 189 i) ()) (() (Var 189 j) ())] (Real 4 []) RowMajor ()) (FunctionCall 192 add_float () [((ArrayItem (Var 189 a) [(() (Var 189 i) ()) (() (Var 189 j) ())] (Real 4 []) RowMajor ())) ((ArrayItem (Var 189 b) [(() (Var 189 i) ()) (() (Var 189 j) ())] (Real 4 []) RowMajor ()))] (Real 4 []) () ()) ())])]) (Print () [(ArrayItem (Var 189 r) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ())] () ())] (Var 189 _lpython_return_variable) Public .false. .false.), _lpython_main_program: (Function (SymbolTable 191 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [main] [] [(SubroutineCall 192 main () [] ())] () Public .false. .false.), add: (Function (SymbolTable 181 {_lpython_return_variable: (Variable 181 _lpython_return_variable [] ReturnVar () () Default (TypeParameter T []) Source Public Required .false.), x: (Variable 181 x [] In () () Default (TypeParameter T []) Source Public Required .false.), y: (Variable 181 y [] In () () Default (TypeParameter T []) Source Public Required .false.)}) add (FunctionType [(TypeParameter T []) (TypeParameter T [])] (TypeParameter T []) Source Implementation () .false. .false. .false. .false. .false. [(TypeParameter T [])] [] .true.) [] [(Var 181 x) (Var 181 y)] [] (Var 181 _lpython_return_variable) Public .false. .false.), add_float: (Function (SymbolTable 183 {_lpython_return_variable: (Variable 183 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 183 x [] In () () Default (Real 4 []) Source Public Required .false.), y: (Variable 183 y [] In () () Default (Real 4 []) Source Public Required .false.)}) add_float (FunctionType [(Real 4 []) (Real 4 [])] (Real 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 183 x) (Var 183 y)] [(= (Var 183 _lpython_return_variable) (RealBinOp (Var 183 x) Add (Var 183 y) (Real 4 []) ()) ()) (Return)] (Var 183 _lpython_return_variable) Public .false. .false.), add_integer: (Function (SymbolTable 182 {_lpython_return_variable: (Variable 182 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), x: (Variable 182 x [] In () () Default (Integer 4 []) Source Public Required .false.), y: (Variable 182 y [] In () () Default (Integer 4 []) Source Public Required .false.)}) add_integer (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 182 x) (Var 182 y)] [(= (Var 182 _lpython_return_variable) (IntegerBinOp (Var 182 x) Add (Var 182 y) (Integer 4 []) ()) ()) (Return)] (Var 182 _lpython_return_variable) Public .false. .false.), g: (Function (SymbolTable 184 {_lpython_return_variable: (Variable 184 _lpython_return_variable [n m] ReturnVar () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 184 m))]) Source Public Required .false.), a: (Variable 184 a [n m] InOut () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 184 m))]) Source Public Required .false.), b: (Variable 184 b [n m] InOut () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 184 m))]) Source Public Required .false.), i: (Variable 184 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 184 j [] Local () () Default (Integer 4 []) Source Public Required .false.), m: (Variable 184 m [] In () () Default (Integer 4 []) Source Public Required .false.), n: (Variable 184 n [] In () () Default (Integer 4 []) Source Public Required .false.), r: (Variable 184 r [n m] Local () () Default (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 184 m))]) Source Public Required .false.)}) g (FunctionType [(Integer 4 []) (Integer 4 []) (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 184 m))]) (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 184 m))])] (TypeParameter T [((IntegerConstant 0 (Integer 4 [])) (Var 184 n)) ((IntegerConstant 0 (Integer 4 [])) (Var 184 m))]) Source Implementation () .false. .false. .false. .false. .false. [(TypeParameter T [])] [192 add] .false.) [add] [(Var 184 n) (Var 184 m) (Var 184 a) (Var 184 b)] [(DoLoop ((Var 184 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 184 n) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 184 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (Var 184 m) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 184 r) [(() (Var 184 i) ()) (() (Var 184 j) ())] (TypeParameter T []) RowMajor ()) (FunctionCall 192 add () [((ArrayItem (Var 184 a) [(() (Var 184 i) ()) (() (Var 184 j) ())] (TypeParameter T []) RowMajor ())) ((ArrayItem (Var 184 b) [(() (Var 184 i) ()) (() (Var 184 j) ())] (TypeParameter T []) RowMajor ()))] (TypeParameter T []) () ()) ())])]) (Print () [(ArrayItem (Var 184 r) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (TypeParameter T []) RowMajor ())] () ())] (Var 184 _lpython_return_variable) Public .false. .false.), m: (Variable 192 m [] Local () () Default (Integer 4 []) Source Public Required .false.), main: (Function (SymbolTable 185 {__lcompilers_dummy: (Variable 185 __lcompilers_dummy [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), __lcompilers_dummy1: (Variable 185 __lcompilers_dummy1 [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), a_float: (Variable 185 a_float [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), a_int: (Variable 185 a_int [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), b_float: (Variable 185 b_float [] Local () () Default (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), b_int: (Variable 185 b_int [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.)}) main (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [__asr_generic_g_0 __asr_generic_g_1] [] [(= (ArrayItem (Var 185 a_int) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 400 (Integer 4 [])) ()) (= (ArrayItem (Var 185 b_int) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 20 (Integer 4 [])) ()) (= (Var 185 __lcompilers_dummy) (FunctionCall 192 __asr_generic_g_0 () [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 1 (Integer 4 []))) ((Var 185 a_int)) ((Var 185 b_int))] (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) () ()) ()) (= (ArrayItem (Var 185 a_float) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) (Cast (IntegerConstant 400 (Integer 4 [])) IntegerToReal (Real 4 []) ()) ()) (= (ArrayItem (Var 185 b_float) [(() (IntegerConstant 0 (Integer 4 [])) ()) (() (IntegerConstant 0 (Integer 4 [])) ())] (Real 4 []) RowMajor ()) (Cast (IntegerConstant 20 (Integer 4 [])) IntegerToReal (Real 4 []) ()) ()) (= (Var 185 __lcompilers_dummy1) (FunctionCall 192 __asr_generic_g_1 () [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 1 (Integer 4 []))) ((Var 185 a_float)) ((Var 185 b_float))] (Real 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) () ()) ())] () Public .false. .false.), n: (Variable 192 n [] Local () () Default (Integer 4 []) Source Public Required .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 190 {_lpython_main_program: (ExternalSymbol 190 _lpython_main_program 192 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 190 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_4___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_4___mod 79 __lpython_overloaded_4___mod lpython_builtin [] __lpython_overloaded_4___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_4___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_4___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_2___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) diff --git a/tests/reference/asr-generics_error_01-1e05cd6.json b/tests/reference/asr-generics_error_01-1e05cd6.json index a7d451e9cc..80dcd03351 100644 --- a/tests/reference/asr-generics_error_01-1e05cd6.json +++ b/tests/reference/asr-generics_error_01-1e05cd6.json @@ -2,7 +2,7 @@ "basename": "asr-generics_error_01-1e05cd6", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/generics_error_01.py", - "infile_hash": "8149b798615fdeeae18b4557eabaeca31a13383518df60efc842b296", + "infile_hash": "2c26a040a0d03561f54a6af9cdd9db262fa0e9db7a6db2b115f6c4eb", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-generics_error_02-d614928.json b/tests/reference/asr-generics_error_02-d614928.json index 48bf090693..950f37b435 100644 --- a/tests/reference/asr-generics_error_02-d614928.json +++ b/tests/reference/asr-generics_error_02-d614928.json @@ -2,7 +2,7 @@ "basename": "asr-generics_error_02-d614928", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/generics_error_02.py", - "infile_hash": "f27dee9140097b22b38ba3c7155e74e7d98534f710f11488d6422593", + "infile_hash": "0cd9c07bbe28138a3cca57b750b625c528773ac79c36b15e5dc5830a", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-generics_error_03-208d10d.json b/tests/reference/asr-generics_error_03-208d10d.json index 7faf2af080..a5e6b0f007 100644 --- a/tests/reference/asr-generics_error_03-208d10d.json +++ b/tests/reference/asr-generics_error_03-208d10d.json @@ -2,7 +2,7 @@ "basename": "asr-generics_error_03-208d10d", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/generics_error_03.py", - "infile_hash": "1ab7d907f1b683746e2a44b66099cc41b67893ba55f2982db8a19e38", + "infile_hash": "d09e6306de96ad3575262220417ea0af090d29b26c6fceb01e73fd6d", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-generics_list_01-39c4044.json b/tests/reference/asr-generics_list_01-39c4044.json index 4cbf5d91db..7b72408ce8 100644 --- a/tests/reference/asr-generics_list_01-39c4044.json +++ b/tests/reference/asr-generics_list_01-39c4044.json @@ -2,7 +2,7 @@ "basename": "asr-generics_list_01-39c4044", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/generics_list_01.py", - "infile_hash": "890fa6a0ba54b9eeb3654b4e1bacd4020a99b1916eac1abea8611b09", + "infile_hash": "d5101f5832d47b86a95540b87deb0b36092004160b41af2a6ffb5ee0", "outfile": null, "outfile_hash": null, "stdout": "asr-generics_list_01-39c4044.stdout", diff --git a/tests/reference/asr-global_syms_01-273906f.json b/tests/reference/asr-global_syms_01-273906f.json index d81cbf7daa..79bc868f58 100644 --- a/tests/reference/asr-global_syms_01-273906f.json +++ b/tests/reference/asr-global_syms_01-273906f.json @@ -2,7 +2,7 @@ "basename": "asr-global_syms_01-273906f", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/global_syms_01.py", - "infile_hash": "e0a6aef9091285567b2b68eb47c634a65d10f5e8cb3a1f0416cc30cd", + "infile_hash": "a561c85e452a7be71b45f7b5277fd3ab7ff79fcc596f059f00c9dd45", "outfile": null, "outfile_hash": null, "stdout": "asr-global_syms_01-273906f.stdout", diff --git a/tests/reference/asr-kwargs_01_error-ab9530d.json b/tests/reference/asr-kwargs_01_error-ab9530d.json index 0b35a9ff94..6f05aa772d 100644 --- a/tests/reference/asr-kwargs_01_error-ab9530d.json +++ b/tests/reference/asr-kwargs_01_error-ab9530d.json @@ -2,7 +2,7 @@ "basename": "asr-kwargs_01_error-ab9530d", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/kwargs_01_error.py", - "infile_hash": "bd57592c667767b7e7864e17e81feb8faf49fbc1f197c7569caaa221", + "infile_hash": "101436b7097d29f2b8dc97561054d2ffe33d11ae5a54336813c7dada", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-kwargs_02_error-7c91f8f.json b/tests/reference/asr-kwargs_02_error-7c91f8f.json index 51aab5f964..228d941171 100644 --- a/tests/reference/asr-kwargs_02_error-7c91f8f.json +++ b/tests/reference/asr-kwargs_02_error-7c91f8f.json @@ -2,7 +2,7 @@ "basename": "asr-kwargs_02_error-7c91f8f", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/kwargs_02_error.py", - "infile_hash": "01ebc026fa50ef7ebff1327fc789f8bb3a129b16f8c1e00078eb7a5b", + "infile_hash": "9f131c35f01a18365764a32dee072403fcc283705320ef6703627e5c", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-kwargs_03_error-a68cc46.json b/tests/reference/asr-kwargs_03_error-a68cc46.json index c039a25b60..2b3ac444fa 100644 --- a/tests/reference/asr-kwargs_03_error-a68cc46.json +++ b/tests/reference/asr-kwargs_03_error-a68cc46.json @@ -2,7 +2,7 @@ "basename": "asr-kwargs_03_error-a68cc46", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/kwargs_03_error.py", - "infile_hash": "9104d22c6e2912557becd7c33744f37364eb43c01b9beff5163a1a7d", + "infile_hash": "1cee111472c1f8b7eea276f308ac7a1fea12438606c658bd0757973c", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-loop1-10d3109.json b/tests/reference/asr-loop1-10d3109.json index 9d76310b41..6ade4d4a30 100644 --- a/tests/reference/asr-loop1-10d3109.json +++ b/tests/reference/asr-loop1-10d3109.json @@ -2,7 +2,7 @@ "basename": "asr-loop1-10d3109", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/loop1.py", - "infile_hash": "0eee568be1d20a4c31b59c33ae2b47509fce3f6047fa1ffa592947e9", + "infile_hash": "324b018f29f7dffbd326e77b7ff9b6a9286837d573ed28f9d86e0311", "outfile": null, "outfile_hash": null, "stdout": "asr-loop1-10d3109.stdout", diff --git a/tests/reference/asr-loop_01-e7aa06a.json b/tests/reference/asr-loop_01-e7aa06a.json index 6a0877e5d6..943ce68e64 100644 --- a/tests/reference/asr-loop_01-e7aa06a.json +++ b/tests/reference/asr-loop_01-e7aa06a.json @@ -2,7 +2,7 @@ "basename": "asr-loop_01-e7aa06a", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/loop_01.py", - "infile_hash": "dfe89b806a2b527a01526e9e55edc1271783e1ab916245222b561dee", + "infile_hash": "fd8dbfec9ebfe2be47e713f169a8bba58de81c0d1b8988dcc86523b2", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-loop_02-5741651.json b/tests/reference/asr-loop_02-5741651.json index 2e27cb758b..236ad8ba7a 100644 --- a/tests/reference/asr-loop_02-5741651.json +++ b/tests/reference/asr-loop_02-5741651.json @@ -2,7 +2,7 @@ "basename": "asr-loop_02-5741651", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/loop_02.py", - "infile_hash": "e88f2cac76a9de67c851a22a64cdae4553321d80ae64f5720a424a15", + "infile_hash": "7d28fdea517343528470d43c64f2759fd202ee66764d2d4ddbe5ea27", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-print_02-afbe092.json b/tests/reference/asr-print_02-afbe092.json index 2da9aaa5d3..b5a2d9ea84 100644 --- a/tests/reference/asr-print_02-afbe092.json +++ b/tests/reference/asr-print_02-afbe092.json @@ -2,7 +2,7 @@ "basename": "asr-print_02-afbe092", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/print_02.py", - "infile_hash": "c2a1fef856c4162154056d5aaea2acdf325f21bf8e43703f71d71fac", + "infile_hash": "c4513f1b2ab1a2f33a0784fe80b4d32b506c05799b0c920c4f5b0411", "outfile": null, "outfile_hash": null, "stdout": "asr-print_02-afbe092.stdout", diff --git a/tests/reference/asr-structs_01-0893e35.json b/tests/reference/asr-structs_01-0893e35.json index 8b22c411d9..b415cd4e5b 100644 --- a/tests/reference/asr-structs_01-0893e35.json +++ b/tests/reference/asr-structs_01-0893e35.json @@ -2,7 +2,7 @@ "basename": "asr-structs_01-0893e35", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/structs_01.py", - "infile_hash": "abf9fcde3ae523bf4c33bc957592f202798501a5379fb2621925fa4b", + "infile_hash": "9342dd6345fb71bbbfb1c41e643530c58493758d08774f838b1c85e0", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-structs_01-be14d49.json b/tests/reference/asr-structs_01-be14d49.json index 2f1c6e5a57..c2ee124e97 100644 --- a/tests/reference/asr-structs_01-be14d49.json +++ b/tests/reference/asr-structs_01-be14d49.json @@ -2,7 +2,7 @@ "basename": "asr-structs_01-be14d49", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/structs_01.py", - "infile_hash": "f79e576d065f9aab50fa4f7bb810c50f637738c7723aa765e6b51eaa", + "infile_hash": "a17eed6995c1af36b3968cb80367bda33fb855a60793b6bdc770aad2", "outfile": null, "outfile_hash": null, "stdout": "asr-structs_01-be14d49.stdout", diff --git a/tests/reference/asr-structs_02-2ab459a.json b/tests/reference/asr-structs_02-2ab459a.json index 5a012cf66a..959915cf47 100644 --- a/tests/reference/asr-structs_02-2ab459a.json +++ b/tests/reference/asr-structs_02-2ab459a.json @@ -2,7 +2,7 @@ "basename": "asr-structs_02-2ab459a", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/structs_02.py", - "infile_hash": "de732ccae77457ef2eb696bd3501e6623d437573974df4281b09dc97", + "infile_hash": "f101938e4f5608477de4e57be8f04196e51b97aab3ade62833cecf91", "outfile": null, "outfile_hash": null, "stdout": "asr-structs_02-2ab459a.stdout", diff --git a/tests/reference/asr-structs_03-0cef911.json b/tests/reference/asr-structs_03-0cef911.json index 312921975b..d66b5a77a1 100644 --- a/tests/reference/asr-structs_03-0cef911.json +++ b/tests/reference/asr-structs_03-0cef911.json @@ -2,7 +2,7 @@ "basename": "asr-structs_03-0cef911", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/structs_03.py", - "infile_hash": "3ec9774ad757a6facd8a572ad641286849c3fab33659b8e5914fcd0f", + "infile_hash": "dbd0eac675f958a27a7a4e4a7de3b04402073ecd2d483df75f51eb80", "outfile": null, "outfile_hash": null, "stdout": "asr-structs_03-0cef911.stdout", diff --git a/tests/reference/asr-structs_04-387747b.json b/tests/reference/asr-structs_04-387747b.json index 4366bfe4fd..eb93021063 100644 --- a/tests/reference/asr-structs_04-387747b.json +++ b/tests/reference/asr-structs_04-387747b.json @@ -2,7 +2,7 @@ "basename": "asr-structs_04-387747b", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/structs_04.py", - "infile_hash": "87ec2ee343d4931ce152501fa1d36db33279b93a3d1b25bc4463b0da", + "infile_hash": "b57d1dd265f7a7906398ff70e0d5713433a7c3354590d727b3e6306d", "outfile": null, "outfile_hash": null, "stdout": "asr-structs_04-387747b.stdout", diff --git a/tests/reference/asr-structs_05-fa98307.json b/tests/reference/asr-structs_05-fa98307.json index cc6eed4cda..1e6078f275 100644 --- a/tests/reference/asr-structs_05-fa98307.json +++ b/tests/reference/asr-structs_05-fa98307.json @@ -2,11 +2,11 @@ "basename": "asr-structs_05-fa98307", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/structs_05.py", - "infile_hash": "de8579ed973a7a0d0edcc19be54e81a5dece462890e0c0d29586b856", + "infile_hash": "5c9d6218394744f26160b09fb545064c82ef9172e10b474d6be5fca2", "outfile": null, "outfile_hash": null, "stdout": "asr-structs_05-fa98307.stdout", - "stdout_hash": "f5ab0d1da11019083f84699d3b15bc98e76d7689c867ebfd9de2a35e", + "stdout_hash": "69610b3f139c52d0f86667d8e10cf36b002386136e90c8d86705edb9", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-structs_05-fa98307.stdout b/tests/reference/asr-structs_05-fa98307.stdout index 3adf36bfa1..0169952d26 100644 --- a/tests/reference/asr-structs_05-fa98307.stdout +++ b/tests/reference/asr-structs_05-fa98307.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 111 {A: (StructType (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Real 4 []) Source Public Required .false.), b: (Variable 2 b [] Local () () Default (Integer 2 []) Source Public Required .false.), c: (Variable 2 c [] Local () () Default (Integer 1 []) Source Public Required .false.), d: (Variable 2 d [] Local () () Default (Logical 4 []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (Integer 4 []) Source Public Required .false.), y: (Variable 2 y [] Local () () Default (Real 8 []) Source Public Required .false.), z: (Variable 2 z [] Local () () Default (Integer 8 []) Source Public Required .false.)}) A [] [y x z a b c d] Source Public .false. () ()), _lpython_main_program: (Function (SymbolTable 110 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [g] [] [(SubroutineCall 111 g () [] ())] () Public .false. .false.), g: (Function (SymbolTable 6 {y: (Variable 6 y [] Local () () Default (Struct 111 A [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])))]) Source Public Required .false.)}) g (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [verify update_1 update_2 verify] [] [(= (ArrayItem (Var 6 y) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Struct 111 A []) RowMajor ()) (StructTypeConstructor 111 A [((RealConstant 1.100000 (Real 8 []))) ((IntegerConstant 1 (Integer 4 []))) ((Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 [])))) ((Cast (RealConstant 1.100000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 1.100000 (Real 4 [])))) ((Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 1 (Integer 2 [])))) ((Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 1 (Integer 1 [])))) ((LogicalConstant .true. (Logical 4 [])))] (Struct 111 A []) ()) ()) (= (ArrayItem (Var 6 y) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 111 A []) RowMajor ()) (StructTypeConstructor 111 A [((RealConstant 2.200000 (Real 8 []))) ((IntegerConstant 2 (Integer 4 []))) ((Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 [])))) ((Cast (RealConstant 2.200000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.200000 (Real 4 [])))) ((Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 2 (Integer 2 [])))) ((Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 2 (Integer 1 [])))) ((LogicalConstant .true. (Logical 4 [])))] (Struct 111 A []) ()) ()) (SubroutineCall 111 verify () [((Var 6 y)) ((IntegerConstant 1 (Integer 4 []))) ((RealConstant 1.100000 (Real 8 []))) ((IntegerConstant 2 (Integer 4 []))) ((RealConstant 2.200000 (Real 8 [])))] ()) (SubroutineCall 111 update_1 () [((ArrayItem (Var 6 y) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Struct 111 A []) RowMajor ()))] ()) (SubroutineCall 111 update_2 () [((Var 6 y))] ()) (SubroutineCall 111 verify () [((Var 6 y)) ((IntegerConstant 2 (Integer 4 []))) ((RealConstant 1.200000 (Real 8 []))) ((IntegerConstant 3 (Integer 4 []))) ((RealConstant 2.300000 (Real 8 [])))] ())] () Public .false. .false.), update_1: (Function (SymbolTable 4 {s: (Variable 4 s [] In () () Default (Struct 111 A []) Source Public Required .false.)}) update_1 (FunctionType [(Struct 111 A [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 s)] [(= (StructInstanceMember (Var 4 s) 2 x (Integer 4 []) ()) (IntegerConstant 2 (Integer 4 [])) ()) (= (StructInstanceMember (Var 4 s) 2 y (Real 8 []) ()) (RealConstant 1.200000 (Real 8 [])) ()) (= (StructInstanceMember (Var 4 s) 2 z (Integer 8 []) ()) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 []))) ()) (= (StructInstanceMember (Var 4 s) 2 a (Real 4 []) ()) (Cast (RealConstant 1.200000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 1.200000 (Real 4 []))) ()) (= (StructInstanceMember (Var 4 s) 2 b (Integer 2 []) ()) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 2 (Integer 2 []))) ()) (= (StructInstanceMember (Var 4 s) 2 c (Integer 1 []) ()) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 2 (Integer 1 []))) ())] () Public .false. .false.), update_2: (Function (SymbolTable 5 {s: (Variable 5 s [] InOut () () Default (Struct 111 A [(() ())]) Source Public Required .false.)}) update_2 (FunctionType [(Struct 111 A [(() ())])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 5 s)] [(= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 111 A []) RowMajor ()) 2 x (Integer 4 []) ()) (IntegerConstant 3 (Integer 4 [])) ()) (= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 111 A []) RowMajor ()) 2 y (Real 8 []) ()) (RealConstant 2.300000 (Real 8 [])) ()) (= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 111 A []) RowMajor ()) 2 z (Integer 8 []) ()) (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 3 (Integer 8 []))) ()) (= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 111 A []) RowMajor ()) 2 a (Real 4 []) ()) (Cast (RealConstant 2.300000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.300000 (Real 4 []))) ()) (= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 111 A []) RowMajor ()) 2 b (Integer 2 []) ()) (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 3 (Integer 2 []))) ()) (= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 111 A []) RowMajor ()) 2 c (Integer 1 []) ()) (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 3 (Integer 1 []))) ())] () Public .false. .false.), verify: (Function (SymbolTable 3 {abs: (ExternalSymbol 3 abs 8 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 3 abs@__lpython_overloaded_0__abs 8 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_1__abs: (ExternalSymbol 3 abs@__lpython_overloaded_1__abs 8 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), eps: (Variable 3 eps [] Local (RealConstant 0.000000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), s: (Variable 3 s [] InOut () () Default (Struct 111 A [(() ())]) Source Public Required .false.), s0: (Variable 3 s0 [] Local () () Default (Struct 111 A []) Source Public Required .false.), s1: (Variable 3 s1 [] Local () () Default (Struct 111 A []) Source Public Required .false.), x1: (Variable 3 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 3 x2 [] In () () Default (Integer 4 []) Source Public Required .false.), y1: (Variable 3 y1 [] In () () Default (Real 8 []) Source Public Required .false.), y2: (Variable 3 y2 [] In () () Default (Real 8 []) Source Public Required .false.)}) verify (FunctionType [(Struct 111 A [(() ())]) (Integer 4 []) (Real 8 []) (Integer 4 []) (Real 8 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_1__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_1__abs] [(Var 3 s) (Var 3 x1) (Var 3 y1) (Var 3 x2) (Var 3 y2)] [(= (Var 3 eps) (RealConstant 0.000000 (Real 8 [])) ()) (= (Var 3 s0) (ArrayItem (Var 3 s) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Struct 111 A []) RowMajor ()) ()) (Print () [(StructInstanceMember (Var 3 s0) 2 x (Integer 4 []) ()) (StructInstanceMember (Var 3 s0) 2 y (Real 8 []) ()) (StructInstanceMember (Var 3 s0) 2 z (Integer 8 []) ()) (StructInstanceMember (Var 3 s0) 2 a (Real 4 []) ()) (StructInstanceMember (Var 3 s0) 2 b (Integer 2 []) ()) (StructInstanceMember (Var 3 s0) 2 c (Integer 1 []) ()) (StructInstanceMember (Var 3 s0) 2 d (Logical 4 []) ())] () ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s0) 2 x (Integer 4 []) ()) Eq (Var 3 x1) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (StructInstanceMember (Var 3 s0) 2 y (Real 8 []) ()) Sub (Var 3 y1) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 3 eps) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s0) 2 z (Integer 8 []) ()) Eq (Cast (Var 3 x1) IntegerToInteger (Integer 8 []) ()) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_1__abs 3 abs [((RealBinOp (StructInstanceMember (Var 3 s0) 2 a (Real 4 []) ()) Sub (Cast (Var 3 y1) RealToReal (Real 4 []) ()) (Real 4 []) ()))] (Real 4 []) () ()) Lt (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s0) 2 b (Integer 2 []) ()) Eq (Cast (Var 3 x1) IntegerToInteger (Integer 2 []) ()) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s0) 2 c (Integer 1 []) ()) Eq (Cast (Var 3 x1) IntegerToInteger (Integer 1 []) ()) (Logical 4 []) ()) ()) (Assert (StructInstanceMember (Var 3 s0) 2 d (Logical 4 []) ()) ()) (= (Var 3 s1) (ArrayItem (Var 3 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 111 A []) RowMajor ()) ()) (Print () [(StructInstanceMember (Var 3 s1) 2 x (Integer 4 []) ()) (StructInstanceMember (Var 3 s1) 2 y (Real 8 []) ()) (StructInstanceMember (Var 3 s1) 2 z (Integer 8 []) ()) (StructInstanceMember (Var 3 s1) 2 a (Real 4 []) ()) (StructInstanceMember (Var 3 s1) 2 b (Integer 2 []) ()) (StructInstanceMember (Var 3 s1) 2 c (Integer 1 []) ()) (StructInstanceMember (Var 3 s1) 2 d (Logical 4 []) ())] () ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s1) 2 x (Integer 4 []) ()) Eq (Var 3 x2) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (StructInstanceMember (Var 3 s1) 2 y (Real 8 []) ()) Sub (Var 3 y2) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 3 eps) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s1) 2 z (Integer 8 []) ()) Eq (Cast (Var 3 x2) IntegerToInteger (Integer 8 []) ()) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_1__abs 3 abs [((RealBinOp (StructInstanceMember (Var 3 s1) 2 a (Real 4 []) ()) Sub (Cast (Var 3 y2) RealToReal (Real 4 []) ()) (Real 4 []) ()))] (Real 4 []) () ()) Lt (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s1) 2 b (Integer 2 []) ()) Eq (Cast (Var 3 x2) IntegerToInteger (Integer 2 []) ()) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s1) 2 c (Integer 1 []) ()) Eq (Cast (Var 3 x2) IntegerToInteger (Integer 1 []) ()) (Logical 4 []) ()) ()) (Assert (StructInstanceMember (Var 3 s1) 2 d (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 109 {_lpython_main_program: (ExternalSymbol 109 _lpython_main_program 111 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 109 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 112 {A: (StructType (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Real 4 []) Source Public Required .false.), b: (Variable 2 b [] Local () () Default (Integer 2 []) Source Public Required .false.), c: (Variable 2 c [] Local () () Default (Integer 1 []) Source Public Required .false.), d: (Variable 2 d [] Local () () Default (Logical 4 []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (Integer 4 []) Source Public Required .false.), y: (Variable 2 y [] Local () () Default (Real 8 []) Source Public Required .false.), z: (Variable 2 z [] Local () () Default (Integer 8 []) Source Public Required .false.)}) A [] [y x z a b c d] Source Public .false. () ()), _lpython_main_program: (Function (SymbolTable 111 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [g] [] [(SubroutineCall 112 g () [] ())] () Public .false. .false.), g: (Function (SymbolTable 6 {y: (Variable 6 y [] Local () () Default (Struct 112 A [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])))]) Source Public Required .false.)}) g (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [verify update_1 update_2 verify] [] [(= (ArrayItem (Var 6 y) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Struct 112 A []) RowMajor ()) (StructTypeConstructor 112 A [((RealConstant 1.100000 (Real 8 []))) ((IntegerConstant 1 (Integer 4 []))) ((Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 [])))) ((Cast (RealConstant 1.100000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 1.100000 (Real 4 [])))) ((Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 1 (Integer 2 [])))) ((Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 1 (Integer 1 [])))) ((LogicalConstant .true. (Logical 4 [])))] (Struct 112 A []) ()) ()) (= (ArrayItem (Var 6 y) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 112 A []) RowMajor ()) (StructTypeConstructor 112 A [((RealConstant 2.200000 (Real 8 []))) ((IntegerConstant 2 (Integer 4 []))) ((Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 [])))) ((Cast (RealConstant 2.200000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.200000 (Real 4 [])))) ((Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 2 (Integer 2 [])))) ((Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 2 (Integer 1 [])))) ((LogicalConstant .true. (Logical 4 [])))] (Struct 112 A []) ()) ()) (SubroutineCall 112 verify () [((Var 6 y)) ((IntegerConstant 1 (Integer 4 []))) ((RealConstant 1.100000 (Real 8 []))) ((IntegerConstant 2 (Integer 4 []))) ((RealConstant 2.200000 (Real 8 [])))] ()) (SubroutineCall 112 update_1 () [((ArrayItem (Var 6 y) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Struct 112 A []) RowMajor ()))] ()) (SubroutineCall 112 update_2 () [((Var 6 y))] ()) (SubroutineCall 112 verify () [((Var 6 y)) ((IntegerConstant 2 (Integer 4 []))) ((RealConstant 1.200000 (Real 8 []))) ((IntegerConstant 3 (Integer 4 []))) ((RealConstant 2.300000 (Real 8 [])))] ())] () Public .false. .false.), update_1: (Function (SymbolTable 4 {s: (Variable 4 s [] In () () Default (Struct 112 A []) Source Public Required .false.)}) update_1 (FunctionType [(Struct 112 A [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 s)] [(= (StructInstanceMember (Var 4 s) 2 x (Integer 4 []) ()) (IntegerConstant 2 (Integer 4 [])) ()) (= (StructInstanceMember (Var 4 s) 2 y (Real 8 []) ()) (RealConstant 1.200000 (Real 8 [])) ()) (= (StructInstanceMember (Var 4 s) 2 z (Integer 8 []) ()) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 []))) ()) (= (StructInstanceMember (Var 4 s) 2 a (Real 4 []) ()) (Cast (RealConstant 1.200000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 1.200000 (Real 4 []))) ()) (= (StructInstanceMember (Var 4 s) 2 b (Integer 2 []) ()) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 2 (Integer 2 []))) ()) (= (StructInstanceMember (Var 4 s) 2 c (Integer 1 []) ()) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 2 (Integer 1 []))) ())] () Public .false. .false.), update_2: (Function (SymbolTable 5 {s: (Variable 5 s [] InOut () () Default (Struct 112 A [(() ())]) Source Public Required .false.)}) update_2 (FunctionType [(Struct 112 A [(() ())])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 5 s)] [(= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 112 A []) RowMajor ()) 2 x (Integer 4 []) ()) (IntegerConstant 3 (Integer 4 [])) ()) (= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 112 A []) RowMajor ()) 2 y (Real 8 []) ()) (RealConstant 2.300000 (Real 8 [])) ()) (= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 112 A []) RowMajor ()) 2 z (Integer 8 []) ()) (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 3 (Integer 8 []))) ()) (= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 112 A []) RowMajor ()) 2 a (Real 4 []) ()) (Cast (RealConstant 2.300000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.300000 (Real 4 []))) ()) (= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 112 A []) RowMajor ()) 2 b (Integer 2 []) ()) (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 3 (Integer 2 []))) ()) (= (StructInstanceMember (ArrayItem (Var 5 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 112 A []) RowMajor ()) 2 c (Integer 1 []) ()) (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 3 (Integer 1 []))) ())] () Public .false. .false.), verify: (Function (SymbolTable 3 {abs: (ExternalSymbol 3 abs 8 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 3 abs@__lpython_overloaded_0__abs 8 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_1__abs: (ExternalSymbol 3 abs@__lpython_overloaded_1__abs 8 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), eps: (Variable 3 eps [] Local (RealConstant 0.000000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), s: (Variable 3 s [] InOut () () Default (Struct 112 A [(() ())]) Source Public Required .false.), s0: (Variable 3 s0 [] Local () () Default (Struct 112 A []) Source Public Required .false.), s1: (Variable 3 s1 [] Local () () Default (Struct 112 A []) Source Public Required .false.), x1: (Variable 3 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 3 x2 [] In () () Default (Integer 4 []) Source Public Required .false.), y1: (Variable 3 y1 [] In () () Default (Real 8 []) Source Public Required .false.), y2: (Variable 3 y2 [] In () () Default (Real 8 []) Source Public Required .false.)}) verify (FunctionType [(Struct 112 A [(() ())]) (Integer 4 []) (Real 8 []) (Integer 4 []) (Real 8 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_1__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_1__abs] [(Var 3 s) (Var 3 x1) (Var 3 y1) (Var 3 x2) (Var 3 y2)] [(= (Var 3 eps) (RealConstant 0.000000 (Real 8 [])) ()) (= (Var 3 s0) (ArrayItem (Var 3 s) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Struct 112 A []) RowMajor ()) ()) (Print () [(StructInstanceMember (Var 3 s0) 2 x (Integer 4 []) ()) (StructInstanceMember (Var 3 s0) 2 y (Real 8 []) ()) (StructInstanceMember (Var 3 s0) 2 z (Integer 8 []) ()) (StructInstanceMember (Var 3 s0) 2 a (Real 4 []) ()) (StructInstanceMember (Var 3 s0) 2 b (Integer 2 []) ()) (StructInstanceMember (Var 3 s0) 2 c (Integer 1 []) ()) (StructInstanceMember (Var 3 s0) 2 d (Logical 4 []) ())] () ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s0) 2 x (Integer 4 []) ()) Eq (Var 3 x1) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (StructInstanceMember (Var 3 s0) 2 y (Real 8 []) ()) Sub (Var 3 y1) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 3 eps) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s0) 2 z (Integer 8 []) ()) Eq (Cast (Var 3 x1) IntegerToInteger (Integer 8 []) ()) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_1__abs 3 abs [((RealBinOp (StructInstanceMember (Var 3 s0) 2 a (Real 4 []) ()) Sub (Cast (Var 3 y1) RealToReal (Real 4 []) ()) (Real 4 []) ()))] (Real 4 []) () ()) Lt (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s0) 2 b (Integer 2 []) ()) Eq (Cast (Var 3 x1) IntegerToInteger (Integer 2 []) ()) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s0) 2 c (Integer 1 []) ()) Eq (Cast (Var 3 x1) IntegerToInteger (Integer 1 []) ()) (Logical 4 []) ()) ()) (Assert (StructInstanceMember (Var 3 s0) 2 d (Logical 4 []) ()) ()) (= (Var 3 s1) (ArrayItem (Var 3 s) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Struct 112 A []) RowMajor ()) ()) (Print () [(StructInstanceMember (Var 3 s1) 2 x (Integer 4 []) ()) (StructInstanceMember (Var 3 s1) 2 y (Real 8 []) ()) (StructInstanceMember (Var 3 s1) 2 z (Integer 8 []) ()) (StructInstanceMember (Var 3 s1) 2 a (Real 4 []) ()) (StructInstanceMember (Var 3 s1) 2 b (Integer 2 []) ()) (StructInstanceMember (Var 3 s1) 2 c (Integer 1 []) ()) (StructInstanceMember (Var 3 s1) 2 d (Logical 4 []) ())] () ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s1) 2 x (Integer 4 []) ()) Eq (Var 3 x2) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (StructInstanceMember (Var 3 s1) 2 y (Real 8 []) ()) Sub (Var 3 y2) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 3 eps) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s1) 2 z (Integer 8 []) ()) Eq (Cast (Var 3 x2) IntegerToInteger (Integer 8 []) ()) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_1__abs 3 abs [((RealBinOp (StructInstanceMember (Var 3 s1) 2 a (Real 4 []) ()) Sub (Cast (Var 3 y2) RealToReal (Real 4 []) ()) (Real 4 []) ()))] (Real 4 []) () ()) Lt (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s1) 2 b (Integer 2 []) ()) Eq (Cast (Var 3 x2) IntegerToInteger (Integer 2 []) ()) (Logical 4 []) ()) ()) (Assert (IntegerCompare (StructInstanceMember (Var 3 s1) 2 c (Integer 1 []) ()) Eq (Cast (Var 3 x2) IntegerToInteger (Integer 1 []) ()) (Logical 4 []) ()) ()) (Assert (StructInstanceMember (Var 3 s1) 2 d (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 110 {_lpython_main_program: (ExternalSymbol 110 _lpython_main_program 112 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 110 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_annassign_type_mismatch-7dac7be.json b/tests/reference/asr-test_annassign_type_mismatch-7dac7be.json index ed7f8b6351..76dc427cbb 100644 --- a/tests/reference/asr-test_annassign_type_mismatch-7dac7be.json +++ b/tests/reference/asr-test_annassign_type_mismatch-7dac7be.json @@ -2,7 +2,7 @@ "basename": "asr-test_annassign_type_mismatch-7dac7be", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_annassign_type_mismatch.py", - "infile_hash": "5dacc11ffb3bc47fb14e508f454836ce4b196598d1943237cba9c86c", + "infile_hash": "ada18a04b70771754e17e884cfa2ec7bd5651d88850ae034049ec7b9", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.json b/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.json index 97ea09f7e6..c12f4b6535 100644 --- a/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.json +++ b/tests/reference/asr-test_annassign_type_mismatch2-fc883f7.json @@ -2,7 +2,7 @@ "basename": "asr-test_annassign_type_mismatch2-fc883f7", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_annassign_type_mismatch2.py", - "infile_hash": "21f89e1a00c786674c46a2a6bb76d9e9fce37e1d9e11532d5134f68d", + "infile_hash": "40a5b3f96c7d228110c29dbb56eb03390c8741550408295a2e82d7b0", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_append_type_mismatch-030e9c7.json b/tests/reference/asr-test_append_type_mismatch-030e9c7.json index 77ff4228a8..e2edd78183 100644 --- a/tests/reference/asr-test_append_type_mismatch-030e9c7.json +++ b/tests/reference/asr-test_append_type_mismatch-030e9c7.json @@ -2,7 +2,7 @@ "basename": "asr-test_append_type_mismatch-030e9c7", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_append_type_mismatch.py", - "infile_hash": "84088764cad3e1ba5102f3d32f1dd67bfe2e524ee8d9707a18014f83", + "infile_hash": "d545fce3cd501b0c1bbf3f4a705a68a6f66356e4e6f9806dd0c4c9da", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_assign4-a2136e0.json b/tests/reference/asr-test_assign4-a2136e0.json index 908148d57b..e09dfa9249 100644 --- a/tests/reference/asr-test_assign4-a2136e0.json +++ b/tests/reference/asr-test_assign4-a2136e0.json @@ -2,7 +2,7 @@ "basename": "asr-test_assign4-a2136e0", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_assign4.py", - "infile_hash": "fa72583bcde55d59b4dae9b510e6d5245eaf3e5cf28e36108dada27a", + "infile_hash": "9e1e5ce063f88194008db998896cebd0fabe6dcb4cbda27c17de27da", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_assign8-4b26e63.json b/tests/reference/asr-test_assign8-4b26e63.json index db66ba491d..fb449632d9 100644 --- a/tests/reference/asr-test_assign8-4b26e63.json +++ b/tests/reference/asr-test_assign8-4b26e63.json @@ -2,7 +2,7 @@ "basename": "asr-test_assign8-4b26e63", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_assign8.py", - "infile_hash": "ecfb2c34cb368f82914aecf2bd4d9b4d77cc4ae2ef794cebb97a86f4", + "infile_hash": "e7f5e3dd10847a04fc4634a70fb7908f4360a0b71c1f6718f7beeee9", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_binop3-a67201d.json b/tests/reference/asr-test_binop3-a67201d.json index 3679f8ddb4..dc238a62cb 100644 --- a/tests/reference/asr-test_binop3-a67201d.json +++ b/tests/reference/asr-test_binop3-a67201d.json @@ -2,7 +2,7 @@ "basename": "asr-test_binop3-a67201d", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_binop3.py", - "infile_hash": "3e25a0b0167fc2e06dd5797a4f1827108fd2e73d9f61cd95532cdc42", + "infile_hash": "eb43132639edd47d89802b8693880ed350800a88c7c5f94eb93a9b3b", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_bitwise_on_complex-dd9568b.json b/tests/reference/asr-test_bitwise_on_complex-dd9568b.json index dcb0393cd5..7fa9b4be57 100644 --- a/tests/reference/asr-test_bitwise_on_complex-dd9568b.json +++ b/tests/reference/asr-test_bitwise_on_complex-dd9568b.json @@ -2,7 +2,7 @@ "basename": "asr-test_bitwise_on_complex-dd9568b", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_bitwise_on_complex.py", - "infile_hash": "249e435a3abb82895e8fef64c71459470314360fb9d7707dc33df049", + "infile_hash": "48f71d8eae47a14316e9e7aba182a4a03ff8cc05ae661b8e6d41dc85", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_bitwise_on_float-2e09b30.json b/tests/reference/asr-test_bitwise_on_float-2e09b30.json index 26f0fda986..df6b412bad 100644 --- a/tests/reference/asr-test_bitwise_on_float-2e09b30.json +++ b/tests/reference/asr-test_bitwise_on_float-2e09b30.json @@ -2,7 +2,7 @@ "basename": "asr-test_bitwise_on_float-2e09b30", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_bitwise_on_float.py", - "infile_hash": "34c9ba802bdc18b54b616f3689f76af19a2e62a68b7db1e0daed1c58", + "infile_hash": "50e0d4c18ad2fe0db0aedfaa5b3db792db545aeb8ef09a4cb7c4f193", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_bool_binop-f856ef0.json b/tests/reference/asr-test_bool_binop-f856ef0.json index 42f9abd26f..c4cd5ab2fa 100644 --- a/tests/reference/asr-test_bool_binop-f856ef0.json +++ b/tests/reference/asr-test_bool_binop-f856ef0.json @@ -2,11 +2,11 @@ "basename": "asr-test_bool_binop-f856ef0", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_bool_binop.py", - "infile_hash": "3d525985e7428e1f7351528c319a3f0f00168d851ae6f7fa7aa94b28", + "infile_hash": "7c44fe2915b3871b3b85edf3ab129d87a75fa4b9acbb597ae801daf9", "outfile": null, "outfile_hash": null, "stdout": "asr-test_bool_binop-f856ef0.stdout", - "stdout_hash": "7285c9f7b114d9ea52a686e281268560270337683520e1e744e0f83a", + "stdout_hash": "b40c908cf18fdac3780f2c0c4d179955cfbcd497be6a4ec13f7eb8d2", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_bool_binop-f856ef0.stdout b/tests/reference/asr-test_bool_binop-f856ef0.stdout index 4c6c3ee8ac..c9302ff41a 100644 --- a/tests/reference/asr-test_bool_binop-f856ef0.stdout +++ b/tests/reference/asr-test_bool_binop-f856ef0.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 107 {_lpython_main_program: (Function (SymbolTable 106 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [f] [] [(SubroutineCall 107 f () [] ())] () Public .false. .false.), f: (Function (SymbolTable 2 {_lpython_floordiv: (ExternalSymbol 2 _lpython_floordiv 4 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv: (ExternalSymbol 2 _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv 4 __lpython_overloaded_6___lpython_floordiv lpython_builtin [] __lpython_overloaded_6___lpython_floordiv Public), b1: (Variable 2 b1 [] Local (LogicalConstant .false. (Logical 4 [])) () Default (Logical 4 []) Source Public Required .false.), b2: (Variable 2 b2 [] Local (LogicalConstant .true. (Logical 4 [])) () Default (Logical 4 []) Source Public Required .false.), f: (Variable 2 f [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.)}) f (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_lpython_floordiv@__lpython_overloaded_6___lpython_floordiv _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv] [] [(= (Var 2 i) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Add (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Sub (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerBinOp (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Mul (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (Cast (FunctionCall 2 _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv 2 _lpython_floordiv [((LogicalConstant .true. (Logical 4 []))) ((LogicalConstant .true. (Logical 4 [])))] (Logical 4 []) (LogicalConstant .true. (Logical 1 [])) ()) LogicalToInteger (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (Cast (FunctionCall 2 _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv 2 _lpython_floordiv [((LogicalConstant .false. (Logical 4 []))) ((LogicalConstant .true. (Logical 4 [])))] (Logical 4 []) (LogicalConstant .false. (Logical 1 [])) ()) LogicalToInteger (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Pow (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 b1) (LogicalConstant .false. (Logical 4 [])) ()) (= (Var 2 b2) (LogicalConstant .true. (Logical 4 [])) ()) (= (Var 2 f) (RealBinOp (Cast (Var 2 b1) LogicalToReal (Real 8 []) ()) Div (Cast (Var 2 b2) LogicalToReal (Real 8 []) ()) (Real 8 []) ()) ()) (Assert (RealCompare (Var 2 f) Eq (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {_lpython_main_program: (ExternalSymbol 105 _lpython_main_program 107 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 105 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 108 {_lpython_main_program: (Function (SymbolTable 107 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [f] [] [(SubroutineCall 108 f () [] ())] () Public .false. .false.), f: (Function (SymbolTable 2 {_lpython_floordiv: (ExternalSymbol 2 _lpython_floordiv 4 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv: (ExternalSymbol 2 _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv 4 __lpython_overloaded_6___lpython_floordiv lpython_builtin [] __lpython_overloaded_6___lpython_floordiv Public), b1: (Variable 2 b1 [] Local (LogicalConstant .false. (Logical 4 [])) () Default (Logical 4 []) Source Public Required .false.), b2: (Variable 2 b2 [] Local (LogicalConstant .true. (Logical 4 [])) () Default (Logical 4 []) Source Public Required .false.), f: (Variable 2 f [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.)}) f (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_lpython_floordiv@__lpython_overloaded_6___lpython_floordiv _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv] [] [(= (Var 2 i) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Add (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Sub (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerBinOp (Cast (LogicalConstant .false. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Mul (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (Cast (FunctionCall 2 _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv 2 _lpython_floordiv [((LogicalConstant .true. (Logical 4 []))) ((LogicalConstant .true. (Logical 4 [])))] (Logical 4 []) (LogicalConstant .true. (Logical 1 [])) ()) LogicalToInteger (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (Cast (FunctionCall 2 _lpython_floordiv@__lpython_overloaded_6___lpython_floordiv 2 _lpython_floordiv [((LogicalConstant .false. (Logical 4 []))) ((LogicalConstant .true. (Logical 4 [])))] (Logical 4 []) (LogicalConstant .false. (Logical 1 [])) ()) LogicalToInteger (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerBinOp (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) Pow (Cast (LogicalConstant .true. (Logical 4 [])) LogicalToInteger (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (IntegerCompare (Var 2 i) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 b1) (LogicalConstant .false. (Logical 4 [])) ()) (= (Var 2 b2) (LogicalConstant .true. (Logical 4 [])) ()) (= (Var 2 f) (RealBinOp (Cast (Var 2 b1) LogicalToReal (Real 8 []) ()) Div (Cast (Var 2 b2) LogicalToReal (Real 8 []) ()) (Real 8 []) ()) ()) (Assert (RealCompare (Var 2 f) Eq (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {_lpython_main_program: (ExternalSymbol 106 _lpython_main_program 108 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 106 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_builtin-aa64615.json b/tests/reference/asr-test_builtin-aa64615.json index b6edb86db8..b16cabcc70 100644 --- a/tests/reference/asr-test_builtin-aa64615.json +++ b/tests/reference/asr-test_builtin-aa64615.json @@ -2,7 +2,7 @@ "basename": "asr-test_builtin-aa64615", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin.py", - "infile_hash": "b5f6788bd61ba05793c631b7c610dbc39ca170ec35ec396784bc49ae", + "infile_hash": "f3376f18b9927914f7cb97578b40f14d570a48c64648c32a80daef6a", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin-aa64615.stdout", diff --git a/tests/reference/asr-test_builtin_abs-c74d2c9.json b/tests/reference/asr-test_builtin_abs-c74d2c9.json index ef20464dd3..fa13e30d1a 100644 --- a/tests/reference/asr-test_builtin_abs-c74d2c9.json +++ b/tests/reference/asr-test_builtin_abs-c74d2c9.json @@ -2,11 +2,11 @@ "basename": "asr-test_builtin_abs-c74d2c9", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin_abs.py", - "infile_hash": "bc2d0fcc50f2824b0c84083216964bee70511f6fdad7d3bab2769682", + "infile_hash": "d501e6d7e34f5fb4e8e21f107b1183db6bb531a41a4f551fe1c7041d", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin_abs-c74d2c9.stdout", - "stdout_hash": "c7ab44e1cd28aeb143bc3faa66ed98113b1fbb46d4da44c1b2b39241", + "stdout_hash": "81ec9470dd54df9b34c4e9f5dab3604356850b0702d945992990be9e", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_builtin_abs-c74d2c9.stdout b/tests/reference/asr-test_builtin_abs-c74d2c9.stdout index 758f247c6b..5a977772e9 100644 --- a/tests/reference/asr-test_builtin_abs-c74d2c9.stdout +++ b/tests/reference/asr-test_builtin_abs-c74d2c9.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 107 {_lpython_main_program: (Function (SymbolTable 106 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_abs] [] [(SubroutineCall 107 test_abs () [] ())] () Public .false. .false.), test_abs: (Function (SymbolTable 2 {abs: (ExternalSymbol 2 abs 4 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 2 abs@__lpython_overloaded_0__abs 4 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_1__abs: (ExternalSymbol 2 abs@__lpython_overloaded_1__abs 4 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), abs@__lpython_overloaded_2__abs: (ExternalSymbol 2 abs@__lpython_overloaded_2__abs 4 __lpython_overloaded_2__abs lpython_builtin [] __lpython_overloaded_2__abs Public), abs@__lpython_overloaded_3__abs: (ExternalSymbol 2 abs@__lpython_overloaded_3__abs 4 __lpython_overloaded_3__abs lpython_builtin [] __lpython_overloaded_3__abs Public), abs@__lpython_overloaded_4__abs: (ExternalSymbol 2 abs@__lpython_overloaded_4__abs 4 __lpython_overloaded_4__abs lpython_builtin [] __lpython_overloaded_4__abs Public), abs@__lpython_overloaded_5__abs: (ExternalSymbol 2 abs@__lpython_overloaded_5__abs 4 __lpython_overloaded_5__abs lpython_builtin [] __lpython_overloaded_5__abs Public), abs@__lpython_overloaded_6__abs: (ExternalSymbol 2 abs@__lpython_overloaded_6__abs 4 __lpython_overloaded_6__abs lpython_builtin [] __lpython_overloaded_6__abs Public), b: (Variable 2 b [] Local () () Default (Logical 4 []) Source Public Required .false.), i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.), i2: (Variable 2 i2 [] Local () () Default (Integer 8 []) Source Public Required .false.), i3: (Variable 2 i3 [] Local () () Default (Integer 1 []) Source Public Required .false.), i4: (Variable 2 i4 [] Local () () Default (Integer 2 []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (Real 8 []) Source Public Required .false.), x2: (Variable 2 x2 [] Local () () Default (Real 4 []) Source Public Required .false.)}) test_abs (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_1__abs abs@__lpython_overloaded_4__abs abs@__lpython_overloaded_4__abs abs@__lpython_overloaded_5__abs abs@__lpython_overloaded_2__abs abs@__lpython_overloaded_3__abs abs@__lpython_overloaded_6__abs abs@__lpython_overloaded_6__abs] [] [(= (Var 2 x) (RealConstant 5.500000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((Var 2 x))] (Real 8 []) () ()) Eq (RealConstant 5.500000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 2 x) (RealUnaryMinus (RealConstant 5.500000 (Real 8 [])) (Real 8 []) (RealConstant -5.500000 (Real 8 []))) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((Var 2 x))] (Real 8 []) () ()) Eq (RealConstant 5.500000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealConstant 5.500000 (Real 8 [])))] (Real 8 []) (RealConstant 5.500000 (Real 8 [])) ()) Eq (RealConstant 5.500000 (Real 8 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealUnaryMinus (RealConstant 5.500000 (Real 8 [])) (Real 8 []) (RealConstant -5.500000 (Real 8 []))))] (Real 8 []) (RealConstant 5.500000 (Real 8 [])) ()) Eq (RealConstant 5.500000 (Real 8 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 x2) (RealUnaryMinus (Cast (RealConstant 5.500000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 5.500000 (Real 4 []))) (Real 4 []) (RealConstant -5.500000 (Real 4 []))) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_1__abs 2 abs [((Var 2 x2))] (Real 4 []) () ()) Eq (Cast (RealConstant 5.500000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 5.500000 (Real 4 []))) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_4__abs 2 abs [((Var 2 i))] (Integer 4 []) () ()) Eq (IntegerConstant 5 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_4__abs 2 abs [((IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 i2) (IntegerUnaryMinus (Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 []))) (Integer 8 []) (IntegerConstant -6 (Integer 8 []))) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_5__abs 2 abs [((Var 2 i2))] (Integer 8 []) () ()) Eq (Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 []))) (Logical 4 []) ()) ()) (= (Var 2 i3) (IntegerUnaryMinus (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 7 (Integer 1 []))) (Integer 1 []) (IntegerConstant -7 (Integer 1 []))) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_2__abs 2 abs [((Var 2 i3))] (Integer 1 []) () ()) Eq (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 7 (Integer 1 []))) (Logical 4 []) ()) ()) (= (Var 2 i4) (IntegerUnaryMinus (Cast (IntegerConstant 8 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 8 (Integer 2 []))) (Integer 2 []) (IntegerConstant -8 (Integer 2 []))) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_3__abs 2 abs [((Var 2 i4))] (Integer 2 []) () ()) Eq (Cast (IntegerConstant 8 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 8 (Integer 2 []))) (Logical 4 []) ()) ()) (= (Var 2 b) (LogicalConstant .true. (Logical 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_6__abs 2 abs [((Var 2 b))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 b) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_6__abs 2 abs [((Var 2 b))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {_lpython_main_program: (ExternalSymbol 105 _lpython_main_program 107 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 105 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 108 {_lpython_main_program: (Function (SymbolTable 107 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_abs] [] [(SubroutineCall 108 test_abs () [] ())] () Public .false. .false.), test_abs: (Function (SymbolTable 2 {abs: (ExternalSymbol 2 abs 4 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 2 abs@__lpython_overloaded_0__abs 4 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_1__abs: (ExternalSymbol 2 abs@__lpython_overloaded_1__abs 4 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), abs@__lpython_overloaded_2__abs: (ExternalSymbol 2 abs@__lpython_overloaded_2__abs 4 __lpython_overloaded_2__abs lpython_builtin [] __lpython_overloaded_2__abs Public), abs@__lpython_overloaded_3__abs: (ExternalSymbol 2 abs@__lpython_overloaded_3__abs 4 __lpython_overloaded_3__abs lpython_builtin [] __lpython_overloaded_3__abs Public), abs@__lpython_overloaded_4__abs: (ExternalSymbol 2 abs@__lpython_overloaded_4__abs 4 __lpython_overloaded_4__abs lpython_builtin [] __lpython_overloaded_4__abs Public), abs@__lpython_overloaded_5__abs: (ExternalSymbol 2 abs@__lpython_overloaded_5__abs 4 __lpython_overloaded_5__abs lpython_builtin [] __lpython_overloaded_5__abs Public), abs@__lpython_overloaded_6__abs: (ExternalSymbol 2 abs@__lpython_overloaded_6__abs 4 __lpython_overloaded_6__abs lpython_builtin [] __lpython_overloaded_6__abs Public), b: (Variable 2 b [] Local () () Default (Logical 4 []) Source Public Required .false.), i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.), i2: (Variable 2 i2 [] Local () () Default (Integer 8 []) Source Public Required .false.), i3: (Variable 2 i3 [] Local () () Default (Integer 1 []) Source Public Required .false.), i4: (Variable 2 i4 [] Local () () Default (Integer 2 []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (Real 8 []) Source Public Required .false.), x2: (Variable 2 x2 [] Local () () Default (Real 4 []) Source Public Required .false.)}) test_abs (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_1__abs abs@__lpython_overloaded_4__abs abs@__lpython_overloaded_4__abs abs@__lpython_overloaded_5__abs abs@__lpython_overloaded_2__abs abs@__lpython_overloaded_3__abs abs@__lpython_overloaded_6__abs abs@__lpython_overloaded_6__abs] [] [(= (Var 2 x) (RealConstant 5.500000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((Var 2 x))] (Real 8 []) () ()) Eq (RealConstant 5.500000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 2 x) (RealUnaryMinus (RealConstant 5.500000 (Real 8 [])) (Real 8 []) (RealConstant -5.500000 (Real 8 []))) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((Var 2 x))] (Real 8 []) () ()) Eq (RealConstant 5.500000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealConstant 5.500000 (Real 8 [])))] (Real 8 []) (RealConstant 5.500000 (Real 8 [])) ()) Eq (RealConstant 5.500000 (Real 8 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealUnaryMinus (RealConstant 5.500000 (Real 8 [])) (Real 8 []) (RealConstant -5.500000 (Real 8 []))))] (Real 8 []) (RealConstant 5.500000 (Real 8 [])) ()) Eq (RealConstant 5.500000 (Real 8 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 x2) (RealUnaryMinus (Cast (RealConstant 5.500000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 5.500000 (Real 4 []))) (Real 4 []) (RealConstant -5.500000 (Real 4 []))) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_1__abs 2 abs [((Var 2 x2))] (Real 4 []) () ()) Eq (Cast (RealConstant 5.500000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 5.500000 (Real 4 []))) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_4__abs 2 abs [((Var 2 i))] (Integer 4 []) () ()) Eq (IntegerConstant 5 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_4__abs 2 abs [((IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 i2) (IntegerUnaryMinus (Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 []))) (Integer 8 []) (IntegerConstant -6 (Integer 8 []))) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_5__abs 2 abs [((Var 2 i2))] (Integer 8 []) () ()) Eq (Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 []))) (Logical 4 []) ()) ()) (= (Var 2 i3) (IntegerUnaryMinus (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 7 (Integer 1 []))) (Integer 1 []) (IntegerConstant -7 (Integer 1 []))) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_2__abs 2 abs [((Var 2 i3))] (Integer 1 []) () ()) Eq (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 7 (Integer 1 []))) (Logical 4 []) ()) ()) (= (Var 2 i4) (IntegerUnaryMinus (Cast (IntegerConstant 8 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 8 (Integer 2 []))) (Integer 2 []) (IntegerConstant -8 (Integer 2 []))) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_3__abs 2 abs [((Var 2 i4))] (Integer 2 []) () ()) Eq (Cast (IntegerConstant 8 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 8 (Integer 2 []))) (Logical 4 []) ()) ()) (= (Var 2 b) (LogicalConstant .true. (Logical 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_6__abs 2 abs [((Var 2 b))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 b) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 abs@__lpython_overloaded_6__abs 2 abs [((Var 2 b))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {_lpython_main_program: (ExternalSymbol 106 _lpython_main_program 108 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 106 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_builtin_bin-52ba9fa.json b/tests/reference/asr-test_builtin_bin-52ba9fa.json index 1d0d973066..063205dfbf 100644 --- a/tests/reference/asr-test_builtin_bin-52ba9fa.json +++ b/tests/reference/asr-test_builtin_bin-52ba9fa.json @@ -2,11 +2,11 @@ "basename": "asr-test_builtin_bin-52ba9fa", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin_bin.py", - "infile_hash": "202a938e4c8c64b8c906fb99e1c68e0df609ff2e445cb9c90e415a82", + "infile_hash": "09e09eacf697c95f358b75f6491b766781bae9a5f856c2ad5848e824", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin_bin-52ba9fa.stdout", - "stdout_hash": "1889226a64d2daf40ea512192f6300f0c5ebfa393b8cb18f32c01e7f", + "stdout_hash": "f2f8c62859d7a152b0c132b8361e1d56a2178290663590435451fbd7", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_builtin_bin-52ba9fa.stdout b/tests/reference/asr-test_builtin_bin-52ba9fa.stdout index 3831794ddb..f90a623767 100644 --- a/tests/reference/asr-test_builtin_bin-52ba9fa.stdout +++ b/tests/reference/asr-test_builtin_bin-52ba9fa.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 107 {_lpython_main_program: (Function (SymbolTable 106 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_bin] [] [(SubroutineCall 107 test_bin () [] ())] () Public .false. .false.), test_bin: (Function (SymbolTable 2 {bin: (ExternalSymbol 2 bin 4 bin lpython_builtin [] bin Private), i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.)}) test_bin (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [bin bin bin bin bin] [] [(= (Var 2 i) (IntegerConstant 5 (Integer 4 [])) ()) (Assert (StringCompare (FunctionCall 2 bin () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "0b101" (Character 1 5 () [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerConstant 64 (Integer 4 [])) ()) (Assert (StringCompare (FunctionCall 2 bin () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "0b1000000" (Character 1 9 () [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))) ()) (Assert (StringCompare (FunctionCall 2 bin () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "-0b1000010110" (Character 1 13 () [])) (Logical 4 []) ()) ()) (Assert (StringCompare (FunctionCall 2 bin () [((IntegerConstant 64 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0b1000000" (Character 1 9 () [])) ()) Eq (StringConstant "0b1000000" (Character 1 9 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (StringCompare (FunctionCall 2 bin () [((IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0b1000010110" (Character 1 13 () [])) ()) Eq (StringConstant "-0b1000010110" (Character 1 13 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {_lpython_main_program: (ExternalSymbol 105 _lpython_main_program 107 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 105 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 108 {_lpython_main_program: (Function (SymbolTable 107 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_bin] [] [(SubroutineCall 108 test_bin () [] ())] () Public .false. .false.), test_bin: (Function (SymbolTable 2 {bin: (ExternalSymbol 2 bin 4 bin lpython_builtin [] bin Private), i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.)}) test_bin (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [bin bin bin bin bin] [] [(= (Var 2 i) (IntegerConstant 5 (Integer 4 [])) ()) (Assert (StringCompare (FunctionCall 2 bin () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "0b101" (Character 1 5 () [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerConstant 64 (Integer 4 [])) ()) (Assert (StringCompare (FunctionCall 2 bin () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "0b1000000" (Character 1 9 () [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))) ()) (Assert (StringCompare (FunctionCall 2 bin () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "-0b1000010110" (Character 1 13 () [])) (Logical 4 []) ()) ()) (Assert (StringCompare (FunctionCall 2 bin () [((IntegerConstant 64 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0b1000000" (Character 1 9 () [])) ()) Eq (StringConstant "0b1000000" (Character 1 9 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (StringCompare (FunctionCall 2 bin () [((IntegerUnaryMinus (IntegerConstant 534 (Integer 4 [])) (Integer 4 []) (IntegerConstant -534 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0b1000010110" (Character 1 13 () [])) ()) Eq (StringConstant "-0b1000010110" (Character 1 13 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {_lpython_main_program: (ExternalSymbol 106 _lpython_main_program 108 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 106 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_builtin_bool-330223a.json b/tests/reference/asr-test_builtin_bool-330223a.json index 67bb02ae87..f5caf13377 100644 --- a/tests/reference/asr-test_builtin_bool-330223a.json +++ b/tests/reference/asr-test_builtin_bool-330223a.json @@ -2,11 +2,11 @@ "basename": "asr-test_builtin_bool-330223a", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin_bool.py", - "infile_hash": "ca61f2532fc30a67de694bef9bc8819015a3b3c1386727b0b9062620", + "infile_hash": "3a740faba0e36b55c179ab0fa08486dc3080332e79c8e38b8f25b4a4", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin_bool-330223a.stdout", - "stdout_hash": "00d4450d67e2f07ccb5ef20fd39bf27738d674c59ef24d3fb52b9032", + "stdout_hash": "5312bd9641a2b860da70af76e737aaa3c24c866eaae2e5baaa3fc049", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_builtin_bool-330223a.stdout b/tests/reference/asr-test_builtin_bool-330223a.stdout index a4dcec3997..99fa916f61 100644 --- a/tests/reference/asr-test_builtin_bool-330223a.stdout +++ b/tests/reference/asr-test_builtin_bool-330223a.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 107 {_lpython_main_program: (Function (SymbolTable 106 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_bool] [] [(SubroutineCall 107 test_bool () [] ())] () Public .false. .false.), test_bool: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Integer 4 []) Source Public Required .false.), a2: (Variable 2 a2 [] Local () () Default (Integer 8 []) Source Public Required .false.), a3: (Variable 2 a3 [] Local () () Default (Integer 1 []) Source Public Required .false.), a4: (Variable 2 a4 [] Local () () Default (Integer 2 []) Source Public Required .false.), b: (Variable 2 b [] Local () () Default (Logical 4 []) Source Public Required .false.), c: (Variable 2 c [] Local () () Default (Complex 4 []) Source Public Required .false.), c1: (Variable 2 c1 [] Local () () Default (Complex 8 []) Source Public Required .false.), complex: (ExternalSymbol 2 complex 4 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_13__complex: (ExternalSymbol 2 complex@__lpython_overloaded_13__complex 4 __lpython_overloaded_13__complex lpython_builtin [] __lpython_overloaded_13__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 4 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public), f: (Variable 2 f [] Local () () Default (Real 8 []) Source Public Required .false.), f2: (Variable 2 f2 [] Local () () Default (Real 4 []) Source Public Required .false.), s: (Variable 2 s [] Local () () Default (Character 1 -2 () []) Source Public Required .false.)}) test_bool (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_9__complex complex@__lpython_overloaded_9__complex complex@__lpython_overloaded_13__complex complex@__lpython_overloaded_9__complex] [] [(= (Var 2 a) (IntegerConstant 34 (Integer 4 [])) ()) (Assert (Cast (Var 2 a) IntegerToLogical (Logical 4 []) ()) ()) (= (Var 2 a) (IntegerConstant 0 (Integer 4 [])) ()) (Assert (LogicalNot (Cast (Var 2 a) IntegerToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (Assert (Cast (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) IntegerToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (LogicalNot (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a2) (Cast (IntegerConstant 34 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 34 (Integer 8 []))) ()) (Assert (Cast (Var 2 a2) IntegerToLogical (Logical 4 []) ()) ()) (= (Var 2 a3) (Cast (IntegerConstant 34 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 34 (Integer 1 []))) ()) (Assert (Cast (Var 2 a3) IntegerToLogical (Logical 4 []) ()) ()) (= (Var 2 a4) (IntegerUnaryMinus (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 1 (Integer 2 []))) (Integer 2 []) (IntegerConstant -1 (Integer 2 []))) ()) (Assert (Cast (Var 2 a4) IntegerToLogical (Logical 4 []) ()) ()) (= (Var 2 f) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (LogicalNot (Cast (Var 2 f) RealToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (= (Var 2 f) (RealConstant 1.000000 (Real 8 [])) ()) (Assert (Cast (Var 2 f) RealToLogical (Logical 4 []) ()) ()) (Assert (Cast (RealConstant 56.786866 (Real 8 [])) RealToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (LogicalNot (Cast (RealConstant 0.000000 (Real 8 [])) RealToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 f2) (RealUnaryMinus (Cast (RealConstant 235.600000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 235.600000 (Real 4 []))) (Real 4 []) (RealConstant -235.600000 (Real 4 []))) ()) (Assert (Cast (Var 2 f2) RealToLogical (Logical 4 []) ()) ()) (= (Var 2 f2) (Cast (RealConstant 0.000053 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000053 (Real 4 []))) ()) (Assert (Cast (Var 2 f2) RealToLogical (Logical 4 []) ()) ()) (= (Var 2 s) (StringConstant "" (Character 1 0 () [])) ()) (Assert (LogicalNot (Cast (Var 2 s) CharacterToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (= (Var 2 s) (StringConstant "str" (Character 1 3 () [])) ()) (Assert (Cast (Var 2 s) CharacterToLogical (Logical 4 []) ()) ()) (Assert (LogicalNot (Cast (StringConstant "" (Character 1 0 () [])) CharacterToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (Cast (StringConstant "str" (Character 1 3 () [])) CharacterToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 b) (LogicalConstant .true. (Logical 4 [])) ()) (Assert (Var 2 b) ()) (= (Var 2 b) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (LogicalNot (Var 2 b) (Logical 4 []) ()) ()) (Assert (LogicalConstant .true. (Logical 4 [])) ()) (Assert (LogicalNot (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 c) (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 2 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 2.000000 3.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 2.000000 3.000000 (Complex 4 []))) ()) (Assert (Cast (Var 2 c) ComplexToLogical (Logical 4 []) ()) ()) (= (Var 2 c) (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 0 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 0.000000 0.000000 (Complex 4 []))) ()) (Assert (LogicalNot (Cast (Var 2 c) ComplexToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (Assert (LogicalNot (Cast (ComplexBinOp (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 0.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 []))) ComplexToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 c1) (FunctionCall 2 complex@__lpython_overloaded_13__complex 2 complex [((IntegerConstant 0 (Integer 4 []))) ((RealConstant 0.100202 (Real 8 [])))] (Complex 8 []) (ComplexConstant 0.000000 0.100202 (Complex 8 [])) ()) ()) (Assert (Cast (Var 2 c1) ComplexToLogical (Logical 4 []) ()) ()) (Assert (LogicalNot (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 0 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 [])) ()) ComplexToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (Cast (ComplexBinOp (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 3.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 5.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 3.000000 5.000000 (Complex 8 []))) ComplexToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {_lpython_main_program: (ExternalSymbol 105 _lpython_main_program 107 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 105 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 108 {_lpython_main_program: (Function (SymbolTable 107 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_bool] [] [(SubroutineCall 108 test_bool () [] ())] () Public .false. .false.), test_bool: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Integer 4 []) Source Public Required .false.), a2: (Variable 2 a2 [] Local () () Default (Integer 8 []) Source Public Required .false.), a3: (Variable 2 a3 [] Local () () Default (Integer 1 []) Source Public Required .false.), a4: (Variable 2 a4 [] Local () () Default (Integer 2 []) Source Public Required .false.), b: (Variable 2 b [] Local () () Default (Logical 4 []) Source Public Required .false.), c: (Variable 2 c [] Local () () Default (Complex 4 []) Source Public Required .false.), c1: (Variable 2 c1 [] Local () () Default (Complex 8 []) Source Public Required .false.), complex: (ExternalSymbol 2 complex 4 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_13__complex: (ExternalSymbol 2 complex@__lpython_overloaded_13__complex 4 __lpython_overloaded_13__complex lpython_builtin [] __lpython_overloaded_13__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 4 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public), f: (Variable 2 f [] Local () () Default (Real 8 []) Source Public Required .false.), f2: (Variable 2 f2 [] Local () () Default (Real 4 []) Source Public Required .false.), s: (Variable 2 s [] Local () () Default (Character 1 -2 () []) Source Public Required .false.)}) test_bool (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_9__complex complex@__lpython_overloaded_9__complex complex@__lpython_overloaded_13__complex complex@__lpython_overloaded_9__complex] [] [(= (Var 2 a) (IntegerConstant 34 (Integer 4 [])) ()) (Assert (Cast (Var 2 a) IntegerToLogical (Logical 4 []) ()) ()) (= (Var 2 a) (IntegerConstant 0 (Integer 4 [])) ()) (Assert (LogicalNot (Cast (Var 2 a) IntegerToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (Assert (Cast (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) IntegerToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (LogicalNot (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a2) (Cast (IntegerConstant 34 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 34 (Integer 8 []))) ()) (Assert (Cast (Var 2 a2) IntegerToLogical (Logical 4 []) ()) ()) (= (Var 2 a3) (Cast (IntegerConstant 34 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 34 (Integer 1 []))) ()) (Assert (Cast (Var 2 a3) IntegerToLogical (Logical 4 []) ()) ()) (= (Var 2 a4) (IntegerUnaryMinus (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 2 []) (IntegerConstant 1 (Integer 2 []))) (Integer 2 []) (IntegerConstant -1 (Integer 2 []))) ()) (Assert (Cast (Var 2 a4) IntegerToLogical (Logical 4 []) ()) ()) (= (Var 2 f) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (LogicalNot (Cast (Var 2 f) RealToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (= (Var 2 f) (RealConstant 1.000000 (Real 8 [])) ()) (Assert (Cast (Var 2 f) RealToLogical (Logical 4 []) ()) ()) (Assert (Cast (RealConstant 56.786866 (Real 8 [])) RealToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (LogicalNot (Cast (RealConstant 0.000000 (Real 8 [])) RealToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 f2) (RealUnaryMinus (Cast (RealConstant 235.600000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 235.600000 (Real 4 []))) (Real 4 []) (RealConstant -235.600000 (Real 4 []))) ()) (Assert (Cast (Var 2 f2) RealToLogical (Logical 4 []) ()) ()) (= (Var 2 f2) (Cast (RealConstant 0.000053 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000053 (Real 4 []))) ()) (Assert (Cast (Var 2 f2) RealToLogical (Logical 4 []) ()) ()) (= (Var 2 s) (StringConstant "" (Character 1 0 () [])) ()) (Assert (LogicalNot (Cast (Var 2 s) CharacterToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (= (Var 2 s) (StringConstant "str" (Character 1 3 () [])) ()) (Assert (Cast (Var 2 s) CharacterToLogical (Logical 4 []) ()) ()) (Assert (LogicalNot (Cast (StringConstant "" (Character 1 0 () [])) CharacterToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (Cast (StringConstant "str" (Character 1 3 () [])) CharacterToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 b) (LogicalConstant .true. (Logical 4 [])) ()) (Assert (Var 2 b) ()) (= (Var 2 b) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (LogicalNot (Var 2 b) (Logical 4 []) ()) ()) (Assert (LogicalConstant .true. (Logical 4 [])) ()) (Assert (LogicalNot (LogicalConstant .false. (Logical 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 c) (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 2 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 2.000000 3.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 2.000000 3.000000 (Complex 4 []))) ()) (Assert (Cast (Var 2 c) ComplexToLogical (Logical 4 []) ()) ()) (= (Var 2 c) (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 0 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 0.000000 0.000000 (Complex 4 []))) ()) (Assert (LogicalNot (Cast (Var 2 c) ComplexToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (Assert (LogicalNot (Cast (ComplexBinOp (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 0.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 []))) ComplexToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 c1) (FunctionCall 2 complex@__lpython_overloaded_13__complex 2 complex [((IntegerConstant 0 (Integer 4 []))) ((RealConstant 0.100202 (Real 8 [])))] (Complex 8 []) (ComplexConstant 0.000000 0.100202 (Complex 8 [])) ()) ()) (Assert (Cast (Var 2 c1) ComplexToLogical (Logical 4 []) ()) ()) (Assert (LogicalNot (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 0 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 [])) ()) ComplexToLogical (Logical 4 []) (LogicalConstant .false. (Logical 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (Cast (ComplexBinOp (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 3.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 5.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 3.000000 5.000000 (Complex 8 []))) ComplexToLogical (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {_lpython_main_program: (ExternalSymbol 106 _lpython_main_program 108 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 106 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_builtin_float-20601dd.json b/tests/reference/asr-test_builtin_float-20601dd.json index fb1eee620e..f0f9addeaa 100644 --- a/tests/reference/asr-test_builtin_float-20601dd.json +++ b/tests/reference/asr-test_builtin_float-20601dd.json @@ -2,7 +2,7 @@ "basename": "asr-test_builtin_float-20601dd", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin_float.py", - "infile_hash": "0720415fb2124848dbdef8bc7dd56e6e4ffcdba732f76e91511efb43", + "infile_hash": "de536c0af182f8e43780193627c24f1085522e86d37316e13d337196", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin_float-20601dd.stdout", diff --git a/tests/reference/asr-test_builtin_hex-64bd268.json b/tests/reference/asr-test_builtin_hex-64bd268.json index 5ee4845947..9111c5eb61 100644 --- a/tests/reference/asr-test_builtin_hex-64bd268.json +++ b/tests/reference/asr-test_builtin_hex-64bd268.json @@ -2,11 +2,11 @@ "basename": "asr-test_builtin_hex-64bd268", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin_hex.py", - "infile_hash": "2b694d04794b3ca3ef013c9aa8e25beeb639a8261164904d0f8331bf", + "infile_hash": "e639f0251477f50376536d317630e3c026354859576a5f1b7b10bd7d", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin_hex-64bd268.stdout", - "stdout_hash": "39a95f32010769dc67617463d06932447b47d0d2ae230690f5542966", + "stdout_hash": "47be17206637efbb3cfb951bc826f583ce2c135fb223aaf844bc5d23", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_builtin_hex-64bd268.stdout b/tests/reference/asr-test_builtin_hex-64bd268.stdout index 7063f1021a..8498578a88 100644 --- a/tests/reference/asr-test_builtin_hex-64bd268.stdout +++ b/tests/reference/asr-test_builtin_hex-64bd268.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 107 {_lpython_main_program: (Function (SymbolTable 106 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_hex] [] [(SubroutineCall 107 test_hex () [] ())] () Public .false. .false.), test_hex: (Function (SymbolTable 2 {hex: (ExternalSymbol 2 hex 4 hex lpython_builtin [] hex Private), i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.)}) test_hex (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [hex hex hex hex] [] [(= (Var 2 i) (IntegerConstant 34 (Integer 4 [])) ()) (Assert (StringCompare (FunctionCall 2 hex () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "0x22" (Character 1 4 () [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerUnaryMinus (IntegerConstant 4235 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4235 (Integer 4 []))) ()) (Assert (StringCompare (FunctionCall 2 hex () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "-0x108b" (Character 1 7 () [])) (Logical 4 []) ()) ()) (Assert (StringCompare (FunctionCall 2 hex () [((IntegerConstant 34 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0x22" (Character 1 4 () [])) ()) Eq (StringConstant "0x22" (Character 1 4 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (StringCompare (FunctionCall 2 hex () [((IntegerUnaryMinus (IntegerConstant 4235 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4235 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0x108b" (Character 1 7 () [])) ()) Eq (StringConstant "-0x108b" (Character 1 7 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {_lpython_main_program: (ExternalSymbol 105 _lpython_main_program 107 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 105 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 108 {_lpython_main_program: (Function (SymbolTable 107 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_hex] [] [(SubroutineCall 108 test_hex () [] ())] () Public .false. .false.), test_hex: (Function (SymbolTable 2 {hex: (ExternalSymbol 2 hex 4 hex lpython_builtin [] hex Private), i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.)}) test_hex (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [hex hex hex hex] [] [(= (Var 2 i) (IntegerConstant 34 (Integer 4 [])) ()) (Assert (StringCompare (FunctionCall 2 hex () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "0x22" (Character 1 4 () [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerUnaryMinus (IntegerConstant 4235 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4235 (Integer 4 []))) ()) (Assert (StringCompare (FunctionCall 2 hex () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "-0x108b" (Character 1 7 () [])) (Logical 4 []) ()) ()) (Assert (StringCompare (FunctionCall 2 hex () [((IntegerConstant 34 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0x22" (Character 1 4 () [])) ()) Eq (StringConstant "0x22" (Character 1 4 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (StringCompare (FunctionCall 2 hex () [((IntegerUnaryMinus (IntegerConstant 4235 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4235 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0x108b" (Character 1 7 () [])) ()) Eq (StringConstant "-0x108b" (Character 1 7 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {_lpython_main_program: (ExternalSymbol 106 _lpython_main_program 108 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 106 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_builtin_int-8f88fdc.json b/tests/reference/asr-test_builtin_int-8f88fdc.json index 7fc137e6c8..26dc6fac31 100644 --- a/tests/reference/asr-test_builtin_int-8f88fdc.json +++ b/tests/reference/asr-test_builtin_int-8f88fdc.json @@ -2,7 +2,7 @@ "basename": "asr-test_builtin_int-8f88fdc", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin_int.py", - "infile_hash": "93b3b69da02c67575a06e16c67d0a9815f3131b70631b7bf1f3a7143", + "infile_hash": "caea15e7c979280f796e815bd1548613d6b21322c43f4ed1306e1e93", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin_int-8f88fdc.stdout", diff --git a/tests/reference/asr-test_builtin_len-55b0dec.json b/tests/reference/asr-test_builtin_len-55b0dec.json index dfa3b16a1e..806fa221aa 100644 --- a/tests/reference/asr-test_builtin_len-55b0dec.json +++ b/tests/reference/asr-test_builtin_len-55b0dec.json @@ -2,7 +2,7 @@ "basename": "asr-test_builtin_len-55b0dec", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin_len.py", - "infile_hash": "e202dc8c0fe5b9c3e3794ced531009700e2d98fd7e99e2ba2ecb3627", + "infile_hash": "fd1048585d9628ca38f6f21cdcfb3b44c355bbf6df2275a133f82a6f", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin_len-55b0dec.stdout", diff --git a/tests/reference/asr-test_builtin_oct-20b9066.json b/tests/reference/asr-test_builtin_oct-20b9066.json index af551162c5..e62a43f441 100644 --- a/tests/reference/asr-test_builtin_oct-20b9066.json +++ b/tests/reference/asr-test_builtin_oct-20b9066.json @@ -2,11 +2,11 @@ "basename": "asr-test_builtin_oct-20b9066", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin_oct.py", - "infile_hash": "e3ad514502baf503fd9204e90fa3e3e87bd6be38752b5419fc626420", + "infile_hash": "c20249affa4787edf4ef56c881ebbcabdced311b5b908d9da6aceaeb", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin_oct-20b9066.stdout", - "stdout_hash": "495fc911ed850e779248bfc92cce0177358637e15868d5979c16f115", + "stdout_hash": "990a34d9b31d095e1e4284106fec020a580fa7ca45f59f214954a29b", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_builtin_oct-20b9066.stdout b/tests/reference/asr-test_builtin_oct-20b9066.stdout index 9eeb838b96..e7ae58c376 100644 --- a/tests/reference/asr-test_builtin_oct-20b9066.stdout +++ b/tests/reference/asr-test_builtin_oct-20b9066.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 107 {_lpython_main_program: (Function (SymbolTable 106 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_oct] [] [(SubroutineCall 107 test_oct () [] ())] () Public .false. .false.), test_oct: (Function (SymbolTable 2 {i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.), oct: (ExternalSymbol 2 oct 4 oct lpython_builtin [] oct Private)}) test_oct (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [oct oct oct oct] [] [(= (Var 2 i) (IntegerConstant 34 (Integer 4 [])) ()) (Assert (StringCompare (FunctionCall 2 oct () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "0o42" (Character 1 4 () [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerUnaryMinus (IntegerConstant 4235 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4235 (Integer 4 []))) ()) (Assert (StringCompare (FunctionCall 2 oct () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "-0o10213" (Character 1 8 () [])) (Logical 4 []) ()) ()) (Assert (StringCompare (FunctionCall 2 oct () [((IntegerConstant 34 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0o42" (Character 1 4 () [])) ()) Eq (StringConstant "0o42" (Character 1 4 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (StringCompare (FunctionCall 2 oct () [((IntegerUnaryMinus (IntegerConstant 4235 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4235 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0o10213" (Character 1 8 () [])) ()) Eq (StringConstant "-0o10213" (Character 1 8 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {_lpython_main_program: (ExternalSymbol 105 _lpython_main_program 107 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 105 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 108 {_lpython_main_program: (Function (SymbolTable 107 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_oct] [] [(SubroutineCall 108 test_oct () [] ())] () Public .false. .false.), test_oct: (Function (SymbolTable 2 {i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.), oct: (ExternalSymbol 2 oct 4 oct lpython_builtin [] oct Private)}) test_oct (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [oct oct oct oct] [] [(= (Var 2 i) (IntegerConstant 34 (Integer 4 [])) ()) (Assert (StringCompare (FunctionCall 2 oct () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "0o42" (Character 1 4 () [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerUnaryMinus (IntegerConstant 4235 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4235 (Integer 4 []))) ()) (Assert (StringCompare (FunctionCall 2 oct () [((Var 2 i))] (Character 1 -2 () []) () ()) Eq (StringConstant "-0o10213" (Character 1 8 () [])) (Logical 4 []) ()) ()) (Assert (StringCompare (FunctionCall 2 oct () [((IntegerConstant 34 (Integer 4 [])))] (Character 1 -2 () []) (StringConstant "0o42" (Character 1 4 () [])) ()) Eq (StringConstant "0o42" (Character 1 4 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (StringCompare (FunctionCall 2 oct () [((IntegerUnaryMinus (IntegerConstant 4235 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4235 (Integer 4 []))))] (Character 1 -2 () []) (StringConstant "-0o10213" (Character 1 8 () [])) ()) Eq (StringConstant "-0o10213" (Character 1 8 () [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {_lpython_main_program: (ExternalSymbol 106 _lpython_main_program 108 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 106 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_builtin_pow-f02fcda.json b/tests/reference/asr-test_builtin_pow-f02fcda.json index 699b6dd833..3b31cc8c82 100644 --- a/tests/reference/asr-test_builtin_pow-f02fcda.json +++ b/tests/reference/asr-test_builtin_pow-f02fcda.json @@ -2,11 +2,11 @@ "basename": "asr-test_builtin_pow-f02fcda", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin_pow.py", - "infile_hash": "73b7a50686598a8df8a84a6f36e637516e6f140b1d2adbc72f1c4cfe", + "infile_hash": "b7d1d5e1592f5078961eb228c756e424d394f5f0383a1577f1cced1b", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin_pow-f02fcda.stdout", - "stdout_hash": "d029dcda2b43205e6227beeead83404e3b15742615c64e64ac5efdc6", + "stdout_hash": "b6b4ef9fb480426ce166e426c7f8817b6f9a856dda2d8775b6b25037", "stderr": "asr-test_builtin_pow-f02fcda.stderr", "stderr_hash": "859ce76c74748f2d32c7eab92cfbba789a78d4cbf5818646b99806ea", "returncode": 0 diff --git a/tests/reference/asr-test_builtin_pow-f02fcda.stdout b/tests/reference/asr-test_builtin_pow-f02fcda.stdout index d36a6dc644..1fc68891ad 100644 --- a/tests/reference/asr-test_builtin_pow-f02fcda.stdout +++ b/tests/reference/asr-test_builtin_pow-f02fcda.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 107 {_lpython_main_program: (Function (SymbolTable 106 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_pow] [] [(SubroutineCall 107 test_pow () [] ())] () Public .false. .false.), test_pow: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Integer 4 []) Source Public Required .false.), a1: (Variable 2 a1 [] Local (RealConstant 4.500000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), a2: (Variable 2 a2 [] Local (RealConstant 2.300000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), abs: (ExternalSymbol 2 abs 4 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 2 abs@__lpython_overloaded_0__abs 4 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), b: (Variable 2 b [] Local () () Default (Integer 4 []) Source Public Required .false.), b1: (Variable 2 b1 [] Local (LogicalConstant .true. (Logical 4 [])) () Default (Logical 4 []) Source Public Required .false.), b2: (Variable 2 b2 [] Local (LogicalConstant .false. (Logical 4 [])) () Default (Logical 4 []) Source Public Required .false.), c1: (Variable 2 c1 [] Local () () Default (Complex 4 []) Source Public Required .false.), complex: (ExternalSymbol 2 complex 4 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 4 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public), eps: (Variable 2 eps [] Local () () Default (Real 8 []) Source Public Required .false.), f1: (Variable 2 f1 [] Local () () Default (Real 4 []) Source Public Required .false.), f2: (Variable 2 f2 [] Local () () Default (Real 4 []) Source Public Required .false.), i: (Variable 2 i [] Local () () Default (Integer 8 []) Source Public Required .false.), i1: (Variable 2 i1 [] Local () () Default (Integer 8 []) Source Public Required .false.), i2: (Variable 2 i2 [] Local () () Default (Integer 8 []) Source Public Required .false.), j: (Variable 2 j [] Local () () Default (Integer 8 []) Source Public Required .false.), k: (Variable 2 k [] Local () () Default (Integer 8 []) Source Public Required .false.), p: (Variable 2 p [] Local () () Default (Real 4 []) Source Public Required .false.), pow: (ExternalSymbol 2 pow 4 pow lpython_builtin [] pow Private), pow@__lpython_overloaded_0__pow: (ExternalSymbol 2 pow@__lpython_overloaded_0__pow 4 __lpython_overloaded_0__pow lpython_builtin [] __lpython_overloaded_0__pow Public), pow@__lpython_overloaded_10__pow: (ExternalSymbol 2 pow@__lpython_overloaded_10__pow 4 __lpython_overloaded_10__pow lpython_builtin [] __lpython_overloaded_10__pow Public), pow@__lpython_overloaded_11__pow: (ExternalSymbol 2 pow@__lpython_overloaded_11__pow 4 __lpython_overloaded_11__pow lpython_builtin [] __lpython_overloaded_11__pow Public), pow@__lpython_overloaded_1__pow: (ExternalSymbol 2 pow@__lpython_overloaded_1__pow 4 __lpython_overloaded_1__pow lpython_builtin [] __lpython_overloaded_1__pow Public), pow@__lpython_overloaded_2__pow: (ExternalSymbol 2 pow@__lpython_overloaded_2__pow 4 __lpython_overloaded_2__pow lpython_builtin [] __lpython_overloaded_2__pow Public), pow@__lpython_overloaded_3__pow: (ExternalSymbol 2 pow@__lpython_overloaded_3__pow 4 __lpython_overloaded_3__pow lpython_builtin [] __lpython_overloaded_3__pow Public), pow@__lpython_overloaded_4__pow: (ExternalSymbol 2 pow@__lpython_overloaded_4__pow 4 __lpython_overloaded_4__pow lpython_builtin [] __lpython_overloaded_4__pow Public), pow@__lpython_overloaded_5__pow: (ExternalSymbol 2 pow@__lpython_overloaded_5__pow 4 __lpython_overloaded_5__pow lpython_builtin [] __lpython_overloaded_5__pow Public), pow@__lpython_overloaded_6__pow: (ExternalSymbol 2 pow@__lpython_overloaded_6__pow 4 __lpython_overloaded_6__pow lpython_builtin [] __lpython_overloaded_6__pow Public), pow@__lpython_overloaded_7__pow: (ExternalSymbol 2 pow@__lpython_overloaded_7__pow 4 __lpython_overloaded_7__pow lpython_builtin [] __lpython_overloaded_7__pow Public), pow@__lpython_overloaded_8__pow: (ExternalSymbol 2 pow@__lpython_overloaded_8__pow 4 __lpython_overloaded_8__pow lpython_builtin [] __lpython_overloaded_8__pow Public), pow@__lpython_overloaded_9__pow: (ExternalSymbol 2 pow@__lpython_overloaded_9__pow 4 __lpython_overloaded_9__pow lpython_builtin [] __lpython_overloaded_9__pow Public), x: (Variable 2 x [] Local (IntegerConstant 3 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), y: (Variable 2 y [] Local (RealConstant 2.300000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.)}) test_pow (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [pow@__lpython_overloaded_0__pow pow@__lpython_overloaded_0__pow pow@__lpython_overloaded_0__pow pow@__lpython_overloaded_1__pow pow@__lpython_overloaded_2__pow pow@__lpython_overloaded_4__pow pow@__lpython_overloaded_5__pow pow@__lpython_overloaded_8__pow pow@__lpython_overloaded_8__pow pow@__lpython_overloaded_8__pow pow@__lpython_overloaded_8__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_3__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_3__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_6__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_7__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_6__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_1__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_1__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_1__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_1__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_3__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_3__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_3__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_6__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_6__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_7__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_7__pow pow@__lpython_overloaded_0__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_7__pow pow@__lpython_overloaded_11__pow pow@__lpython_overloaded_10__pow complex@__lpython_overloaded_9__complex pow@__lpython_overloaded_9__pow] [] [(= (Var 2 eps) (RealConstant 0.000000 (Real 8 [])) ()) (= (Var 2 a) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 2 b) (IntegerConstant 5 (Integer 4 [])) ()) (Assert (IntegerCompare (Cast (FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((Var 2 a)) ((Var 2 b))] (Real 8 []) () ()) RealToInteger (Integer 4 []) ()) Eq (IntegerConstant 32 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 a) (IntegerConstant 6 (Integer 4 [])) ()) (= (Var 2 b) (IntegerConstant 3 (Integer 4 [])) ()) (Assert (IntegerCompare (Cast (FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((Var 2 a)) ((Var 2 b))] (Real 8 []) () ()) RealToInteger (Integer 4 []) ()) Eq (IntegerConstant 216 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 a) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 2 b) (IntegerConstant 0 (Integer 4 [])) ()) (Assert (IntegerCompare (Cast (FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((Var 2 a)) ((Var 2 b))] (Real 8 []) () ()) RealToInteger (Integer 4 []) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 a) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 2 b) (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) ()) (= (Var 2 a) (IntegerConstant 6 (Integer 4 [])) ()) (= (Var 2 b) (IntegerUnaryMinus (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4 (Integer 4 []))) ()) (= (Var 2 i1) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 []))) ()) (= (Var 2 i2) (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 5 (Integer 8 []))) ()) (Assert (IntegerCompare (Cast (FunctionCall 2 pow@__lpython_overloaded_1__pow 2 pow [((Var 2 i1)) ((Var 2 i2))] (Real 8 []) () ()) RealToInteger (Integer 8 []) ()) Eq (Cast (IntegerConstant 32 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 32 (Integer 8 []))) (Logical 4 []) ()) ()) (= (Var 2 i1) (Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 []))) ()) (= (Var 2 i2) (IntegerUnaryMinus (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 3 (Integer 8 []))) (Integer 8 []) (IntegerConstant -3 (Integer 8 []))) ()) (= (Var 2 f1) (Cast (RealBinOp (Cast (IntegerConstant 525346 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 66456 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) ()) (= (Var 2 f2) (Cast (RealConstant 3.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.000000 (Real 4 []))) ()) (= (Var 2 p) (FunctionCall 2 pow@__lpython_overloaded_2__pow 2 pow [((Var 2 f1)) ((Var 2 f2))] (Real 4 []) () ()) ()) (= (Var 2 f1) (FunctionCall 2 pow@__lpython_overloaded_4__pow 2 pow [((Var 2 a)) ((Var 2 f2))] (Real 4 []) () ()) ()) (= (Var 2 f1) (FunctionCall 2 pow@__lpython_overloaded_5__pow 2 pow [((Var 2 f2)) ((Var 2 a))] (Real 4 []) () ()) ()) (= (Var 2 b1) (LogicalConstant .true. (Logical 4 [])) ()) (= (Var 2 b2) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_8__pow 2 pow [((Var 2 b1)) ((Var 2 b2))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_8__pow 2 pow [((Var 2 b2)) ((Var 2 b1))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_8__pow 2 pow [((Var 2 b1)) ((Var 2 b2))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_8__pow 2 pow [((LogicalConstant .false. (Logical 4 []))) ((LogicalConstant .false. (Logical 4 [])))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a1) (RealConstant 4.500000 (Real 8 [])) ()) (= (Var 2 a2) (RealConstant 2.300000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_3__pow 2 pow [((Var 2 a1)) ((Var 2 a2))] (Real 8 []) () ()) Sub (RealConstant 31.797193 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_3__pow 2 pow [((Var 2 a2)) ((Var 2 a1))] (Real 8 []) () ()) Sub (RealConstant 42.439989 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (= (Var 2 x) (IntegerConstant 3 (Integer 4 [])) ()) (= (Var 2 y) (RealConstant 2.300000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_6__pow 2 pow [((Var 2 x)) ((Var 2 y))] (Real 8 []) () ()) Sub (RealConstant 12.513503 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_7__pow 2 pow [((Var 2 y)) ((Var 2 x))] (Real 8 []) () ()) Sub (RealConstant 12.167000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_6__pow 2 pow [((Var 2 x)) ((RealConstant 5.500000 (Real 8 [])))] (Real 8 []) () ()) Sub (RealConstant 420.888346 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_1__pow 2 pow [((Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 [])))) ((IntegerUnaryMinus (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) (IntegerConstant -1 (Integer 8 []))))] (Real 8 []) (RealConstant 0.500000 (Real 8 [])) ()) Sub (RealConstant 0.500000 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_1__pow 2 pow [((Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 [])))) ((IntegerUnaryMinus (Cast (IntegerConstant 4 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 []))) (Integer 8 []) (IntegerConstant -4 (Integer 8 []))))] (Real 8 []) (RealConstant 0.000772 (Real 8 [])) ()) Sub (RealConstant 0.000772 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_1__pow 2 pow [((IntegerUnaryMinus (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 3 (Integer 8 []))) (Integer 8 []) (IntegerConstant -3 (Integer 8 [])))) ((IntegerUnaryMinus (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 5 (Integer 8 []))) (Integer 8 []) (IntegerConstant -5 (Integer 8 []))))] (Real 8 []) (RealConstant -0.004115 (Real 8 [])) ()) Add (RealConstant 0.004115 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_1__pow 2 pow [((Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 [])))) ((IntegerUnaryMinus (Cast (IntegerConstant 4 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 []))) (Integer 8 []) (IntegerConstant -4 (Integer 8 []))))] (Real 8 []) (RealConstant 0.000772 (Real 8 [])) ()) Sub (RealConstant 0.000772 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_3__pow 2 pow [((RealConstant 4.500000 (Real 8 []))) ((RealConstant 2.300000 (Real 8 [])))] (Real 8 []) (RealConstant 31.797193 (Real 8 [])) ()) Sub (RealConstant 31.797193 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_3__pow 2 pow [((RealConstant 2.300000 (Real 8 []))) ((RealConstant 0.000000 (Real 8 [])))] (Real 8 []) (RealConstant 1.000000 (Real 8 [])) ()) Sub (RealConstant 1.000000 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_3__pow 2 pow [((RealConstant 2.300000 (Real 8 []))) ((RealUnaryMinus (RealConstant 1.500000 (Real 8 [])) (Real 8 []) (RealConstant -1.500000 (Real 8 []))))] (Real 8 []) (RealConstant 0.286687 (Real 8 [])) ()) Sub (RealConstant 0.286687 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_6__pow 2 pow [((IntegerConstant 2 (Integer 4 []))) ((RealConstant 3.400000 (Real 8 [])))] (Real 8 []) (RealConstant 10.556063 (Real 8 [])) ()) Sub (RealConstant 10.556063 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_6__pow 2 pow [((IntegerConstant 2 (Integer 4 []))) ((RealUnaryMinus (RealConstant 3.400000 (Real 8 [])) (Real 8 []) (RealConstant -3.400000 (Real 8 []))))] (Real 8 []) (RealConstant 0.094732 (Real 8 [])) ()) Sub (RealConstant 0.094732 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_7__pow 2 pow [((RealConstant 3.400000 (Real 8 []))) ((IntegerConstant 9 (Integer 4 [])))] (Real 8 []) (RealConstant 60716.992766 (Real 8 [])) ()) Sub (RealConstant 60716.992766 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_7__pow 2 pow [((RealConstant 0.000000 (Real 8 []))) ((IntegerConstant 53 (Integer 4 [])))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Sub (RealConstant 0.000000 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (IntegerCompare (Cast (FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Real 8 []) (RealConstant 16.000000 (Real 8 [])) ()) RealToInteger (Integer 4 []) (IntegerConstant 16 (Integer 4 []))) Eq (IntegerConstant 16 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_7__pow 2 pow [((RealUnaryMinus (RealConstant 4235.000000 (Real 8 [])) (Real 8 []) (RealConstant -4235.000000 (Real 8 [])))) ((IntegerConstant 52 (Integer 4 [])))] (Real 8 []) (RealConstant 394800380598526378720936476336799774273305305904443955996320177992404102454228192853661558132283280490733920647962082901303487965679010854404517306573035287122910924343151116372519789002752.000000 (Real 8 [])) ()) Sub (RealConstant 394800380598526378720936476336799774273305305904443955996320177992404102454228192853661558132283280490733920647962082901303487965679010854404517306573035287122910924343151116372519789002752.000000 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (= (Var 2 i) (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 7 (Integer 8 []))) ()) (= (Var 2 j) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 []))) ()) (= (Var 2 k) (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 5 (Integer 8 []))) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_11__pow 2 pow [((Var 2 i)) ((Var 2 j)) ((Var 2 k))] (Integer 8 []) () ()) Eq (Cast (IntegerConstant 4 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_10__pow 2 pow [((IntegerConstant 102 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 121 (Integer 4 [])))] (Integer 4 []) (RealConstant 38.000000 (Real 8 [])) ()) Eq (IntegerConstant 38 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 c1) (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 5 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 4.000000 5.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 4.000000 5.000000 (Complex 4 []))) ()) (= (Var 2 c1) (FunctionCall 2 pow@__lpython_overloaded_9__pow 2 pow [((Var 2 c1)) ((IntegerConstant 4 (Integer 4 [])))] (Complex 4 []) () ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {_lpython_main_program: (ExternalSymbol 105 _lpython_main_program 107 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 105 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 108 {_lpython_main_program: (Function (SymbolTable 107 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_pow] [] [(SubroutineCall 108 test_pow () [] ())] () Public .false. .false.), test_pow: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Integer 4 []) Source Public Required .false.), a1: (Variable 2 a1 [] Local (RealConstant 4.500000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), a2: (Variable 2 a2 [] Local (RealConstant 2.300000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), abs: (ExternalSymbol 2 abs 4 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 2 abs@__lpython_overloaded_0__abs 4 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), b: (Variable 2 b [] Local () () Default (Integer 4 []) Source Public Required .false.), b1: (Variable 2 b1 [] Local (LogicalConstant .true. (Logical 4 [])) () Default (Logical 4 []) Source Public Required .false.), b2: (Variable 2 b2 [] Local (LogicalConstant .false. (Logical 4 [])) () Default (Logical 4 []) Source Public Required .false.), c1: (Variable 2 c1 [] Local () () Default (Complex 4 []) Source Public Required .false.), complex: (ExternalSymbol 2 complex 4 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 4 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public), eps: (Variable 2 eps [] Local () () Default (Real 8 []) Source Public Required .false.), f1: (Variable 2 f1 [] Local () () Default (Real 4 []) Source Public Required .false.), f2: (Variable 2 f2 [] Local () () Default (Real 4 []) Source Public Required .false.), i: (Variable 2 i [] Local () () Default (Integer 8 []) Source Public Required .false.), i1: (Variable 2 i1 [] Local () () Default (Integer 8 []) Source Public Required .false.), i2: (Variable 2 i2 [] Local () () Default (Integer 8 []) Source Public Required .false.), j: (Variable 2 j [] Local () () Default (Integer 8 []) Source Public Required .false.), k: (Variable 2 k [] Local () () Default (Integer 8 []) Source Public Required .false.), p: (Variable 2 p [] Local () () Default (Real 4 []) Source Public Required .false.), pow: (ExternalSymbol 2 pow 4 pow lpython_builtin [] pow Private), pow@__lpython_overloaded_0__pow: (ExternalSymbol 2 pow@__lpython_overloaded_0__pow 4 __lpython_overloaded_0__pow lpython_builtin [] __lpython_overloaded_0__pow Public), pow@__lpython_overloaded_10__pow: (ExternalSymbol 2 pow@__lpython_overloaded_10__pow 4 __lpython_overloaded_10__pow lpython_builtin [] __lpython_overloaded_10__pow Public), pow@__lpython_overloaded_11__pow: (ExternalSymbol 2 pow@__lpython_overloaded_11__pow 4 __lpython_overloaded_11__pow lpython_builtin [] __lpython_overloaded_11__pow Public), pow@__lpython_overloaded_1__pow: (ExternalSymbol 2 pow@__lpython_overloaded_1__pow 4 __lpython_overloaded_1__pow lpython_builtin [] __lpython_overloaded_1__pow Public), pow@__lpython_overloaded_2__pow: (ExternalSymbol 2 pow@__lpython_overloaded_2__pow 4 __lpython_overloaded_2__pow lpython_builtin [] __lpython_overloaded_2__pow Public), pow@__lpython_overloaded_3__pow: (ExternalSymbol 2 pow@__lpython_overloaded_3__pow 4 __lpython_overloaded_3__pow lpython_builtin [] __lpython_overloaded_3__pow Public), pow@__lpython_overloaded_4__pow: (ExternalSymbol 2 pow@__lpython_overloaded_4__pow 4 __lpython_overloaded_4__pow lpython_builtin [] __lpython_overloaded_4__pow Public), pow@__lpython_overloaded_5__pow: (ExternalSymbol 2 pow@__lpython_overloaded_5__pow 4 __lpython_overloaded_5__pow lpython_builtin [] __lpython_overloaded_5__pow Public), pow@__lpython_overloaded_6__pow: (ExternalSymbol 2 pow@__lpython_overloaded_6__pow 4 __lpython_overloaded_6__pow lpython_builtin [] __lpython_overloaded_6__pow Public), pow@__lpython_overloaded_7__pow: (ExternalSymbol 2 pow@__lpython_overloaded_7__pow 4 __lpython_overloaded_7__pow lpython_builtin [] __lpython_overloaded_7__pow Public), pow@__lpython_overloaded_8__pow: (ExternalSymbol 2 pow@__lpython_overloaded_8__pow 4 __lpython_overloaded_8__pow lpython_builtin [] __lpython_overloaded_8__pow Public), pow@__lpython_overloaded_9__pow: (ExternalSymbol 2 pow@__lpython_overloaded_9__pow 4 __lpython_overloaded_9__pow lpython_builtin [] __lpython_overloaded_9__pow Public), x: (Variable 2 x [] Local (IntegerConstant 3 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), y: (Variable 2 y [] Local (RealConstant 2.300000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.)}) test_pow (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [pow@__lpython_overloaded_0__pow pow@__lpython_overloaded_0__pow pow@__lpython_overloaded_0__pow pow@__lpython_overloaded_1__pow pow@__lpython_overloaded_2__pow pow@__lpython_overloaded_4__pow pow@__lpython_overloaded_5__pow pow@__lpython_overloaded_8__pow pow@__lpython_overloaded_8__pow pow@__lpython_overloaded_8__pow pow@__lpython_overloaded_8__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_3__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_3__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_6__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_7__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_6__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_1__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_1__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_1__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_1__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_3__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_3__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_3__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_6__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_6__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_7__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_7__pow pow@__lpython_overloaded_0__pow abs@__lpython_overloaded_0__abs pow@__lpython_overloaded_7__pow pow@__lpython_overloaded_11__pow pow@__lpython_overloaded_10__pow complex@__lpython_overloaded_9__complex pow@__lpython_overloaded_9__pow] [] [(= (Var 2 eps) (RealConstant 0.000000 (Real 8 [])) ()) (= (Var 2 a) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 2 b) (IntegerConstant 5 (Integer 4 [])) ()) (Assert (IntegerCompare (Cast (FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((Var 2 a)) ((Var 2 b))] (Real 8 []) () ()) RealToInteger (Integer 4 []) ()) Eq (IntegerConstant 32 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 a) (IntegerConstant 6 (Integer 4 [])) ()) (= (Var 2 b) (IntegerConstant 3 (Integer 4 [])) ()) (Assert (IntegerCompare (Cast (FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((Var 2 a)) ((Var 2 b))] (Real 8 []) () ()) RealToInteger (Integer 4 []) ()) Eq (IntegerConstant 216 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 a) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 2 b) (IntegerConstant 0 (Integer 4 [])) ()) (Assert (IntegerCompare (Cast (FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((Var 2 a)) ((Var 2 b))] (Real 8 []) () ()) RealToInteger (Integer 4 []) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 a) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 2 b) (IntegerUnaryMinus (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant -1 (Integer 4 []))) ()) (= (Var 2 a) (IntegerConstant 6 (Integer 4 [])) ()) (= (Var 2 b) (IntegerUnaryMinus (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4 (Integer 4 []))) ()) (= (Var 2 i1) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 []))) ()) (= (Var 2 i2) (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 5 (Integer 8 []))) ()) (Assert (IntegerCompare (Cast (FunctionCall 2 pow@__lpython_overloaded_1__pow 2 pow [((Var 2 i1)) ((Var 2 i2))] (Real 8 []) () ()) RealToInteger (Integer 8 []) ()) Eq (Cast (IntegerConstant 32 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 32 (Integer 8 []))) (Logical 4 []) ()) ()) (= (Var 2 i1) (Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 []))) ()) (= (Var 2 i2) (IntegerUnaryMinus (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 3 (Integer 8 []))) (Integer 8 []) (IntegerConstant -3 (Integer 8 []))) ()) (= (Var 2 f1) (Cast (RealBinOp (Cast (IntegerConstant 525346 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 66456 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) ()) (= (Var 2 f2) (Cast (RealConstant 3.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.000000 (Real 4 []))) ()) (= (Var 2 p) (FunctionCall 2 pow@__lpython_overloaded_2__pow 2 pow [((Var 2 f1)) ((Var 2 f2))] (Real 4 []) () ()) ()) (= (Var 2 f1) (FunctionCall 2 pow@__lpython_overloaded_4__pow 2 pow [((Var 2 a)) ((Var 2 f2))] (Real 4 []) () ()) ()) (= (Var 2 f1) (FunctionCall 2 pow@__lpython_overloaded_5__pow 2 pow [((Var 2 f2)) ((Var 2 a))] (Real 4 []) () ()) ()) (= (Var 2 b1) (LogicalConstant .true. (Logical 4 [])) ()) (= (Var 2 b2) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_8__pow 2 pow [((Var 2 b1)) ((Var 2 b2))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_8__pow 2 pow [((Var 2 b2)) ((Var 2 b1))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_8__pow 2 pow [((Var 2 b1)) ((Var 2 b2))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_8__pow 2 pow [((LogicalConstant .false. (Logical 4 []))) ((LogicalConstant .false. (Logical 4 [])))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 a1) (RealConstant 4.500000 (Real 8 [])) ()) (= (Var 2 a2) (RealConstant 2.300000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_3__pow 2 pow [((Var 2 a1)) ((Var 2 a2))] (Real 8 []) () ()) Sub (RealConstant 31.797193 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_3__pow 2 pow [((Var 2 a2)) ((Var 2 a1))] (Real 8 []) () ()) Sub (RealConstant 42.439989 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (= (Var 2 x) (IntegerConstant 3 (Integer 4 [])) ()) (= (Var 2 y) (RealConstant 2.300000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_6__pow 2 pow [((Var 2 x)) ((Var 2 y))] (Real 8 []) () ()) Sub (RealConstant 12.513503 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_7__pow 2 pow [((Var 2 y)) ((Var 2 x))] (Real 8 []) () ()) Sub (RealConstant 12.167000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_6__pow 2 pow [((Var 2 x)) ((RealConstant 5.500000 (Real 8 [])))] (Real 8 []) () ()) Sub (RealConstant 420.888346 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_1__pow 2 pow [((Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 [])))) ((IntegerUnaryMinus (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) (IntegerConstant -1 (Integer 8 []))))] (Real 8 []) (RealConstant 0.500000 (Real 8 [])) ()) Sub (RealConstant 0.500000 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_1__pow 2 pow [((Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 [])))) ((IntegerUnaryMinus (Cast (IntegerConstant 4 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 []))) (Integer 8 []) (IntegerConstant -4 (Integer 8 []))))] (Real 8 []) (RealConstant 0.000772 (Real 8 [])) ()) Sub (RealConstant 0.000772 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_1__pow 2 pow [((IntegerUnaryMinus (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 3 (Integer 8 []))) (Integer 8 []) (IntegerConstant -3 (Integer 8 [])))) ((IntegerUnaryMinus (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 5 (Integer 8 []))) (Integer 8 []) (IntegerConstant -5 (Integer 8 []))))] (Real 8 []) (RealConstant -0.004115 (Real 8 [])) ()) Add (RealConstant 0.004115 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_1__pow 2 pow [((Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 [])))) ((IntegerUnaryMinus (Cast (IntegerConstant 4 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 []))) (Integer 8 []) (IntegerConstant -4 (Integer 8 []))))] (Real 8 []) (RealConstant 0.000772 (Real 8 [])) ()) Sub (RealConstant 0.000772 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_3__pow 2 pow [((RealConstant 4.500000 (Real 8 []))) ((RealConstant 2.300000 (Real 8 [])))] (Real 8 []) (RealConstant 31.797193 (Real 8 [])) ()) Sub (RealConstant 31.797193 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_3__pow 2 pow [((RealConstant 2.300000 (Real 8 []))) ((RealConstant 0.000000 (Real 8 [])))] (Real 8 []) (RealConstant 1.000000 (Real 8 [])) ()) Sub (RealConstant 1.000000 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_3__pow 2 pow [((RealConstant 2.300000 (Real 8 []))) ((RealUnaryMinus (RealConstant 1.500000 (Real 8 [])) (Real 8 []) (RealConstant -1.500000 (Real 8 []))))] (Real 8 []) (RealConstant 0.286687 (Real 8 [])) ()) Sub (RealConstant 0.286687 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_6__pow 2 pow [((IntegerConstant 2 (Integer 4 []))) ((RealConstant 3.400000 (Real 8 [])))] (Real 8 []) (RealConstant 10.556063 (Real 8 [])) ()) Sub (RealConstant 10.556063 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_6__pow 2 pow [((IntegerConstant 2 (Integer 4 []))) ((RealUnaryMinus (RealConstant 3.400000 (Real 8 [])) (Real 8 []) (RealConstant -3.400000 (Real 8 []))))] (Real 8 []) (RealConstant 0.094732 (Real 8 [])) ()) Sub (RealConstant 0.094732 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_7__pow 2 pow [((RealConstant 3.400000 (Real 8 []))) ((IntegerConstant 9 (Integer 4 [])))] (Real 8 []) (RealConstant 60716.992766 (Real 8 [])) ()) Sub (RealConstant 60716.992766 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_7__pow 2 pow [((RealConstant 0.000000 (Real 8 []))) ((IntegerConstant 53 (Integer 4 [])))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Sub (RealConstant 0.000000 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (Assert (IntegerCompare (Cast (FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Real 8 []) (RealConstant 16.000000 (Real 8 [])) ()) RealToInteger (Integer 4 []) (IntegerConstant 16 (Integer 4 []))) Eq (IntegerConstant 16 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 pow@__lpython_overloaded_7__pow 2 pow [((RealUnaryMinus (RealConstant 4235.000000 (Real 8 [])) (Real 8 []) (RealConstant -4235.000000 (Real 8 [])))) ((IntegerConstant 52 (Integer 4 [])))] (Real 8 []) (RealConstant 394800380598526378720936476336799774273305305904443955996320177992404102454228192853661558132283280490733920647962082901303487965679010854404517306573035287122910924343151116372519789002752.000000 (Real 8 [])) ()) Sub (RealConstant 394800380598526378720936476336799774273305305904443955996320177992404102454228192853661558132283280490733920647962082901303487965679010854404517306573035287122910924343151116372519789002752.000000 (Real 8 [])) (Real 8 []) (RealConstant 0.000000 (Real 8 []))))] (Real 8 []) (RealConstant 0.000000 (Real 8 [])) ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (= (Var 2 i) (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 7 (Integer 8 []))) ()) (= (Var 2 j) (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 2 (Integer 8 []))) ()) (= (Var 2 k) (Cast (IntegerConstant 5 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 5 (Integer 8 []))) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_11__pow 2 pow [((Var 2 i)) ((Var 2 j)) ((Var 2 k))] (Integer 8 []) () ()) Eq (Cast (IntegerConstant 4 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 pow@__lpython_overloaded_10__pow 2 pow [((IntegerConstant 102 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 121 (Integer 4 [])))] (Integer 4 []) (RealConstant 38.000000 (Real 8 [])) ()) Eq (IntegerConstant 38 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 c1) (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 5 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 4.000000 5.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 4.000000 5.000000 (Complex 4 []))) ()) (= (Var 2 c1) (FunctionCall 2 pow@__lpython_overloaded_9__pow 2 pow [((Var 2 c1)) ((IntegerConstant 4 (Integer 4 [])))] (Complex 4 []) () ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {_lpython_main_program: (ExternalSymbol 106 _lpython_main_program 108 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 106 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_builtin_round-7417a21.json b/tests/reference/asr-test_builtin_round-7417a21.json index 0c34b887b7..dac93a5b37 100644 --- a/tests/reference/asr-test_builtin_round-7417a21.json +++ b/tests/reference/asr-test_builtin_round-7417a21.json @@ -2,11 +2,11 @@ "basename": "asr-test_builtin_round-7417a21", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin_round.py", - "infile_hash": "7e7524f8547f74ff748edff2c7f5ee72d3b42df3294ee263e8c3fb8b", + "infile_hash": "a4ff4032a45ce084eb524069046afb6ec44f1b24a667c84c7605f2c7", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin_round-7417a21.stdout", - "stdout_hash": "4c23d825bcedab3f304b95bdc33395e0727b867c6dfea11de8f39d78", + "stdout_hash": "68b3b48dc88373addbef2e319edbae1f7694b6cab4ffc71a9594d451", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_builtin_round-7417a21.stdout b/tests/reference/asr-test_builtin_round-7417a21.stdout index f11c21ed51..3bac39aa1f 100644 --- a/tests/reference/asr-test_builtin_round-7417a21.stdout +++ b/tests/reference/asr-test_builtin_round-7417a21.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 107 {_lpython_main_program: (Function (SymbolTable 106 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_round] [] [(SubroutineCall 107 test_round () [] ())] () Public .false. .false.), test_round: (Function (SymbolTable 2 {b: (Variable 2 b [] Local () () Default (Logical 4 []) Source Public Required .false.), f: (Variable 2 f [] Local () () Default (Real 8 []) Source Public Required .false.), f2: (Variable 2 f2 [] Local () () Default (Real 4 []) Source Public Required .false.), i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.), i2: (Variable 2 i2 [] Local () () Default (Integer 1 []) Source Public Required .false.), i3: (Variable 2 i3 [] Local () () Default (Integer 2 []) Source Public Required .false.), i4: (Variable 2 i4 [] Local () () Default (Integer 8 []) Source Public Required .false.), round: (ExternalSymbol 2 round 4 round lpython_builtin [] round Private), round@__lpython_overloaded_0__round: (ExternalSymbol 2 round@__lpython_overloaded_0__round 4 __lpython_overloaded_0__round lpython_builtin [] __lpython_overloaded_0__round Public), round@__lpython_overloaded_1__round: (ExternalSymbol 2 round@__lpython_overloaded_1__round 4 __lpython_overloaded_1__round lpython_builtin [] __lpython_overloaded_1__round Public), round@__lpython_overloaded_2__round: (ExternalSymbol 2 round@__lpython_overloaded_2__round 4 __lpython_overloaded_2__round lpython_builtin [] __lpython_overloaded_2__round Public), round@__lpython_overloaded_3__round: (ExternalSymbol 2 round@__lpython_overloaded_3__round 4 __lpython_overloaded_3__round lpython_builtin [] __lpython_overloaded_3__round Public), round@__lpython_overloaded_4__round: (ExternalSymbol 2 round@__lpython_overloaded_4__round 4 __lpython_overloaded_4__round lpython_builtin [] __lpython_overloaded_4__round Public), round@__lpython_overloaded_5__round: (ExternalSymbol 2 round@__lpython_overloaded_5__round 4 __lpython_overloaded_5__round lpython_builtin [] __lpython_overloaded_5__round Public), round@__lpython_overloaded_6__round: (ExternalSymbol 2 round@__lpython_overloaded_6__round 4 __lpython_overloaded_6__round lpython_builtin [] __lpython_overloaded_6__round Public)}) test_round (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_1__round round@__lpython_overloaded_2__round round@__lpython_overloaded_2__round round@__lpython_overloaded_4__round round@__lpython_overloaded_5__round round@__lpython_overloaded_3__round round@__lpython_overloaded_6__round round@__lpython_overloaded_6__round round@__lpython_overloaded_6__round] [] [(= (Var 2 f) (RealConstant 5.678000 (Real 8 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerConstant 6 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 f) (RealUnaryMinus (RealConstant 183745.230000 (Real 8 [])) (Real 8 []) (RealConstant -183745.230000 (Real 8 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerUnaryMinus (IntegerConstant 183745 (Integer 4 [])) (Integer 4 []) (IntegerConstant -183745 (Integer 4 []))) (Logical 4 []) ()) ()) (= (Var 2 f) (RealConstant 44.340000 (Real 8 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerConstant 44 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 f) (RealConstant 0.500000 (Real 8 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 f) (RealUnaryMinus (RealConstant 50.500000 (Real 8 [])) (Real 8 []) (RealConstant -50.500000 (Real 8 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerUnaryMinus (IntegerConstant 50 (Integer 4 [])) (Integer 4 []) (IntegerConstant -50 (Integer 4 []))) (Logical 4 []) ()) ()) (= (Var 2 f) (RealConstant 1.500000 (Real 8 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealConstant 13.001000 (Real 8 [])))] (Integer 4 []) (IntegerConstant 13 (Integer 4 [])) ()) Eq (IntegerConstant 13 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealUnaryMinus (RealConstant 40.499990 (Real 8 [])) (Real 8 []) (RealConstant -40.499990 (Real 8 []))))] (Integer 4 []) (IntegerConstant -40 (Integer 4 [])) ()) Eq (IntegerUnaryMinus (IntegerConstant 40 (Integer 4 [])) (Integer 4 []) (IntegerConstant -40 (Integer 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealConstant 0.500000 (Real 8 [])))] (Integer 4 []) (IntegerConstant 0 (Integer 4 [])) ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealUnaryMinus (RealConstant 0.500000 (Real 8 [])) (Real 8 []) (RealConstant -0.500000 (Real 8 []))))] (Integer 4 []) (IntegerConstant 0 (Integer 4 [])) ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealConstant 1.500000 (Real 8 [])))] (Integer 4 []) (IntegerConstant 2 (Integer 4 [])) ()) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealConstant 50.500000 (Real 8 [])))] (Integer 4 []) (IntegerConstant 50 (Integer 4 [])) ()) Eq (IntegerConstant 50 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealConstant 56.780000 (Real 8 [])))] (Integer 4 []) (IntegerConstant 57 (Integer 4 [])) ()) Eq (IntegerConstant 57 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 f2) (Cast (RealConstant 5.678000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 5.678000 (Real 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_1__round 2 round [((Var 2 f2))] (Integer 4 []) () ()) Eq (IntegerConstant 6 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_2__round 2 round [((Var 2 i))] (Integer 4 []) () ()) Eq (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_2__round 2 round [((IntegerConstant 4 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 4 (Integer 4 [])) ()) Eq (IntegerConstant 4 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 i2) (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 7 (Integer 1 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_4__round 2 round [((Var 2 i2))] (Integer 1 []) () ()) Eq (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 7 (Integer 1 []))) (Logical 4 []) ()) ()) (= (Var 2 i3) (Cast (IntegerUnaryMinus (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) (IntegerConstant -8 (Integer 4 []))) IntegerToInteger (Integer 2 []) (IntegerConstant -8 (Integer 2 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_5__round 2 round [((Var 2 i3))] (Integer 2 []) () ()) Eq (Cast (IntegerUnaryMinus (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) (IntegerConstant -8 (Integer 4 []))) IntegerToInteger (Integer 2 []) (IntegerConstant -8 (Integer 2 []))) (Logical 4 []) ()) ()) (= (Var 2 i4) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_3__round 2 round [((Var 2 i4))] (Integer 8 []) () ()) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) ()) (= (Var 2 b) (LogicalConstant .true. (Logical 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_6__round 2 round [((Var 2 b))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 b) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_6__round 2 round [((Var 2 b))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_6__round 2 round [((LogicalConstant .false. (Logical 4 [])))] (Integer 4 []) (IntegerConstant 0 (Integer 4 [])) ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {_lpython_main_program: (ExternalSymbol 105 _lpython_main_program 107 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 105 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 108 {_lpython_main_program: (Function (SymbolTable 107 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_round] [] [(SubroutineCall 108 test_round () [] ())] () Public .false. .false.), test_round: (Function (SymbolTable 2 {b: (Variable 2 b [] Local () () Default (Logical 4 []) Source Public Required .false.), f: (Variable 2 f [] Local () () Default (Real 8 []) Source Public Required .false.), f2: (Variable 2 f2 [] Local () () Default (Real 4 []) Source Public Required .false.), i: (Variable 2 i [] Local () () Default (Integer 4 []) Source Public Required .false.), i2: (Variable 2 i2 [] Local () () Default (Integer 1 []) Source Public Required .false.), i3: (Variable 2 i3 [] Local () () Default (Integer 2 []) Source Public Required .false.), i4: (Variable 2 i4 [] Local () () Default (Integer 8 []) Source Public Required .false.), round: (ExternalSymbol 2 round 4 round lpython_builtin [] round Private), round@__lpython_overloaded_0__round: (ExternalSymbol 2 round@__lpython_overloaded_0__round 4 __lpython_overloaded_0__round lpython_builtin [] __lpython_overloaded_0__round Public), round@__lpython_overloaded_1__round: (ExternalSymbol 2 round@__lpython_overloaded_1__round 4 __lpython_overloaded_1__round lpython_builtin [] __lpython_overloaded_1__round Public), round@__lpython_overloaded_2__round: (ExternalSymbol 2 round@__lpython_overloaded_2__round 4 __lpython_overloaded_2__round lpython_builtin [] __lpython_overloaded_2__round Public), round@__lpython_overloaded_3__round: (ExternalSymbol 2 round@__lpython_overloaded_3__round 4 __lpython_overloaded_3__round lpython_builtin [] __lpython_overloaded_3__round Public), round@__lpython_overloaded_4__round: (ExternalSymbol 2 round@__lpython_overloaded_4__round 4 __lpython_overloaded_4__round lpython_builtin [] __lpython_overloaded_4__round Public), round@__lpython_overloaded_5__round: (ExternalSymbol 2 round@__lpython_overloaded_5__round 4 __lpython_overloaded_5__round lpython_builtin [] __lpython_overloaded_5__round Public), round@__lpython_overloaded_6__round: (ExternalSymbol 2 round@__lpython_overloaded_6__round 4 __lpython_overloaded_6__round lpython_builtin [] __lpython_overloaded_6__round Public)}) test_round (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_0__round round@__lpython_overloaded_1__round round@__lpython_overloaded_2__round round@__lpython_overloaded_2__round round@__lpython_overloaded_4__round round@__lpython_overloaded_5__round round@__lpython_overloaded_3__round round@__lpython_overloaded_6__round round@__lpython_overloaded_6__round round@__lpython_overloaded_6__round] [] [(= (Var 2 f) (RealConstant 5.678000 (Real 8 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerConstant 6 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 f) (RealUnaryMinus (RealConstant 183745.230000 (Real 8 [])) (Real 8 []) (RealConstant -183745.230000 (Real 8 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerUnaryMinus (IntegerConstant 183745 (Integer 4 [])) (Integer 4 []) (IntegerConstant -183745 (Integer 4 []))) (Logical 4 []) ()) ()) (= (Var 2 f) (RealConstant 44.340000 (Real 8 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerConstant 44 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 f) (RealConstant 0.500000 (Real 8 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 f) (RealUnaryMinus (RealConstant 50.500000 (Real 8 [])) (Real 8 []) (RealConstant -50.500000 (Real 8 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerUnaryMinus (IntegerConstant 50 (Integer 4 [])) (Integer 4 []) (IntegerConstant -50 (Integer 4 []))) (Logical 4 []) ()) ()) (= (Var 2 f) (RealConstant 1.500000 (Real 8 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((Var 2 f))] (Integer 4 []) () ()) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealConstant 13.001000 (Real 8 [])))] (Integer 4 []) (IntegerConstant 13 (Integer 4 [])) ()) Eq (IntegerConstant 13 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealUnaryMinus (RealConstant 40.499990 (Real 8 [])) (Real 8 []) (RealConstant -40.499990 (Real 8 []))))] (Integer 4 []) (IntegerConstant -40 (Integer 4 [])) ()) Eq (IntegerUnaryMinus (IntegerConstant 40 (Integer 4 [])) (Integer 4 []) (IntegerConstant -40 (Integer 4 []))) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealConstant 0.500000 (Real 8 [])))] (Integer 4 []) (IntegerConstant 0 (Integer 4 [])) ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealUnaryMinus (RealConstant 0.500000 (Real 8 [])) (Real 8 []) (RealConstant -0.500000 (Real 8 []))))] (Integer 4 []) (IntegerConstant 0 (Integer 4 [])) ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealConstant 1.500000 (Real 8 [])))] (Integer 4 []) (IntegerConstant 2 (Integer 4 [])) ()) Eq (IntegerConstant 2 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealConstant 50.500000 (Real 8 [])))] (Integer 4 []) (IntegerConstant 50 (Integer 4 [])) ()) Eq (IntegerConstant 50 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_0__round 2 round [((RealConstant 56.780000 (Real 8 [])))] (Integer 4 []) (IntegerConstant 57 (Integer 4 [])) ()) Eq (IntegerConstant 57 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 f2) (Cast (RealConstant 5.678000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 5.678000 (Real 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_1__round 2 round [((Var 2 f2))] (Integer 4 []) () ()) Eq (IntegerConstant 6 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 i) (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_2__round 2 round [((Var 2 i))] (Integer 4 []) () ()) Eq (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_2__round 2 round [((IntegerConstant 4 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 4 (Integer 4 [])) ()) Eq (IntegerConstant 4 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (= (Var 2 i2) (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 7 (Integer 1 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_4__round 2 round [((Var 2 i2))] (Integer 1 []) () ()) Eq (Cast (IntegerConstant 7 (Integer 4 [])) IntegerToInteger (Integer 1 []) (IntegerConstant 7 (Integer 1 []))) (Logical 4 []) ()) ()) (= (Var 2 i3) (Cast (IntegerUnaryMinus (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) (IntegerConstant -8 (Integer 4 []))) IntegerToInteger (Integer 2 []) (IntegerConstant -8 (Integer 2 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_5__round 2 round [((Var 2 i3))] (Integer 2 []) () ()) Eq (Cast (IntegerUnaryMinus (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) (IntegerConstant -8 (Integer 4 []))) IntegerToInteger (Integer 2 []) (IntegerConstant -8 (Integer 2 []))) (Logical 4 []) ()) ()) (= (Var 2 i4) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_3__round 2 round [((Var 2 i4))] (Integer 8 []) () ()) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) ()) (= (Var 2 b) (LogicalConstant .true. (Logical 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_6__round 2 round [((Var 2 b))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (= (Var 2 b) (LogicalConstant .false. (Logical 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_6__round 2 round [((Var 2 b))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 round@__lpython_overloaded_6__round 2 round [((LogicalConstant .false. (Logical 4 [])))] (Integer 4 []) (IntegerConstant 0 (Integer 4 [])) ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {_lpython_main_program: (ExternalSymbol 106 _lpython_main_program 108 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 106 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_builtin_str-580e920.json b/tests/reference/asr-test_builtin_str-580e920.json index 3120219551..c285b9c78f 100644 --- a/tests/reference/asr-test_builtin_str-580e920.json +++ b/tests/reference/asr-test_builtin_str-580e920.json @@ -2,7 +2,7 @@ "basename": "asr-test_builtin_str-580e920", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_builtin_str.py", - "infile_hash": "4dfef279d78b94604918cff2ef8c2ef5e01f85d492b55d992c3ab126", + "infile_hash": "9d41e81d47e010623c74c812d0c41e5d705f7925e699eb2b68f17cfc", "outfile": null, "outfile_hash": null, "stdout": "asr-test_builtin_str-580e920.stdout", diff --git a/tests/reference/asr-test_c_interop_01-e374f43.json b/tests/reference/asr-test_c_interop_01-e374f43.json index 39161ea4e2..88eabe8e67 100644 --- a/tests/reference/asr-test_c_interop_01-e374f43.json +++ b/tests/reference/asr-test_c_interop_01-e374f43.json @@ -2,11 +2,11 @@ "basename": "asr-test_c_interop_01-e374f43", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_c_interop_01.py", - "infile_hash": "893fdb1fcefcde9c16afd66db7f2fb4639bb79bea3a65f5c4e3b161b", + "infile_hash": "8dd5d5b22dd518496006bdf56651d6892012102d8a0f354e05fc94d7", "outfile": null, "outfile_hash": null, "stdout": "asr-test_c_interop_01-e374f43.stdout", - "stdout_hash": "5853d721b0d12a0a5ea796d93624e276eb9480ec8c84f39925b8c6fa", + "stdout_hash": "fc71753dc7416824411a3b5836c8f3e78ef9324468b5af79350949e1", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_c_interop_01-e374f43.stdout b/tests/reference/asr-test_c_interop_01-e374f43.stdout index cc4baba465..38662e80b5 100644 --- a/tests/reference/asr-test_c_interop_01-e374f43.stdout +++ b/tests/reference/asr-test_c_interop_01-e374f43.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 111 {_lfortran_bgt32: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) BindC Public Required .false.), i: (Variable 4 i [] In () () Default (Integer 4 []) BindC Public Required .true.), j: (Variable 4 j [] In () () Default (Integer 4 []) BindC Public Required .true.)}) _lfortran_bgt32 (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 i) (Var 4 j)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_bgt64: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) BindC Public Required .false.), i: (Variable 5 i [] In () () Default (Integer 8 []) BindC Public Required .true.), j: (Variable 5 j [] In () () Default (Integer 8 []) BindC Public Required .true.)}) _lfortran_bgt64 (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 5 i) (Var 5 j)] [] (Var 5 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 2 {_lpython_return_variable: (Variable 2 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 2 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 2 x)] [] (Var 2 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 3 {_lpython_return_variable: (Variable 3 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 3 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 3 x)] [] (Var 3 _lpython_return_variable) Public .false. .false.), _lpython_main_program: (Function (SymbolTable 110 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_c_callbacks] [] [(SubroutineCall 111 test_c_callbacks () [] ())] () Public .false. .false.), test_c_callbacks: (Function (SymbolTable 6 {abs: (ExternalSymbol 6 abs 8 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 6 abs@__lpython_overloaded_0__abs 8 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_1__abs: (ExternalSymbol 6 abs@__lpython_overloaded_1__abs 8 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), pi: (Variable 6 pi [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.)}) test_c_callbacks (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs _lfortran_dsin abs@__lpython_overloaded_0__abs _lfortran_dsin abs@__lpython_overloaded_1__abs _lfortran_ssin abs@__lpython_overloaded_1__abs _lfortran_ssin _lfortran_bgt32 _lfortran_bgt32 _lfortran_bgt64 _lfortran_bgt64] [] [(= (Var 6 pi) (RealConstant 3.141593 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 6 abs@__lpython_overloaded_0__abs 6 abs [((RealBinOp (FunctionCall 111 _lfortran_dsin () [((Var 6 pi))] (Real 8 []) () ()) Sub (RealConstant 0.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 6 abs@__lpython_overloaded_0__abs 6 abs [((RealBinOp (FunctionCall 111 _lfortran_dsin () [((RealBinOp (Var 6 pi) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()))] (Real 8 []) () ()) Sub (RealConstant 1.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 6 abs@__lpython_overloaded_1__abs 6 abs [((RealBinOp (FunctionCall 111 _lfortran_ssin () [((Cast (Var 6 pi) RealToReal (Real 4 []) ()))] (Real 4 []) () ()) Sub (Cast (RealConstant 0.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000000 (Real 4 []))) (Real 4 []) ()))] (Real 4 []) () ()) Lt (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 6 abs@__lpython_overloaded_1__abs 6 abs [((RealBinOp (FunctionCall 111 _lfortran_ssin () [((Cast (RealBinOp (Var 6 pi) Div (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) RealToReal (Real 4 []) ()))] (Real 4 []) () ()) Sub (Cast (RealConstant 1.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 1.000000 (Real 4 []))) (Real 4 []) ()))] (Real 4 []) () ()) Lt (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 111 _lfortran_bgt32 () [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 111 _lfortran_bgt32 () [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 111 _lfortran_bgt64 () [((Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 3 (Integer 8 [])))) ((Cast (IntegerConstant 4 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 []))))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 111 _lfortran_bgt64 () [((Cast (IntegerConstant 4 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 [])))) ((Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 3 (Integer 8 []))))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 109 {_lpython_main_program: (ExternalSymbol 109 _lpython_main_program 111 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 109 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 112 {_lfortran_bgt32: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) BindC Public Required .false.), i: (Variable 4 i [] In () () Default (Integer 4 []) BindC Public Required .true.), j: (Variable 4 j [] In () () Default (Integer 4 []) BindC Public Required .true.)}) _lfortran_bgt32 (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 i) (Var 4 j)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_bgt64: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) BindC Public Required .false.), i: (Variable 5 i [] In () () Default (Integer 8 []) BindC Public Required .true.), j: (Variable 5 j [] In () () Default (Integer 8 []) BindC Public Required .true.)}) _lfortran_bgt64 (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 5 i) (Var 5 j)] [] (Var 5 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 2 {_lpython_return_variable: (Variable 2 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 2 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 2 x)] [] (Var 2 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 3 {_lpython_return_variable: (Variable 3 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 3 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 3 x)] [] (Var 3 _lpython_return_variable) Public .false. .false.), _lpython_main_program: (Function (SymbolTable 111 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_c_callbacks] [] [(SubroutineCall 112 test_c_callbacks () [] ())] () Public .false. .false.), test_c_callbacks: (Function (SymbolTable 6 {abs: (ExternalSymbol 6 abs 8 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 6 abs@__lpython_overloaded_0__abs 8 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_1__abs: (ExternalSymbol 6 abs@__lpython_overloaded_1__abs 8 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), pi: (Variable 6 pi [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.)}) test_c_callbacks (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs _lfortran_dsin abs@__lpython_overloaded_0__abs _lfortran_dsin abs@__lpython_overloaded_1__abs _lfortran_ssin abs@__lpython_overloaded_1__abs _lfortran_ssin _lfortran_bgt32 _lfortran_bgt32 _lfortran_bgt64 _lfortran_bgt64] [] [(= (Var 6 pi) (RealConstant 3.141593 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 6 abs@__lpython_overloaded_0__abs 6 abs [((RealBinOp (FunctionCall 112 _lfortran_dsin () [((Var 6 pi))] (Real 8 []) () ()) Sub (RealConstant 0.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 6 abs@__lpython_overloaded_0__abs 6 abs [((RealBinOp (FunctionCall 112 _lfortran_dsin () [((RealBinOp (Var 6 pi) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()))] (Real 8 []) () ()) Sub (RealConstant 1.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 6 abs@__lpython_overloaded_1__abs 6 abs [((RealBinOp (FunctionCall 112 _lfortran_ssin () [((Cast (Var 6 pi) RealToReal (Real 4 []) ()))] (Real 4 []) () ()) Sub (Cast (RealConstant 0.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000000 (Real 4 []))) (Real 4 []) ()))] (Real 4 []) () ()) Lt (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 6 abs@__lpython_overloaded_1__abs 6 abs [((RealBinOp (FunctionCall 112 _lfortran_ssin () [((Cast (RealBinOp (Var 6 pi) Div (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()) RealToReal (Real 4 []) ()))] (Real 4 []) () ()) Sub (Cast (RealConstant 1.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 1.000000 (Real 4 []))) (Real 4 []) ()))] (Real 4 []) () ()) Lt (Cast (RealConstant 0.000001 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 0.000001 (Real 4 []))) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 112 _lfortran_bgt32 () [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 112 _lfortran_bgt32 () [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 112 _lfortran_bgt64 () [((Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 3 (Integer 8 [])))) ((Cast (IntegerConstant 4 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 []))))] (Integer 4 []) () ()) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 112 _lfortran_bgt64 () [((Cast (IntegerConstant 4 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 4 (Integer 8 [])))) ((Cast (IntegerConstant 3 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 3 (Integer 8 []))))] (Integer 4 []) () ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 110 {_lpython_main_program: (ExternalSymbol 110 _lpython_main_program 112 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 110 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_complex_01-a6def58.json b/tests/reference/asr-test_complex_01-a6def58.json index 72b904ac24..8736958460 100644 --- a/tests/reference/asr-test_complex_01-a6def58.json +++ b/tests/reference/asr-test_complex_01-a6def58.json @@ -2,11 +2,11 @@ "basename": "asr-test_complex_01-a6def58", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_complex_01.py", - "infile_hash": "9bb8005b8d6c2f5c13d1df7533848eafe15b52f762aa9d889e818ae5", + "infile_hash": "e580480b37e5bbfcd01d5eb412375a8a3c1ef374b5fedfb661485763", "outfile": null, "outfile_hash": null, "stdout": "asr-test_complex_01-a6def58.stdout", - "stdout_hash": "8417ca652b5379ca2897196706bd6ced412b7fbfe4f53d828810b5c2", + "stdout_hash": "6d044b1198f11297b2225e104e1268e07ee5b623887a34b811662115", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_complex_01-a6def58.stdout b/tests/reference/asr-test_complex_01-a6def58.stdout index 54f3897f80..1436d12587 100644 --- a/tests/reference/asr-test_complex_01-a6def58.stdout +++ b/tests/reference/asr-test_complex_01-a6def58.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 111 {_lpython_main_program: (Function (SymbolTable 110 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [check] [] [(SubroutineCall 111 check () [] ())] () Public .false. .false.), check: (Function (SymbolTable 6 {}) check (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_real_imag test_complex test_complex_unary_minus test_complex_not] [] [(SubroutineCall 111 test_real_imag () [] ()) (SubroutineCall 111 test_complex () [] ()) (SubroutineCall 111 test_complex_unary_minus () [] ()) (SubroutineCall 111 test_complex_not () [] ())] () Public .false. .false.), test_complex: (Function (SymbolTable 3 {a: (Variable 3 a [] Local () () Default (Real 8 []) Source Public Required .false.), a2: (Variable 3 a2 [] Local () () Default (Real 4 []) Source Public Required .false.), a3: (Variable 3 a3 [] Local () () Default (Real 4 []) Source Public Required .false.), abs: (ExternalSymbol 3 abs 8 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 3 abs@__lpython_overloaded_0__abs 8 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_1__abs: (ExternalSymbol 3 abs@__lpython_overloaded_1__abs 8 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), complex: (ExternalSymbol 3 complex 8 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_10__complex: (ExternalSymbol 3 complex@__lpython_overloaded_10__complex 8 __lpython_overloaded_10__complex lpython_builtin [] __lpython_overloaded_10__complex Public), complex@__lpython_overloaded_11__complex: (ExternalSymbol 3 complex@__lpython_overloaded_11__complex 8 __lpython_overloaded_11__complex lpython_builtin [] __lpython_overloaded_11__complex Public), complex@__lpython_overloaded_12__complex: (ExternalSymbol 3 complex@__lpython_overloaded_12__complex 8 __lpython_overloaded_12__complex lpython_builtin [] __lpython_overloaded_12__complex Public), complex@__lpython_overloaded_13__complex: (ExternalSymbol 3 complex@__lpython_overloaded_13__complex 8 __lpython_overloaded_13__complex lpython_builtin [] __lpython_overloaded_13__complex Public), complex@__lpython_overloaded_14__complex: (ExternalSymbol 3 complex@__lpython_overloaded_14__complex 8 __lpython_overloaded_14__complex lpython_builtin [] __lpython_overloaded_14__complex Public), complex@__lpython_overloaded_5__complex: (ExternalSymbol 3 complex@__lpython_overloaded_5__complex 8 __lpython_overloaded_5__complex lpython_builtin [] __lpython_overloaded_5__complex Public), complex@__lpython_overloaded_6__complex: (ExternalSymbol 3 complex@__lpython_overloaded_6__complex 8 __lpython_overloaded_6__complex lpython_builtin [] __lpython_overloaded_6__complex Public), complex@__lpython_overloaded_7__complex: (ExternalSymbol 3 complex@__lpython_overloaded_7__complex 8 __lpython_overloaded_7__complex lpython_builtin [] __lpython_overloaded_7__complex Public), complex@__lpython_overloaded_8__complex: (ExternalSymbol 3 complex@__lpython_overloaded_8__complex 8 __lpython_overloaded_8__complex lpython_builtin [] __lpython_overloaded_8__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 3 complex@__lpython_overloaded_9__complex 8 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public), eps: (Variable 3 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i1: (Variable 3 i1 [] Local () () Default (Integer 4 []) Source Public Required .false.), i2: (Variable 3 i2 [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 3 x [] Local () () Default (Complex 8 []) Source Public Required .false.), x2: (Variable 3 x2 [] Local () () Default (Complex 4 []) Source Public Required .false.)}) test_complex (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_5__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_9__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_13__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_14__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_5__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_6__complex abs@__lpython_overloaded_1__abs complex@__lpython_overloaded_7__complex complex@__lpython_overloaded_8__complex complex@__lpython_overloaded_11__complex complex@__lpython_overloaded_9__complex complex@__lpython_overloaded_10__complex complex@__lpython_overloaded_12__complex] [] [(= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_5__complex 3 complex [((RealConstant 4.500000 (Real 8 []))) ((RealConstant 6.700000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 4.500000 6.700000 (Complex 8 [])) ()) ()) (= (Var 3 eps) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexRe (Var 3 x) (Real 8 []) ()) Sub (RealConstant 4.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x) (Real 8 []) ()) Sub (RealConstant 6.700000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_9__complex 3 complex [((IntegerUnaryMinus (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4 (Integer 4 [])))) ((IntegerConstant 2 (Integer 4 [])))] (Complex 8 []) (ComplexConstant -4.000000 2.000000 (Complex 8 [])) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexRe (Var 3 x) (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 4.000000 (Real 8 [])) (Real 8 []) (RealConstant -4.000000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x) (Real 8 []) ()) Sub (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_13__complex 3 complex [((IntegerConstant 4 (Integer 4 []))) ((RealConstant 7.890000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 4.000000 7.890000 (Complex 8 [])) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexRe (Var 3 x) (Real 8 []) ()) Sub (RealConstant 4.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x) (Real 8 []) ()) Sub (RealConstant 7.890000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_14__complex 3 complex [((RealConstant 5.600000 (Real 8 []))) ((IntegerConstant 0 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 5.600000 0.000000 (Complex 8 [])) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexRe (Var 3 x) (Real 8 []) ()) Sub (RealConstant 5.600000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x) (Real 8 []) ()) Sub (RealConstant 0.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 a) (RealConstant 534.600000 (Real 8 [])) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_5__complex 3 complex [((Var 3 a)) ((RealUnaryMinus (Var 3 a) (Real 8 []) ()))] (Complex 8 []) () ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexRe (Var 3 x) (Real 8 []) ()) Sub (RealConstant 534.600000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x) (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 534.600000 (Real 8 [])) (Real 8 []) (RealConstant -534.600000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 a2) (RealUnaryMinus (Cast (RealConstant 423.543081 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 423.543081 (Real 4 []))) (Real 4 []) (RealConstant -423.543081 (Real 4 []))) ()) (= (Var 3 a3) (Cast (RealConstant 34.500000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 34.500000 (Real 4 []))) ()) (= (Var 3 x2) (FunctionCall 3 complex@__lpython_overloaded_6__complex 3 complex [((Var 3 a2)) ((Var 3 a3))] (Complex 4 []) () ()) ()) (Assert (RealCompare (Cast (FunctionCall 3 abs@__lpython_overloaded_1__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x2) (Real 4 []) ()) Sub (Cast (RealConstant 34.500000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 34.500000 (Real 4 []))) (Real 4 []) ()))] (Real 4 []) () ()) RealToReal (Real 8 []) ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 i1) (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) ()) (= (Var 3 i2) (IntegerUnaryMinus (Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 []))) (Integer 8 []) (IntegerConstant -6 (Integer 8 []))) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_7__complex 3 complex [((Var 3 a3)) ((Var 3 a))] (Complex 8 []) () ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_8__complex 3 complex [((Var 3 a)) ((Var 3 a3))] (Complex 8 []) () ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_11__complex 3 complex [((Var 3 i1)) ((Var 3 i2))] (Complex 8 []) () ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_9__complex 3 complex [((Var 3 i1)) ((IntegerUnaryMinus (Var 3 i1) (Integer 4 []) ()))] (Complex 8 []) () ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_10__complex 3 complex [((IntegerUnaryMinus (Var 3 i2) (Integer 8 []) ())) ((IntegerUnaryMinus (Var 3 i2) (Integer 8 []) ()))] (Complex 8 []) () ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_12__complex 3 complex [((Var 3 i2)) ((IntegerUnaryMinus (Var 3 i1) (Integer 4 []) ()))] (Complex 8 []) () ()) ())] () Public .false. .false.), test_complex_not: (Function (SymbolTable 5 {b: (Variable 5 b [] Local () () Default (Logical 4 []) Source Public Required .false.), c: (Variable 5 c [] Local () () Default (Complex 4 []) Source Public Required .false.), c2: (Variable 5 c2 [] Local () () Default (Complex 8 []) Source Public Required .false.), complex: (ExternalSymbol 5 complex 8 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_9__complex: (ExternalSymbol 5 complex@__lpython_overloaded_9__complex 8 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public)}) test_complex_not (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_9__complex complex@__lpython_overloaded_9__complex] [] [(= (Var 5 c) (Cast (FunctionCall 5 complex@__lpython_overloaded_9__complex 5 complex [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 5 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 4.000000 5.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 4.000000 5.000000 (Complex 4 []))) ()) (= (Var 5 b) (LogicalNot (Cast (Var 5 c) ComplexToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (Assert (LogicalNot (Var 5 b) (Logical 4 []) ()) ()) (= (Var 5 c2) (FunctionCall 5 complex@__lpython_overloaded_9__complex 5 complex [((IntegerConstant 0 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 [])) ()) ()) (= (Var 5 b) (LogicalNot (Cast (Var 5 c2) ComplexToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (Assert (Var 5 b) ())] () Public .false. .false.), test_complex_unary_minus: (Function (SymbolTable 4 {_c: (Variable 4 _c [] Local () () Default (Complex 4 []) Source Public Required .false.), abs: (ExternalSymbol 4 abs 8 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 4 abs@__lpython_overloaded_0__abs 8 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), c: (Variable 4 c [] Local () () Default (Complex 4 []) Source Public Required .false.), c2: (Variable 4 c2 [] Local () () Default (Complex 8 []) Source Public Required .false.), complex: (ExternalSymbol 4 complex 8 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_13__complex: (ExternalSymbol 4 complex@__lpython_overloaded_13__complex 8 __lpython_overloaded_13__complex lpython_builtin [] __lpython_overloaded_13__complex Public), complex@__lpython_overloaded_5__complex: (ExternalSymbol 4 complex@__lpython_overloaded_5__complex 8 __lpython_overloaded_5__complex lpython_builtin [] __lpython_overloaded_5__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 4 complex@__lpython_overloaded_9__complex 8 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public)}) test_complex_unary_minus (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_13__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_9__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_5__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [] [(= (Var 4 c) (Cast (FunctionCall 4 complex@__lpython_overloaded_13__complex 4 complex [((IntegerConstant 3 (Integer 4 []))) ((RealConstant 4.500000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.500000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 3.000000 4.500000 (Complex 4 []))) ()) (= (Var 4 _c) (ComplexUnaryMinus (Var 4 c) (Complex 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (Cast (ComplexRe (Var 4 _c) (Real 4 []) ()) RealToReal (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 3.000000 (Real 8 [])) (Real 8 []) (RealConstant -3.000000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (Cast (ComplexIm (Var 4 _c) (Real 4 []) ()) RealToReal (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 4.500000 (Real 8 [])) (Real 8 []) (RealConstant -4.500000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 4 _c) (Cast (FunctionCall 4 complex@__lpython_overloaded_9__complex 4 complex [((IntegerConstant 5 (Integer 4 []))) ((IntegerUnaryMinus (IntegerConstant 78 (Integer 4 [])) (Integer 4 []) (IntegerConstant -78 (Integer 4 []))))] (Complex 8 []) (ComplexConstant 5.000000 -78.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 5.000000 -78.000000 (Complex 4 []))) ()) (= (Var 4 _c) (ComplexUnaryMinus (Var 4 _c) (Complex 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (Cast (ComplexRe (Var 4 _c) (Real 4 []) ()) RealToReal (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 5.000000 (Real 8 [])) (Real 8 []) (RealConstant -5.000000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (Cast (ComplexIm (Var 4 _c) (Real 4 []) ()) RealToReal (Real 8 []) ()) Sub (RealConstant 78.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 4 c2) (FunctionCall 4 complex@__lpython_overloaded_5__complex 4 complex [((RealUnaryMinus (RealConstant 4.500000 (Real 8 [])) (Real 8 []) (RealConstant -4.500000 (Real 8 [])))) ((RealUnaryMinus (RealConstant 7.800000 (Real 8 [])) (Real 8 []) (RealConstant -7.800000 (Real 8 []))))] (Complex 8 []) (ComplexConstant -4.500000 -7.800000 (Complex 8 [])) ()) ()) (= (Var 4 c2) (ComplexUnaryMinus (Var 4 c2) (Complex 8 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (ComplexRe (Var 4 c2) (Real 8 []) ()) Sub (RealConstant 4.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (ComplexIm (Var 4 c2) (Real 8 []) ()) Sub (RealConstant 7.800000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 4 c2) (ComplexBinOp (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 3.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 4.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 []))) ()) (= (Var 4 c2) (ComplexUnaryMinus (Var 4 c2) (Complex 8 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (ComplexRe (Var 4 c2) (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 3.000000 (Real 8 [])) (Real 8 []) (RealConstant -3.000000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (ComplexIm (Var 4 c2) (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 4.000000 (Real 8 [])) (Real 8 []) (RealConstant -4.000000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ())] () Public .false. .false.), test_real_imag: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Real 8 []) Source Public Required .false.), abs: (ExternalSymbol 2 abs 8 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 2 abs@__lpython_overloaded_0__abs 8 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), b: (Variable 2 b [] Local () () Default (Real 8 []) Source Public Required .false.), eps: (Variable 2 eps [] Local () () Default (Real 8 []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (Complex 8 []) Source Public Required .false.)}) test_real_imag (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [] [(= (Var 2 x) (ComplexBinOp (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 2.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 3.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 2.000000 3.000000 (Complex 8 []))) ()) (= (Var 2 eps) (RealConstant 0.000000 (Real 8 [])) ()) (= (Var 2 a) (ComplexRe (Var 2 x) (Real 8 []) ()) ()) (= (Var 2 b) (ComplexIm (Var 2 x) (Real 8 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Var 2 a) Sub (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Var 2 b) Sub (RealConstant 3.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 2 eps) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 109 {_lpython_main_program: (ExternalSymbol 109 _lpython_main_program 111 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 109 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 112 {_lpython_main_program: (Function (SymbolTable 111 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [check] [] [(SubroutineCall 112 check () [] ())] () Public .false. .false.), check: (Function (SymbolTable 6 {}) check (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_real_imag test_complex test_complex_unary_minus test_complex_not] [] [(SubroutineCall 112 test_real_imag () [] ()) (SubroutineCall 112 test_complex () [] ()) (SubroutineCall 112 test_complex_unary_minus () [] ()) (SubroutineCall 112 test_complex_not () [] ())] () Public .false. .false.), test_complex: (Function (SymbolTable 3 {a: (Variable 3 a [] Local () () Default (Real 8 []) Source Public Required .false.), a2: (Variable 3 a2 [] Local () () Default (Real 4 []) Source Public Required .false.), a3: (Variable 3 a3 [] Local () () Default (Real 4 []) Source Public Required .false.), abs: (ExternalSymbol 3 abs 8 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 3 abs@__lpython_overloaded_0__abs 8 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_1__abs: (ExternalSymbol 3 abs@__lpython_overloaded_1__abs 8 __lpython_overloaded_1__abs lpython_builtin [] __lpython_overloaded_1__abs Public), complex: (ExternalSymbol 3 complex 8 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_10__complex: (ExternalSymbol 3 complex@__lpython_overloaded_10__complex 8 __lpython_overloaded_10__complex lpython_builtin [] __lpython_overloaded_10__complex Public), complex@__lpython_overloaded_11__complex: (ExternalSymbol 3 complex@__lpython_overloaded_11__complex 8 __lpython_overloaded_11__complex lpython_builtin [] __lpython_overloaded_11__complex Public), complex@__lpython_overloaded_12__complex: (ExternalSymbol 3 complex@__lpython_overloaded_12__complex 8 __lpython_overloaded_12__complex lpython_builtin [] __lpython_overloaded_12__complex Public), complex@__lpython_overloaded_13__complex: (ExternalSymbol 3 complex@__lpython_overloaded_13__complex 8 __lpython_overloaded_13__complex lpython_builtin [] __lpython_overloaded_13__complex Public), complex@__lpython_overloaded_14__complex: (ExternalSymbol 3 complex@__lpython_overloaded_14__complex 8 __lpython_overloaded_14__complex lpython_builtin [] __lpython_overloaded_14__complex Public), complex@__lpython_overloaded_5__complex: (ExternalSymbol 3 complex@__lpython_overloaded_5__complex 8 __lpython_overloaded_5__complex lpython_builtin [] __lpython_overloaded_5__complex Public), complex@__lpython_overloaded_6__complex: (ExternalSymbol 3 complex@__lpython_overloaded_6__complex 8 __lpython_overloaded_6__complex lpython_builtin [] __lpython_overloaded_6__complex Public), complex@__lpython_overloaded_7__complex: (ExternalSymbol 3 complex@__lpython_overloaded_7__complex 8 __lpython_overloaded_7__complex lpython_builtin [] __lpython_overloaded_7__complex Public), complex@__lpython_overloaded_8__complex: (ExternalSymbol 3 complex@__lpython_overloaded_8__complex 8 __lpython_overloaded_8__complex lpython_builtin [] __lpython_overloaded_8__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 3 complex@__lpython_overloaded_9__complex 8 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public), eps: (Variable 3 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i1: (Variable 3 i1 [] Local () () Default (Integer 4 []) Source Public Required .false.), i2: (Variable 3 i2 [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 3 x [] Local () () Default (Complex 8 []) Source Public Required .false.), x2: (Variable 3 x2 [] Local () () Default (Complex 4 []) Source Public Required .false.)}) test_complex (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_5__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_9__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_13__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_14__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_5__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_6__complex abs@__lpython_overloaded_1__abs complex@__lpython_overloaded_7__complex complex@__lpython_overloaded_8__complex complex@__lpython_overloaded_11__complex complex@__lpython_overloaded_9__complex complex@__lpython_overloaded_10__complex complex@__lpython_overloaded_12__complex] [] [(= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_5__complex 3 complex [((RealConstant 4.500000 (Real 8 []))) ((RealConstant 6.700000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 4.500000 6.700000 (Complex 8 [])) ()) ()) (= (Var 3 eps) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexRe (Var 3 x) (Real 8 []) ()) Sub (RealConstant 4.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x) (Real 8 []) ()) Sub (RealConstant 6.700000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_9__complex 3 complex [((IntegerUnaryMinus (IntegerConstant 4 (Integer 4 [])) (Integer 4 []) (IntegerConstant -4 (Integer 4 [])))) ((IntegerConstant 2 (Integer 4 [])))] (Complex 8 []) (ComplexConstant -4.000000 2.000000 (Complex 8 [])) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexRe (Var 3 x) (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 4.000000 (Real 8 [])) (Real 8 []) (RealConstant -4.000000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x) (Real 8 []) ()) Sub (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_13__complex 3 complex [((IntegerConstant 4 (Integer 4 []))) ((RealConstant 7.890000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 4.000000 7.890000 (Complex 8 [])) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexRe (Var 3 x) (Real 8 []) ()) Sub (RealConstant 4.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x) (Real 8 []) ()) Sub (RealConstant 7.890000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_14__complex 3 complex [((RealConstant 5.600000 (Real 8 []))) ((IntegerConstant 0 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 5.600000 0.000000 (Complex 8 [])) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexRe (Var 3 x) (Real 8 []) ()) Sub (RealConstant 5.600000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x) (Real 8 []) ()) Sub (RealConstant 0.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 a) (RealConstant 534.600000 (Real 8 [])) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_5__complex 3 complex [((Var 3 a)) ((RealUnaryMinus (Var 3 a) (Real 8 []) ()))] (Complex 8 []) () ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexRe (Var 3 x) (Real 8 []) ()) Sub (RealConstant 534.600000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 abs@__lpython_overloaded_0__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x) (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 534.600000 (Real 8 [])) (Real 8 []) (RealConstant -534.600000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 a2) (RealUnaryMinus (Cast (RealConstant 423.543081 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 423.543081 (Real 4 []))) (Real 4 []) (RealConstant -423.543081 (Real 4 []))) ()) (= (Var 3 a3) (Cast (RealConstant 34.500000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 34.500000 (Real 4 []))) ()) (= (Var 3 x2) (FunctionCall 3 complex@__lpython_overloaded_6__complex 3 complex [((Var 3 a2)) ((Var 3 a3))] (Complex 4 []) () ()) ()) (Assert (RealCompare (Cast (FunctionCall 3 abs@__lpython_overloaded_1__abs 3 abs [((RealBinOp (ComplexIm (Var 3 x2) (Real 4 []) ()) Sub (Cast (RealConstant 34.500000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 34.500000 (Real 4 []))) (Real 4 []) ()))] (Real 4 []) () ()) RealToReal (Real 8 []) ()) LtE (Var 3 eps) (Logical 4 []) ()) ()) (= (Var 3 i1) (IntegerUnaryMinus (IntegerConstant 5 (Integer 4 [])) (Integer 4 []) (IntegerConstant -5 (Integer 4 []))) ()) (= (Var 3 i2) (IntegerUnaryMinus (Cast (IntegerConstant 6 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 6 (Integer 8 []))) (Integer 8 []) (IntegerConstant -6 (Integer 8 []))) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_7__complex 3 complex [((Var 3 a3)) ((Var 3 a))] (Complex 8 []) () ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_8__complex 3 complex [((Var 3 a)) ((Var 3 a3))] (Complex 8 []) () ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_11__complex 3 complex [((Var 3 i1)) ((Var 3 i2))] (Complex 8 []) () ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_9__complex 3 complex [((Var 3 i1)) ((IntegerUnaryMinus (Var 3 i1) (Integer 4 []) ()))] (Complex 8 []) () ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_10__complex 3 complex [((IntegerUnaryMinus (Var 3 i2) (Integer 8 []) ())) ((IntegerUnaryMinus (Var 3 i2) (Integer 8 []) ()))] (Complex 8 []) () ()) ()) (= (Var 3 x) (FunctionCall 3 complex@__lpython_overloaded_12__complex 3 complex [((Var 3 i2)) ((IntegerUnaryMinus (Var 3 i1) (Integer 4 []) ()))] (Complex 8 []) () ()) ())] () Public .false. .false.), test_complex_not: (Function (SymbolTable 5 {b: (Variable 5 b [] Local () () Default (Logical 4 []) Source Public Required .false.), c: (Variable 5 c [] Local () () Default (Complex 4 []) Source Public Required .false.), c2: (Variable 5 c2 [] Local () () Default (Complex 8 []) Source Public Required .false.), complex: (ExternalSymbol 5 complex 8 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_9__complex: (ExternalSymbol 5 complex@__lpython_overloaded_9__complex 8 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public)}) test_complex_not (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_9__complex complex@__lpython_overloaded_9__complex] [] [(= (Var 5 c) (Cast (FunctionCall 5 complex@__lpython_overloaded_9__complex 5 complex [((IntegerConstant 4 (Integer 4 []))) ((IntegerConstant 5 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 4.000000 5.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 4.000000 5.000000 (Complex 4 []))) ()) (= (Var 5 b) (LogicalNot (Cast (Var 5 c) ComplexToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (Assert (LogicalNot (Var 5 b) (Logical 4 []) ()) ()) (= (Var 5 c2) (FunctionCall 5 complex@__lpython_overloaded_9__complex 5 complex [((IntegerConstant 0 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 0.000000 0.000000 (Complex 8 [])) ()) ()) (= (Var 5 b) (LogicalNot (Cast (Var 5 c2) ComplexToLogical (Logical 4 []) ()) (Logical 4 []) ()) ()) (Assert (Var 5 b) ())] () Public .false. .false.), test_complex_unary_minus: (Function (SymbolTable 4 {_c: (Variable 4 _c [] Local () () Default (Complex 4 []) Source Public Required .false.), abs: (ExternalSymbol 4 abs 8 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 4 abs@__lpython_overloaded_0__abs 8 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), c: (Variable 4 c [] Local () () Default (Complex 4 []) Source Public Required .false.), c2: (Variable 4 c2 [] Local () () Default (Complex 8 []) Source Public Required .false.), complex: (ExternalSymbol 4 complex 8 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_13__complex: (ExternalSymbol 4 complex@__lpython_overloaded_13__complex 8 __lpython_overloaded_13__complex lpython_builtin [] __lpython_overloaded_13__complex Public), complex@__lpython_overloaded_5__complex: (ExternalSymbol 4 complex@__lpython_overloaded_5__complex 8 __lpython_overloaded_5__complex lpython_builtin [] __lpython_overloaded_5__complex Public), complex@__lpython_overloaded_9__complex: (ExternalSymbol 4 complex@__lpython_overloaded_9__complex 8 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public)}) test_complex_unary_minus (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_13__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_9__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs complex@__lpython_overloaded_5__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [] [(= (Var 4 c) (Cast (FunctionCall 4 complex@__lpython_overloaded_13__complex 4 complex [((IntegerConstant 3 (Integer 4 []))) ((RealConstant 4.500000 (Real 8 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.500000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 3.000000 4.500000 (Complex 4 []))) ()) (= (Var 4 _c) (ComplexUnaryMinus (Var 4 c) (Complex 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (Cast (ComplexRe (Var 4 _c) (Real 4 []) ()) RealToReal (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 3.000000 (Real 8 [])) (Real 8 []) (RealConstant -3.000000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (Cast (ComplexIm (Var 4 _c) (Real 4 []) ()) RealToReal (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 4.500000 (Real 8 [])) (Real 8 []) (RealConstant -4.500000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 4 _c) (Cast (FunctionCall 4 complex@__lpython_overloaded_9__complex 4 complex [((IntegerConstant 5 (Integer 4 []))) ((IntegerUnaryMinus (IntegerConstant 78 (Integer 4 [])) (Integer 4 []) (IntegerConstant -78 (Integer 4 []))))] (Complex 8 []) (ComplexConstant 5.000000 -78.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 5.000000 -78.000000 (Complex 4 []))) ()) (= (Var 4 _c) (ComplexUnaryMinus (Var 4 _c) (Complex 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (Cast (ComplexRe (Var 4 _c) (Real 4 []) ()) RealToReal (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 5.000000 (Real 8 [])) (Real 8 []) (RealConstant -5.000000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (Cast (ComplexIm (Var 4 _c) (Real 4 []) ()) RealToReal (Real 8 []) ()) Sub (RealConstant 78.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 4 c2) (FunctionCall 4 complex@__lpython_overloaded_5__complex 4 complex [((RealUnaryMinus (RealConstant 4.500000 (Real 8 [])) (Real 8 []) (RealConstant -4.500000 (Real 8 [])))) ((RealUnaryMinus (RealConstant 7.800000 (Real 8 [])) (Real 8 []) (RealConstant -7.800000 (Real 8 []))))] (Complex 8 []) (ComplexConstant -4.500000 -7.800000 (Complex 8 [])) ()) ()) (= (Var 4 c2) (ComplexUnaryMinus (Var 4 c2) (Complex 8 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (ComplexRe (Var 4 c2) (Real 8 []) ()) Sub (RealConstant 4.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (ComplexIm (Var 4 c2) (Real 8 []) ()) Sub (RealConstant 7.800000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (= (Var 4 c2) (ComplexBinOp (Cast (IntegerConstant 3 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 3.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 4.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 []))) ()) (= (Var 4 c2) (ComplexUnaryMinus (Var 4 c2) (Complex 8 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (ComplexRe (Var 4 c2) (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 3.000000 (Real 8 [])) (Real 8 []) (RealConstant -3.000000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 4 abs@__lpython_overloaded_0__abs 4 abs [((RealBinOp (ComplexIm (Var 4 c2) (Real 8 []) ()) Sub (RealUnaryMinus (RealConstant 4.000000 (Real 8 [])) (Real 8 []) (RealConstant -4.000000 (Real 8 []))) (Real 8 []) ()))] (Real 8 []) () ()) LtE (RealConstant 0.000000 (Real 8 [])) (Logical 4 []) ()) ())] () Public .false. .false.), test_real_imag: (Function (SymbolTable 2 {a: (Variable 2 a [] Local () () Default (Real 8 []) Source Public Required .false.), abs: (ExternalSymbol 2 abs 8 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 2 abs@__lpython_overloaded_0__abs 8 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), b: (Variable 2 b [] Local () () Default (Real 8 []) Source Public Required .false.), eps: (Variable 2 eps [] Local () () Default (Real 8 []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (Complex 8 []) Source Public Required .false.)}) test_real_imag (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [] [(= (Var 2 x) (ComplexBinOp (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 2.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 3.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 2.000000 3.000000 (Complex 8 []))) ()) (= (Var 2 eps) (RealConstant 0.000000 (Real 8 [])) ()) (= (Var 2 a) (ComplexRe (Var 2 x) (Real 8 []) ()) ()) (= (Var 2 b) (ComplexIm (Var 2 x) (Real 8 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Var 2 a) Sub (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 2 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Var 2 b) Sub (RealConstant 3.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 2 eps) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 110 {_lpython_main_program: (ExternalSymbol 110 _lpython_main_program 112 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 110 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_complex_02-782ba2d.json b/tests/reference/asr-test_complex_02-782ba2d.json index dd598d3259..d71b5a777a 100644 --- a/tests/reference/asr-test_complex_02-782ba2d.json +++ b/tests/reference/asr-test_complex_02-782ba2d.json @@ -2,11 +2,11 @@ "basename": "asr-test_complex_02-782ba2d", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_complex_02.py", - "infile_hash": "f89daec2225e1da65f791cac35d151886e4889a3793489271e10fad4", + "infile_hash": "e6ee66d952deccec11d316a09f1d5b4bb4916ceb56a41a11dee03ae9", "outfile": null, "outfile_hash": null, "stdout": "asr-test_complex_02-782ba2d.stdout", - "stdout_hash": "1e55552d8a61a3e985a7e8db2d83e2d6f12fd953c517065fea7498cb", + "stdout_hash": "481a91e82b3ca55a87d0f9e808e52770847851076a5dbecf8a413268", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_complex_02-782ba2d.stdout b/tests/reference/asr-test_complex_02-782ba2d.stdout index 74332c93e6..f0c71b9dbe 100644 --- a/tests/reference/asr-test_complex_02-782ba2d.stdout +++ b/tests/reference/asr-test_complex_02-782ba2d.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 110 {_lpython_main_program: (Function (SymbolTable 109 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [check] [] [(SubroutineCall 110 check () [] ())] () Public .false. .false.), check: (Function (SymbolTable 5 {}) check (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_complex_abs test_complex_binop_32 test_complex_binop_64] [] [(SubroutineCall 110 test_complex_abs () [] ()) (SubroutineCall 110 test_complex_binop_32 () [] ()) (SubroutineCall 110 test_complex_binop_64 () [] ())] () Public .false. .false.), test_complex_abs: (Function (SymbolTable 2 {abs: (ExternalSymbol 2 abs 7 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 2 abs@__lpython_overloaded_0__abs 7 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_7__abs: (ExternalSymbol 2 abs@__lpython_overloaded_7__abs 7 __lpython_overloaded_7__abs lpython_builtin [] __lpython_overloaded_7__abs Public), abs@__lpython_overloaded_8__abs: (ExternalSymbol 2 abs@__lpython_overloaded_8__abs 7 __lpython_overloaded_8__abs lpython_builtin [] __lpython_overloaded_8__abs Public), complex: (ExternalSymbol 2 complex 7 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 7 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public), eps: (Variable 2 eps [] Local () () Default (Real 8 []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (Complex 4 []) Source Public Required .false.), y: (Variable 2 y [] Local () () Default (Complex 8 []) Source Public Required .false.)}) test_complex_abs (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_9__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_7__abs complex@__lpython_overloaded_9__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_8__abs] [] [(= (Var 2 x) (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 3.000000 4.000000 (Complex 4 []))) ()) (= (Var 2 eps) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Cast (FunctionCall 2 abs@__lpython_overloaded_7__abs 2 abs [((Var 2 x))] (Real 4 []) () ()) RealToReal (Real 8 []) ()) Sub (RealConstant 5.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (= (Var 2 y) (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 6 (Integer 4 []))) ((IntegerConstant 8 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 6.000000 8.000000 (Complex 8 [])) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 abs@__lpython_overloaded_8__abs 2 abs [((Var 2 y))] (Real 8 []) () ()) Sub (RealConstant 10.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ())] () Public .false. .false.), test_complex_binop_32: (Function (SymbolTable 3 {x: (Variable 3 x [] Local () () Default (Complex 4 []) Source Public Required .false.), y: (Variable 3 y [] Local () () Default (Complex 4 []) Source Public Required .false.), z: (Variable 3 z [] Local () () Default (Complex 4 []) Source Public Required .false.)}) test_complex_binop_32 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 3 x) (Cast (ComplexBinOp (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 2.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 3.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 2.000000 3.000000 (Complex 8 []))) ComplexToComplex (Complex 4 []) (ComplexConstant 2.000000 3.000000 (Complex 4 []))) ()) (= (Var 3 y) (Cast (ComplexBinOp (Cast (IntegerConstant 4 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 4.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 5.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 4.000000 5.000000 (Complex 8 []))) ComplexToComplex (Complex 4 []) (ComplexConstant 4.000000 5.000000 (Complex 4 []))) ()) (= (Var 3 z) (ComplexBinOp (Var 3 x) Add (Var 3 y) (Complex 4 []) ()) ()) (= (Var 3 z) (ComplexBinOp (Var 3 x) Sub (Var 3 y) (Complex 4 []) ()) ()) (= (Var 3 z) (ComplexBinOp (Var 3 x) Mul (Var 3 y) (Complex 4 []) ()) ()) (= (Var 3 z) (ComplexBinOp (Var 3 x) Pow (Var 3 y) (Complex 4 []) ()) ())] () Public .false. .false.), test_complex_binop_64: (Function (SymbolTable 4 {x: (Variable 4 x [] Local () () Default (Complex 8 []) Source Public Required .false.), y: (Variable 4 y [] Local () () Default (Complex 8 []) Source Public Required .false.), z: (Variable 4 z [] Local () () Default (Complex 8 []) Source Public Required .false.)}) test_complex_binop_64 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 4 x) (ComplexBinOp (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 2.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 3.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 2.000000 3.000000 (Complex 8 []))) ()) (= (Var 4 y) (ComplexBinOp (Cast (IntegerConstant 4 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 4.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 5.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 4.000000 5.000000 (Complex 8 []))) ()) (= (Var 4 z) (ComplexBinOp (Var 4 x) Add (Var 4 y) (Complex 8 []) ()) ()) (= (Var 4 z) (ComplexBinOp (Var 4 x) Sub (Var 4 y) (Complex 8 []) ()) ()) (= (Var 4 z) (ComplexBinOp (Var 4 x) Mul (Var 4 y) (Complex 8 []) ()) ()) (= (Var 4 z) (ComplexBinOp (Var 4 x) Pow (Var 4 y) (Complex 8 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 108 {_lpython_main_program: (ExternalSymbol 108 _lpython_main_program 110 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 108 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 111 {_lpython_main_program: (Function (SymbolTable 110 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [check] [] [(SubroutineCall 111 check () [] ())] () Public .false. .false.), check: (Function (SymbolTable 5 {}) check (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_complex_abs test_complex_binop_32 test_complex_binop_64] [] [(SubroutineCall 111 test_complex_abs () [] ()) (SubroutineCall 111 test_complex_binop_32 () [] ()) (SubroutineCall 111 test_complex_binop_64 () [] ())] () Public .false. .false.), test_complex_abs: (Function (SymbolTable 2 {abs: (ExternalSymbol 2 abs 7 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 2 abs@__lpython_overloaded_0__abs 7 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), abs@__lpython_overloaded_7__abs: (ExternalSymbol 2 abs@__lpython_overloaded_7__abs 7 __lpython_overloaded_7__abs lpython_builtin [] __lpython_overloaded_7__abs Public), abs@__lpython_overloaded_8__abs: (ExternalSymbol 2 abs@__lpython_overloaded_8__abs 7 __lpython_overloaded_8__abs lpython_builtin [] __lpython_overloaded_8__abs Public), complex: (ExternalSymbol 2 complex 7 complex lpython_builtin [] complex Private), complex@__lpython_overloaded_9__complex: (ExternalSymbol 2 complex@__lpython_overloaded_9__complex 7 __lpython_overloaded_9__complex lpython_builtin [] __lpython_overloaded_9__complex Public), eps: (Variable 2 eps [] Local () () Default (Real 8 []) Source Public Required .false.), x: (Variable 2 x [] Local () () Default (Complex 4 []) Source Public Required .false.), y: (Variable 2 y [] Local () () Default (Complex 8 []) Source Public Required .false.)}) test_complex_abs (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [complex@__lpython_overloaded_9__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_7__abs complex@__lpython_overloaded_9__complex abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_8__abs] [] [(= (Var 2 x) (Cast (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 3 (Integer 4 []))) ((IntegerConstant 4 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 3.000000 4.000000 (Complex 8 [])) ()) ComplexToComplex (Complex 4 []) (ComplexConstant 3.000000 4.000000 (Complex 4 []))) ()) (= (Var 2 eps) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (Cast (FunctionCall 2 abs@__lpython_overloaded_7__abs 2 abs [((Var 2 x))] (Real 4 []) () ()) RealToReal (Real 8 []) ()) Sub (RealConstant 5.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ()) (= (Var 2 y) (FunctionCall 2 complex@__lpython_overloaded_9__complex 2 complex [((IntegerConstant 6 (Integer 4 []))) ((IntegerConstant 8 (Integer 4 [])))] (Complex 8 []) (ComplexConstant 6.000000 8.000000 (Complex 8 [])) ()) ()) (Assert (RealCompare (FunctionCall 2 abs@__lpython_overloaded_0__abs 2 abs [((RealBinOp (FunctionCall 2 abs@__lpython_overloaded_8__abs 2 abs [((Var 2 y))] (Real 8 []) () ()) Sub (RealConstant 10.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 2 eps) (Logical 4 []) ()) ())] () Public .false. .false.), test_complex_binop_32: (Function (SymbolTable 3 {x: (Variable 3 x [] Local () () Default (Complex 4 []) Source Public Required .false.), y: (Variable 3 y [] Local () () Default (Complex 4 []) Source Public Required .false.), z: (Variable 3 z [] Local () () Default (Complex 4 []) Source Public Required .false.)}) test_complex_binop_32 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 3 x) (Cast (ComplexBinOp (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 2.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 3.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 2.000000 3.000000 (Complex 8 []))) ComplexToComplex (Complex 4 []) (ComplexConstant 2.000000 3.000000 (Complex 4 []))) ()) (= (Var 3 y) (Cast (ComplexBinOp (Cast (IntegerConstant 4 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 4.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 5.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 4.000000 5.000000 (Complex 8 []))) ComplexToComplex (Complex 4 []) (ComplexConstant 4.000000 5.000000 (Complex 4 []))) ()) (= (Var 3 z) (ComplexBinOp (Var 3 x) Add (Var 3 y) (Complex 4 []) ()) ()) (= (Var 3 z) (ComplexBinOp (Var 3 x) Sub (Var 3 y) (Complex 4 []) ()) ()) (= (Var 3 z) (ComplexBinOp (Var 3 x) Mul (Var 3 y) (Complex 4 []) ()) ()) (= (Var 3 z) (ComplexBinOp (Var 3 x) Pow (Var 3 y) (Complex 4 []) ()) ())] () Public .false. .false.), test_complex_binop_64: (Function (SymbolTable 4 {x: (Variable 4 x [] Local () () Default (Complex 8 []) Source Public Required .false.), y: (Variable 4 y [] Local () () Default (Complex 8 []) Source Public Required .false.), z: (Variable 4 z [] Local () () Default (Complex 8 []) Source Public Required .false.)}) test_complex_binop_64 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(= (Var 4 x) (ComplexBinOp (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 2.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 3.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 2.000000 3.000000 (Complex 8 []))) ()) (= (Var 4 y) (ComplexBinOp (Cast (IntegerConstant 4 (Integer 4 [])) IntegerToComplex (Complex 8 []) (ComplexConstant 4.000000 0.000000 (Complex 8 []))) Add (ComplexConstant 0.000000 5.000000 (Complex 8 [])) (Complex 8 []) (ComplexConstant 4.000000 5.000000 (Complex 8 []))) ()) (= (Var 4 z) (ComplexBinOp (Var 4 x) Add (Var 4 y) (Complex 8 []) ()) ()) (= (Var 4 z) (ComplexBinOp (Var 4 x) Sub (Var 4 y) (Complex 8 []) ()) ()) (= (Var 4 z) (ComplexBinOp (Var 4 x) Mul (Var 4 y) (Complex 8 []) ()) ()) (= (Var 4 z) (ComplexBinOp (Var 4 x) Pow (Var 4 y) (Complex 8 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 109 {_lpython_main_program: (ExternalSymbol 109 _lpython_main_program 111 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 109 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_dict10-8c0beff.json b/tests/reference/asr-test_dict10-8c0beff.json index 996913b069..0f7ae1272d 100644 --- a/tests/reference/asr-test_dict10-8c0beff.json +++ b/tests/reference/asr-test_dict10-8c0beff.json @@ -2,7 +2,7 @@ "basename": "asr-test_dict10-8c0beff", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_dict10.py", - "infile_hash": "6e7e12d241f428b975744850c68f7b4a401a6ba035922e37e66f07d1", + "infile_hash": "4cd31b5d018919c4889a0316adea871ea25d0587d04bd28d1d8e6cd4", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_dict11-2ab4e6c.json b/tests/reference/asr-test_dict11-2ab4e6c.json index 8a49f6e38b..89ed565509 100644 --- a/tests/reference/asr-test_dict11-2ab4e6c.json +++ b/tests/reference/asr-test_dict11-2ab4e6c.json @@ -2,7 +2,7 @@ "basename": "asr-test_dict11-2ab4e6c", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_dict11.py", - "infile_hash": "c1ffba7ea161c60aa89578a819f9c1ff89863c0e71118a40ce67a702", + "infile_hash": "4f1af506664662506acd3ce990f1b72ff744bb873162c9fe32dd9236", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_dict8-d960ce0.json b/tests/reference/asr-test_dict8-d960ce0.json index 8a64d6af99..10fa72e28d 100644 --- a/tests/reference/asr-test_dict8-d960ce0.json +++ b/tests/reference/asr-test_dict8-d960ce0.json @@ -2,7 +2,7 @@ "basename": "asr-test_dict8-d960ce0", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_dict8.py", - "infile_hash": "a0e29d11cde61d2c83b67392048930efb34f8ded6e42a4101f0b248d", + "infile_hash": "a27a4c687822a5d03dba00df1201fac438fd4eb20479020de3563655", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_dict9-907bda7.json b/tests/reference/asr-test_dict9-907bda7.json index 24ee65c481..3883167972 100644 --- a/tests/reference/asr-test_dict9-907bda7.json +++ b/tests/reference/asr-test_dict9-907bda7.json @@ -2,7 +2,7 @@ "basename": "asr-test_dict9-907bda7", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_dict9.py", - "infile_hash": "90e01bb400b78fa0a8fb11fc90924aacbb7f53677e42ceecc743215d", + "infile_hash": "09f382db99b7d322807aa7fcb8d12673a41ea17047b8adcd5b6302b1", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_func_args-a898a72.json b/tests/reference/asr-test_func_args-a898a72.json index f317418898..52ff1af35d 100644 --- a/tests/reference/asr-test_func_args-a898a72.json +++ b/tests/reference/asr-test_func_args-a898a72.json @@ -2,7 +2,7 @@ "basename": "asr-test_func_args-a898a72", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_func_args.py", - "infile_hash": "427f52e1aeb4ccdc2111e7c3e3938eba52b6a422f290eeb677e9dc77", + "infile_hash": "5fae2ad01849e5ba3fca0a85455a92199a779be76b908fed30fb6b7d", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_goto-ba9fd22.json b/tests/reference/asr-test_goto-ba9fd22.json index 98b0907e07..afa1b0f060 100644 --- a/tests/reference/asr-test_goto-ba9fd22.json +++ b/tests/reference/asr-test_goto-ba9fd22.json @@ -2,7 +2,7 @@ "basename": "asr-test_goto-ba9fd22", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_goto.py", - "infile_hash": "8b81c2245b3ca31576ac41f49247b3781d1759ac6be61e8512bfd0f1", + "infile_hash": "02cc918eba32d981a943d61cc908d9ccbdcebaa71f61b16f49ef28ba", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_import_01-b859c43.json b/tests/reference/asr-test_import_01-b859c43.json index a53896722b..4c1f0a511b 100644 --- a/tests/reference/asr-test_import_01-b859c43.json +++ b/tests/reference/asr-test_import_01-b859c43.json @@ -2,7 +2,7 @@ "basename": "asr-test_import_01-b859c43", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_import_01.py", - "infile_hash": "dcde95aa235a4257a7ee1b22b0d3fa4d9ba54209066e0a4688fd7722", + "infile_hash": "291b8bf62b25eaad7edd1fb6e4bd22d21c1dda6e488fa68562a98e99", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_integer_bitnot-08e2e96.json b/tests/reference/asr-test_integer_bitnot-08e2e96.json index 7206693fba..051d288c93 100644 --- a/tests/reference/asr-test_integer_bitnot-08e2e96.json +++ b/tests/reference/asr-test_integer_bitnot-08e2e96.json @@ -2,7 +2,7 @@ "basename": "asr-test_integer_bitnot-08e2e96", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_integer_bitnot.py", - "infile_hash": "dc976a358fbeebedead889f8e85b3eed4ac77ee20f68fcac58b81429", + "infile_hash": "ce63509c56eb6c68ca6d64cc2a195644f3d2fc285f3ec8865551eff5", "outfile": null, "outfile_hash": null, "stdout": "asr-test_integer_bitnot-08e2e96.stdout", diff --git a/tests/reference/asr-test_list1-73fd538.json b/tests/reference/asr-test_list1-73fd538.json index 7913f176a4..33b0c94fc7 100644 --- a/tests/reference/asr-test_list1-73fd538.json +++ b/tests/reference/asr-test_list1-73fd538.json @@ -2,7 +2,7 @@ "basename": "asr-test_list1-73fd538", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_list1.py", - "infile_hash": "86f36c119afcaef5c6f790c88c7c517fa6f766bfcc95d121bc16becd", + "infile_hash": "bab0faf6c848b07f8cbce0ed060c0f067f38963ce247d150559a75b4", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_list2-10ffdd7.json b/tests/reference/asr-test_list2-10ffdd7.json index b421983d9a..0510d548d4 100644 --- a/tests/reference/asr-test_list2-10ffdd7.json +++ b/tests/reference/asr-test_list2-10ffdd7.json @@ -2,7 +2,7 @@ "basename": "asr-test_list2-10ffdd7", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_list2.py", - "infile_hash": "0fde6372e40865fa25b4ef87b0ac31978ae2df367215004cad31a414", + "infile_hash": "1922554710c3c0cc93710512c5634e4a06f14e5e28dc169b6eac3fe2", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_list4-d18a7e3.json b/tests/reference/asr-test_list4-d18a7e3.json index 819c559fb6..9f9e535744 100644 --- a/tests/reference/asr-test_list4-d18a7e3.json +++ b/tests/reference/asr-test_list4-d18a7e3.json @@ -2,7 +2,7 @@ "basename": "asr-test_list4-d18a7e3", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_list4.py", - "infile_hash": "868e6603db5b4c01e89c6a7ea6f680f0c0b5848b670121d828126232", + "infile_hash": "d93fc79d9b95b91ea6dd5190f2320d2c84f25ff9c108dff9d13086c1", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_list_concat-41d186f.json b/tests/reference/asr-test_list_concat-41d186f.json index fae0af70d9..ff64ae4aac 100644 --- a/tests/reference/asr-test_list_concat-41d186f.json +++ b/tests/reference/asr-test_list_concat-41d186f.json @@ -2,7 +2,7 @@ "basename": "asr-test_list_concat-41d186f", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_list_concat.py", - "infile_hash": "ae10f20b909a0ace3daca1f4c0856f1cf652753a62fa8c7dceedb93b", + "infile_hash": "2dbbc047f2ededbe3c1cdebe412647006e9e7a7043514ad12857b7ec", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_max_min-3c2fc51.json b/tests/reference/asr-test_max_min-3c2fc51.json index b5d0ecfa7f..7eba7df669 100644 --- a/tests/reference/asr-test_max_min-3c2fc51.json +++ b/tests/reference/asr-test_max_min-3c2fc51.json @@ -2,11 +2,11 @@ "basename": "asr-test_max_min-3c2fc51", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_max_min.py", - "infile_hash": "40074f8e86db8c8b57cb34ac1b632ae503cfd6e1f0bb8f1c9869ae5d", + "infile_hash": "1aba932852adf8cc5dbff4a6ff83aa5de030dba5a5721eeace90a5d4", "outfile": null, "outfile_hash": null, "stdout": "asr-test_max_min-3c2fc51.stdout", - "stdout_hash": "4c725e0398b9826d497aaa615951ed57b8b987f4bd77d3c15f6ab9b6", + "stdout_hash": "864b61f7f184c6e1653d985a7c568db99d1126d6ba6c4bb79d7469a9", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_max_min-3c2fc51.stdout b/tests/reference/asr-test_max_min-3c2fc51.stdout index 0c70a3f739..7424ad36f0 100644 --- a/tests/reference/asr-test_max_min-3c2fc51.stdout +++ b/tests/reference/asr-test_max_min-3c2fc51.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 111 {_lpython_main_program: (Function (SymbolTable 110 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [check] [] [(SubroutineCall 111 check () [] ())] () Public .false. .false.), check: (Function (SymbolTable 6 {}) check (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_max_int test_max_float test_min_int test_min_float] [] [(SubroutineCall 111 test_max_int () [] ()) (SubroutineCall 111 test_max_float () [] ()) (SubroutineCall 111 test_min_int () [] ()) (SubroutineCall 111 test_min_float () [] ())] () Public .false. .false.), test_max_float: (Function (SymbolTable 3 {d: (Variable 3 d [] Local (RealConstant 23.233000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), e: (Variable 3 e [] Local (RealConstant 23.223300 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), f: (Variable 3 f [] Local (RealConstant 21.230000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), max: (ExternalSymbol 3 max 8 max lpython_builtin [] max Private), max@__lpython_overloaded_2__max: (ExternalSymbol 3 max@__lpython_overloaded_2__max 8 __lpython_overloaded_2__max lpython_builtin [] __lpython_overloaded_2__max Public), max@__lpython_overloaded_3__max: (ExternalSymbol 3 max@__lpython_overloaded_3__max 8 __lpython_overloaded_3__max lpython_builtin [] __lpython_overloaded_3__max Public)}) test_max_float (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [max@__lpython_overloaded_2__max max@__lpython_overloaded_3__max] [] [(= (Var 3 d) (RealConstant 23.233000 (Real 8 [])) ()) (= (Var 3 e) (RealConstant 23.223300 (Real 8 [])) ()) (= (Var 3 f) (RealConstant 21.230000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 3 max@__lpython_overloaded_2__max 3 max [((Var 3 d)) ((Var 3 e)) ((Var 3 f))] (Real 8 []) () ()) Eq (Var 3 d) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 max@__lpython_overloaded_3__max 3 max [((Var 3 e)) ((Var 3 f))] (Real 8 []) () ()) Eq (Var 3 e) (Logical 4 []) ()) ())] () Public .false. .false.), test_max_int: (Function (SymbolTable 2 {a: (Variable 2 a [] Local (IntegerConstant 1 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), b: (Variable 2 b [] Local (IntegerConstant 2 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), c: (Variable 2 c [] Local (IntegerConstant 3 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), max: (ExternalSymbol 2 max 8 max lpython_builtin [] max Private), max@__lpython_overloaded_0__max: (ExternalSymbol 2 max@__lpython_overloaded_0__max 8 __lpython_overloaded_0__max lpython_builtin [] __lpython_overloaded_0__max Public), max@__lpython_overloaded_1__max: (ExternalSymbol 2 max@__lpython_overloaded_1__max 8 __lpython_overloaded_1__max lpython_builtin [] __lpython_overloaded_1__max Public)}) test_max_int (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [max@__lpython_overloaded_0__max max@__lpython_overloaded_1__max max@__lpython_overloaded_1__max max@__lpython_overloaded_0__max] [] [(= (Var 2 a) (IntegerConstant 1 (Integer 4 [])) ()) (= (Var 2 b) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 2 c) (IntegerConstant 3 (Integer 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 max@__lpython_overloaded_0__max 2 max [((Var 2 a)) ((Var 2 b))] (Integer 4 []) () ()) Eq (Var 2 b) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 max@__lpython_overloaded_1__max 2 max [((Var 2 a)) ((Var 2 b)) ((Var 2 c))] (Integer 4 []) () ()) Eq (Var 2 c) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 max@__lpython_overloaded_1__max 2 max [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 3 (Integer 4 [])) ()) Eq (IntegerConstant 3 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 max@__lpython_overloaded_0__max 2 max [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 6 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 6 (Integer 4 [])) ()) Eq (IntegerConstant 6 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.), test_min_float: (Function (SymbolTable 5 {d: (Variable 5 d [] Local (RealConstant 23.233000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), e: (Variable 5 e [] Local (RealConstant 23.223300 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), f: (Variable 5 f [] Local (RealConstant 21.230000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), min: (ExternalSymbol 5 min 8 min lpython_builtin [] min Private), min@__lpython_overloaded_2__min: (ExternalSymbol 5 min@__lpython_overloaded_2__min 8 __lpython_overloaded_2__min lpython_builtin [] __lpython_overloaded_2__min Public), min@__lpython_overloaded_3__min: (ExternalSymbol 5 min@__lpython_overloaded_3__min 8 __lpython_overloaded_3__min lpython_builtin [] __lpython_overloaded_3__min Public)}) test_min_float (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [min@__lpython_overloaded_2__min min@__lpython_overloaded_3__min] [] [(= (Var 5 d) (RealConstant 23.233000 (Real 8 [])) ()) (= (Var 5 e) (RealConstant 23.223300 (Real 8 [])) ()) (= (Var 5 f) (RealConstant 21.230000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 5 min@__lpython_overloaded_2__min 5 min [((Var 5 d)) ((Var 5 e)) ((Var 5 f))] (Real 8 []) () ()) Eq (Var 5 f) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 5 min@__lpython_overloaded_3__min 5 min [((Var 5 e)) ((Var 5 f))] (Real 8 []) () ()) Eq (Var 5 f) (Logical 4 []) ()) ())] () Public .false. .false.), test_min_int: (Function (SymbolTable 4 {a: (Variable 4 a [] Local (IntegerConstant 1 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), b: (Variable 4 b [] Local (IntegerConstant 2 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), c: (Variable 4 c [] Local (IntegerConstant 3 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), min: (ExternalSymbol 4 min 8 min lpython_builtin [] min Private), min@__lpython_overloaded_0__min: (ExternalSymbol 4 min@__lpython_overloaded_0__min 8 __lpython_overloaded_0__min lpython_builtin [] __lpython_overloaded_0__min Public), min@__lpython_overloaded_1__min: (ExternalSymbol 4 min@__lpython_overloaded_1__min 8 __lpython_overloaded_1__min lpython_builtin [] __lpython_overloaded_1__min Public)}) test_min_int (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [min@__lpython_overloaded_0__min min@__lpython_overloaded_1__min min@__lpython_overloaded_1__min min@__lpython_overloaded_0__min] [] [(= (Var 4 a) (IntegerConstant 1 (Integer 4 [])) ()) (= (Var 4 b) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 4 c) (IntegerConstant 3 (Integer 4 [])) ()) (Assert (IntegerCompare (FunctionCall 4 min@__lpython_overloaded_0__min 4 min [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (Var 4 a) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 4 min@__lpython_overloaded_1__min 4 min [((Var 4 a)) ((Var 4 b)) ((Var 4 c))] (Integer 4 []) () ()) Eq (Var 4 a) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 4 min@__lpython_overloaded_1__min 4 min [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 4 min@__lpython_overloaded_0__min 4 min [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 6 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 109 {_lpython_main_program: (ExternalSymbol 109 _lpython_main_program 111 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 109 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 112 {_lpython_main_program: (Function (SymbolTable 111 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [check] [] [(SubroutineCall 112 check () [] ())] () Public .false. .false.), check: (Function (SymbolTable 6 {}) check (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_max_int test_max_float test_min_int test_min_float] [] [(SubroutineCall 112 test_max_int () [] ()) (SubroutineCall 112 test_max_float () [] ()) (SubroutineCall 112 test_min_int () [] ()) (SubroutineCall 112 test_min_float () [] ())] () Public .false. .false.), test_max_float: (Function (SymbolTable 3 {d: (Variable 3 d [] Local (RealConstant 23.233000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), e: (Variable 3 e [] Local (RealConstant 23.223300 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), f: (Variable 3 f [] Local (RealConstant 21.230000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), max: (ExternalSymbol 3 max 8 max lpython_builtin [] max Private), max@__lpython_overloaded_2__max: (ExternalSymbol 3 max@__lpython_overloaded_2__max 8 __lpython_overloaded_2__max lpython_builtin [] __lpython_overloaded_2__max Public), max@__lpython_overloaded_3__max: (ExternalSymbol 3 max@__lpython_overloaded_3__max 8 __lpython_overloaded_3__max lpython_builtin [] __lpython_overloaded_3__max Public)}) test_max_float (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [max@__lpython_overloaded_2__max max@__lpython_overloaded_3__max] [] [(= (Var 3 d) (RealConstant 23.233000 (Real 8 [])) ()) (= (Var 3 e) (RealConstant 23.223300 (Real 8 [])) ()) (= (Var 3 f) (RealConstant 21.230000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 3 max@__lpython_overloaded_2__max 3 max [((Var 3 d)) ((Var 3 e)) ((Var 3 f))] (Real 8 []) () ()) Eq (Var 3 d) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 3 max@__lpython_overloaded_3__max 3 max [((Var 3 e)) ((Var 3 f))] (Real 8 []) () ()) Eq (Var 3 e) (Logical 4 []) ()) ())] () Public .false. .false.), test_max_int: (Function (SymbolTable 2 {a: (Variable 2 a [] Local (IntegerConstant 1 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), b: (Variable 2 b [] Local (IntegerConstant 2 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), c: (Variable 2 c [] Local (IntegerConstant 3 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), max: (ExternalSymbol 2 max 8 max lpython_builtin [] max Private), max@__lpython_overloaded_0__max: (ExternalSymbol 2 max@__lpython_overloaded_0__max 8 __lpython_overloaded_0__max lpython_builtin [] __lpython_overloaded_0__max Public), max@__lpython_overloaded_1__max: (ExternalSymbol 2 max@__lpython_overloaded_1__max 8 __lpython_overloaded_1__max lpython_builtin [] __lpython_overloaded_1__max Public)}) test_max_int (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [max@__lpython_overloaded_0__max max@__lpython_overloaded_1__max max@__lpython_overloaded_1__max max@__lpython_overloaded_0__max] [] [(= (Var 2 a) (IntegerConstant 1 (Integer 4 [])) ()) (= (Var 2 b) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 2 c) (IntegerConstant 3 (Integer 4 [])) ()) (Assert (IntegerCompare (FunctionCall 2 max@__lpython_overloaded_0__max 2 max [((Var 2 a)) ((Var 2 b))] (Integer 4 []) () ()) Eq (Var 2 b) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 max@__lpython_overloaded_1__max 2 max [((Var 2 a)) ((Var 2 b)) ((Var 2 c))] (Integer 4 []) () ()) Eq (Var 2 c) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 2 max@__lpython_overloaded_1__max 2 max [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 3 (Integer 4 [])) ()) Eq (IntegerConstant 3 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 2 max@__lpython_overloaded_0__max 2 max [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 6 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 6 (Integer 4 [])) ()) Eq (IntegerConstant 6 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.), test_min_float: (Function (SymbolTable 5 {d: (Variable 5 d [] Local (RealConstant 23.233000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), e: (Variable 5 e [] Local (RealConstant 23.223300 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), f: (Variable 5 f [] Local (RealConstant 21.230000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), min: (ExternalSymbol 5 min 8 min lpython_builtin [] min Private), min@__lpython_overloaded_2__min: (ExternalSymbol 5 min@__lpython_overloaded_2__min 8 __lpython_overloaded_2__min lpython_builtin [] __lpython_overloaded_2__min Public), min@__lpython_overloaded_3__min: (ExternalSymbol 5 min@__lpython_overloaded_3__min 8 __lpython_overloaded_3__min lpython_builtin [] __lpython_overloaded_3__min Public)}) test_min_float (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [min@__lpython_overloaded_2__min min@__lpython_overloaded_3__min] [] [(= (Var 5 d) (RealConstant 23.233000 (Real 8 [])) ()) (= (Var 5 e) (RealConstant 23.223300 (Real 8 [])) ()) (= (Var 5 f) (RealConstant 21.230000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 5 min@__lpython_overloaded_2__min 5 min [((Var 5 d)) ((Var 5 e)) ((Var 5 f))] (Real 8 []) () ()) Eq (Var 5 f) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 5 min@__lpython_overloaded_3__min 5 min [((Var 5 e)) ((Var 5 f))] (Real 8 []) () ()) Eq (Var 5 f) (Logical 4 []) ()) ())] () Public .false. .false.), test_min_int: (Function (SymbolTable 4 {a: (Variable 4 a [] Local (IntegerConstant 1 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), b: (Variable 4 b [] Local (IntegerConstant 2 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), c: (Variable 4 c [] Local (IntegerConstant 3 (Integer 4 [])) () Default (Integer 4 []) Source Public Required .false.), min: (ExternalSymbol 4 min 8 min lpython_builtin [] min Private), min@__lpython_overloaded_0__min: (ExternalSymbol 4 min@__lpython_overloaded_0__min 8 __lpython_overloaded_0__min lpython_builtin [] __lpython_overloaded_0__min Public), min@__lpython_overloaded_1__min: (ExternalSymbol 4 min@__lpython_overloaded_1__min 8 __lpython_overloaded_1__min lpython_builtin [] __lpython_overloaded_1__min Public)}) test_min_int (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [min@__lpython_overloaded_0__min min@__lpython_overloaded_1__min min@__lpython_overloaded_1__min min@__lpython_overloaded_0__min] [] [(= (Var 4 a) (IntegerConstant 1 (Integer 4 [])) ()) (= (Var 4 b) (IntegerConstant 2 (Integer 4 [])) ()) (= (Var 4 c) (IntegerConstant 3 (Integer 4 [])) ()) (Assert (IntegerCompare (FunctionCall 4 min@__lpython_overloaded_0__min 4 min [((Var 4 a)) ((Var 4 b))] (Integer 4 []) () ()) Eq (Var 4 a) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 4 min@__lpython_overloaded_1__min 4 min [((Var 4 a)) ((Var 4 b)) ((Var 4 c))] (Integer 4 []) () ()) Eq (Var 4 a) (Logical 4 []) ()) ()) (Assert (IntegerCompare (FunctionCall 4 min@__lpython_overloaded_1__min 4 min [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 []))) ((IntegerConstant 3 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ()) (Assert (IntegerCompare (FunctionCall 4 min@__lpython_overloaded_0__min 4 min [((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 6 (Integer 4 [])))] (Integer 4 []) (IntegerConstant 1 (Integer 4 [])) ()) Eq (IntegerConstant 1 (Integer 4 [])) (Logical 4 []) (LogicalConstant .true. (Logical 4 []))) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 110 {_lpython_main_program: (ExternalSymbol 110 _lpython_main_program 112 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 110 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_numpy_03-e600a49.json b/tests/reference/asr-test_numpy_03-e600a49.json index 6463e73583..16dac66c73 100644 --- a/tests/reference/asr-test_numpy_03-e600a49.json +++ b/tests/reference/asr-test_numpy_03-e600a49.json @@ -2,11 +2,11 @@ "basename": "asr-test_numpy_03-e600a49", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_numpy_03.py", - "infile_hash": "bb5a2c89cf7b5c9a341e54751a8fdbda25e6de637b2e60ed87eff898", + "infile_hash": "7adaceaf3fd681036b880955e851507a36d42b61fae4e8b0b5527ac9", "outfile": null, "outfile_hash": null, "stdout": "asr-test_numpy_03-e600a49.stdout", - "stdout_hash": "3b1cdfd3fe6bd1eb5480bc05927c43b605d1c8070231ffef08903724", + "stdout_hash": "c880ec8ae34a8abaa707a6420477b9096c0361be89262c12c6c4de44", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_numpy_03-e600a49.stdout b/tests/reference/asr-test_numpy_03-e600a49.stdout index 4fe8f883c4..4c69237772 100644 --- a/tests/reference/asr-test_numpy_03-e600a49.stdout +++ b/tests/reference/asr-test_numpy_03-e600a49.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 199 {_lpython_main_program: (Function (SymbolTable 198 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_reshape_with_argument] [] [(SubroutineCall 199 test_reshape_with_argument () [] ())] () Public .false. .false.), test_1d_to_nd: (Function (SymbolTable 181 {a: (Variable 181 a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), b: (Variable 181 b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) Source Public Required .false.), block: (Block (SymbolTable 188 {_lpython_floordiv: (ExternalSymbol 188 _lpython_floordiv 79 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv: (ExternalSymbol 188 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 79 __lpython_overloaded_4___lpython_floordiv lpython_builtin [] __lpython_overloaded_4___lpython_floordiv Public)}) block [(= (Var 181 i) (FunctionCall 188 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 188 _lpython_floordiv [((Var 181 k)) ((IntegerConstant 16 (Integer 4 [])))] (Integer 4 []) () ()) ()) (= (Var 181 j) (IntegerBinOp (Var 181 k) Sub (IntegerBinOp (Var 181 i) Mul (IntegerConstant 16 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (ArrayItem (Var 181 b) [(() (Var 181 k) ())] (Real 8 []) RowMajor ()) (RealBinOp (Cast (IntegerBinOp (Var 181 i) Add (Var 181 j) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) Add (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()) ())]), block1: (Block (SymbolTable 189 {block: (Block (SymbolTable 190 {abs: (ExternalSymbol 190 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 190 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block [(Assert (RealCompare (FunctionCall 190 abs@__lpython_overloaded_0__abs 190 abs [((RealBinOp (RealBinOp (ArrayItem (Var 181 a) [(() (Var 181 i) ()) (() (Var 181 j) ())] (Real 8 []) RowMajor ()) Sub (Cast (IntegerBinOp (Var 181 i) Add (Var 181 j) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) Sub (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 181 eps) (Logical 4 []) ()) ())])}) block1 [(DoLoop ((Var 181 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 189 block)])]), block2: (Block (SymbolTable 191 {block: (Block (SymbolTable 192 {block: (Block (SymbolTable 193 {abs: (ExternalSymbol 193 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 193 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block [(Assert (RealCompare (FunctionCall 193 abs@__lpython_overloaded_0__abs 193 abs [((RealBinOp (RealBinOp (ArrayItem (Var 181 c) [(() (Var 181 i) ()) (() (Var 181 j) ()) (() (Var 181 k) ())] (Real 8 []) RowMajor ()) Sub (Cast (IntegerBinOp (IntegerBinOp (Var 181 i) Add (Var 181 j) (Integer 4 []) ()) Add (Var 181 k) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) Sub (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 181 eps) (Logical 4 []) ()) ())])}) block [(DoLoop ((Var 181 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 192 block)])])}) block2 [(DoLoop ((Var 181 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 191 block)])]), c: (Variable 181 c [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), d: (Variable 181 d [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), eps: (Variable 181 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 181 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 181 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 181 k [] Local () () Default (Integer 4 []) Source Public Required .false.), l: (Variable 181 l [] Local () () Default (Integer 4 []) Source Public Required .false.), newshape: (Variable 181 newshape [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])))]) Source Public Required .false.), newshape1: (Variable 181 newshape1 [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.)}) test_1d_to_nd (FunctionType [(Real 8 [(() ())])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [(Var 181 d)] [(= (Var 181 eps) (RealConstant 0.000000 (Real 8 [])) ()) (DoLoop ((Var 181 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 256 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 255 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 181 block)]) (= (ArrayItem (Var 181 newshape) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 16 (Integer 4 [])) ()) (= (ArrayItem (Var 181 newshape) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 16 (Integer 4 [])) ()) (= (Var 181 a) (ArrayReshape (Var 181 b) (Var 181 newshape) (Real 8 [(() ())]) ()) ()) (DoLoop ((Var 181 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 181 block1)]) (= (ArrayItem (Var 181 newshape1) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 16 (Integer 4 [])) ()) (= (ArrayItem (Var 181 newshape1) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 16 (Integer 4 [])) ()) (= (ArrayItem (Var 181 newshape1) [(() (IntegerConstant 2 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 16 (Integer 4 [])) ()) (= (Var 181 c) (ArrayReshape (Var 181 d) (Var 181 newshape1) (Real 8 [(() ())]) ()) ()) (DoLoop ((Var 181 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 181 block2)])] () Public .false. .false.), test_nd_to_1d: (Function (SymbolTable 180 {a: (Variable 180 a [] InOut () () Default (Real 8 [(() ()) (() ())]) Source Public Required .false.), b: (Variable 180 b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) Source Public Required .false.), block: (Block (SymbolTable 183 {_lpython_floordiv: (ExternalSymbol 183 _lpython_floordiv 79 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv: (ExternalSymbol 183 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 79 __lpython_overloaded_4___lpython_floordiv lpython_builtin [] __lpython_overloaded_4___lpython_floordiv Public), abs: (ExternalSymbol 183 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 183 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block [(= (Var 180 i) (FunctionCall 183 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 183 _lpython_floordiv [((Var 180 k)) ((IntegerConstant 16 (Integer 4 [])))] (Integer 4 []) () ()) ()) (= (Var 180 j) (IntegerBinOp (Var 180 k) Sub (IntegerBinOp (Var 180 i) Mul (IntegerConstant 16 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (RealCompare (FunctionCall 183 abs@__lpython_overloaded_0__abs 183 abs [((RealBinOp (RealBinOp (ArrayItem (Var 180 b) [(() (Var 180 k) ())] (Real 8 []) RowMajor ()) Sub (Cast (IntegerBinOp (Var 180 i) Add (Var 180 j) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) Sub (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 180 eps) (Logical 4 []) ()) ())]), block1: (Block (SymbolTable 187 {_lpython_floordiv: (ExternalSymbol 187 _lpython_floordiv 79 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv: (ExternalSymbol 187 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 79 __lpython_overloaded_4___lpython_floordiv lpython_builtin [] __lpython_overloaded_4___lpython_floordiv Public), abs: (ExternalSymbol 187 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 187 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block1 [(= (Var 180 i) (Cast (Cast (RealBinOp (Cast (Var 180 l) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 256 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToInteger (Integer 8 []) ()) IntegerToInteger (Integer 4 []) ()) ()) (= (Var 180 j) (FunctionCall 187 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 187 _lpython_floordiv [((IntegerBinOp (Var 180 l) Sub (IntegerBinOp (Var 180 i) Mul (IntegerConstant 256 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ())) ((IntegerConstant 16 (Integer 4 [])))] (Integer 4 []) () ()) ()) (= (Var 180 k) (IntegerBinOp (IntegerBinOp (Var 180 l) Sub (IntegerBinOp (Var 180 i) Mul (IntegerConstant 256 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) Sub (IntegerBinOp (Var 180 j) Mul (IntegerConstant 16 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (RealCompare (FunctionCall 187 abs@__lpython_overloaded_0__abs 187 abs [((RealBinOp (RealBinOp (ArrayItem (Var 180 d) [(() (Var 180 l) ())] (Real 8 []) RowMajor ()) Sub (Cast (IntegerBinOp (IntegerBinOp (Var 180 i) Add (Var 180 j) (Integer 4 []) ()) Add (Var 180 k) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) Sub (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 180 eps) (Logical 4 []) ()) ())]), c: (Variable 180 c [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), d: (Variable 180 d [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4096 (Integer 4 [])))]) Source Public Required .false.), eps: (Variable 180 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 180 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 180 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 180 k [] Local () () Default (Integer 4 []) Source Public Required .false.), l: (Variable 180 l [] Local () () Default (Integer 4 []) Source Public Required .false.), newshape: (Variable 180 newshape [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), newshape1: (Variable 180 newshape1 [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.)}) test_nd_to_1d (FunctionType [(Real 8 [(() ()) (() ())])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs] [(Var 180 a)] [(= (Var 180 eps) (RealConstant 0.000000 (Real 8 [])) ()) (= (ArrayItem (Var 180 newshape) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 256 (Integer 4 [])) ()) (= (Var 180 b) (ArrayReshape (Var 180 a) (Var 180 newshape) (Real 8 [(() ())]) ()) ()) (DoLoop ((Var 180 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 256 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 255 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 180 block)]) (DoLoop ((Var 180 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 180 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 180 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 180 c) [(() (Var 180 i) ()) (() (Var 180 j) ()) (() (Var 180 k) ())] (Real 8 []) RowMajor ()) (RealBinOp (Cast (IntegerBinOp (IntegerBinOp (Var 180 i) Add (Var 180 j) (Integer 4 []) ()) Add (Var 180 k) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) Add (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()) ())])])]) (= (ArrayItem (Var 180 newshape1) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 4096 (Integer 4 [])) ()) (= (Var 180 d) (ArrayReshape (Var 180 c) (Var 180 newshape1) (Real 8 [(() ())]) ()) ()) (DoLoop ((Var 180 l) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 4096 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 4095 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 180 block1)])] () Public .false. .false.), test_reshape_with_argument: (Function (SymbolTable 182 {a: (Variable 182 a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), block: (Block (SymbolTable 196 {_lpython_floordiv: (ExternalSymbol 196 _lpython_floordiv 79 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv: (ExternalSymbol 196 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 79 __lpython_overloaded_4___lpython_floordiv lpython_builtin [] __lpython_overloaded_4___lpython_floordiv Public)}) block [(= (Var 182 i) (Cast (Cast (RealBinOp (Cast (Var 182 l) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 256 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToInteger (Integer 8 []) ()) IntegerToInteger (Integer 4 []) ()) ()) (= (Var 182 j) (FunctionCall 196 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 196 _lpython_floordiv [((IntegerBinOp (Var 182 l) Sub (IntegerBinOp (Var 182 i) Mul (IntegerConstant 256 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ())) ((IntegerConstant 16 (Integer 4 [])))] (Integer 4 []) () ()) ()) (= (Var 182 k) (IntegerBinOp (IntegerBinOp (Var 182 l) Sub (IntegerBinOp (Var 182 i) Mul (IntegerConstant 256 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) Sub (IntegerBinOp (Var 182 j) Mul (IntegerConstant 16 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (ArrayItem (Var 182 d) [(() (Var 182 l) ())] (Real 8 []) RowMajor ()) (RealBinOp (Cast (IntegerBinOp (IntegerBinOp (Var 182 i) Add (Var 182 j) (Integer 4 []) ()) Add (Var 182 k) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) Add (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()) ())]), d: (Variable 182 d [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4096 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 182 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 182 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 182 k [] Local () () Default (Integer 4 []) Source Public Required .false.), l: (Variable 182 l [] Local () () Default (Integer 4 []) Source Public Required .false.)}) test_reshape_with_argument (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_lpython_floordiv@__lpython_overloaded_4___lpython_floordiv test_nd_to_1d _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv test_1d_to_nd] [] [(DoLoop ((Var 182 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 182 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 182 a) [(() (Var 182 i) ()) (() (Var 182 j) ())] (Real 8 []) RowMajor ()) (RealBinOp (Cast (IntegerBinOp (Var 182 i) Add (Var 182 j) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) Add (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()) ())])]) (SubroutineCall 199 test_nd_to_1d () [((Var 182 a))] ()) (DoLoop ((Var 182 l) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 4096 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 4095 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 182 block)]) (SubroutineCall 199 test_1d_to_nd () [((Var 182 d))] ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 197 {_lpython_main_program: (ExternalSymbol 197 _lpython_main_program 199 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 197 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_2___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_0___mod 79 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_0___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 200 {_lpython_main_program: (Function (SymbolTable 199 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_reshape_with_argument] [] [(SubroutineCall 200 test_reshape_with_argument () [] ())] () Public .false. .false.), test_1d_to_nd: (Function (SymbolTable 182 {a: (Variable 182 a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), b: (Variable 182 b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) Source Public Required .false.), block: (Block (SymbolTable 189 {_lpython_floordiv: (ExternalSymbol 189 _lpython_floordiv 79 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv: (ExternalSymbol 189 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 79 __lpython_overloaded_4___lpython_floordiv lpython_builtin [] __lpython_overloaded_4___lpython_floordiv Public)}) block [(= (Var 182 i) (FunctionCall 189 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 189 _lpython_floordiv [((Var 182 k)) ((IntegerConstant 16 (Integer 4 [])))] (Integer 4 []) () ()) ()) (= (Var 182 j) (IntegerBinOp (Var 182 k) Sub (IntegerBinOp (Var 182 i) Mul (IntegerConstant 16 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (ArrayItem (Var 182 b) [(() (Var 182 k) ())] (Real 8 []) RowMajor ()) (RealBinOp (Cast (IntegerBinOp (Var 182 i) Add (Var 182 j) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) Add (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()) ())]), block1: (Block (SymbolTable 190 {block: (Block (SymbolTable 191 {abs: (ExternalSymbol 191 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 191 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block [(Assert (RealCompare (FunctionCall 191 abs@__lpython_overloaded_0__abs 191 abs [((RealBinOp (RealBinOp (ArrayItem (Var 182 a) [(() (Var 182 i) ()) (() (Var 182 j) ())] (Real 8 []) RowMajor ()) Sub (Cast (IntegerBinOp (Var 182 i) Add (Var 182 j) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) Sub (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 182 eps) (Logical 4 []) ()) ())])}) block1 [(DoLoop ((Var 182 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 190 block)])]), block2: (Block (SymbolTable 192 {block: (Block (SymbolTable 193 {block: (Block (SymbolTable 194 {abs: (ExternalSymbol 194 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 194 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block [(Assert (RealCompare (FunctionCall 194 abs@__lpython_overloaded_0__abs 194 abs [((RealBinOp (RealBinOp (ArrayItem (Var 182 c) [(() (Var 182 i) ()) (() (Var 182 j) ()) (() (Var 182 k) ())] (Real 8 []) RowMajor ()) Sub (Cast (IntegerBinOp (IntegerBinOp (Var 182 i) Add (Var 182 j) (Integer 4 []) ()) Add (Var 182 k) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) Sub (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 182 eps) (Logical 4 []) ()) ())])}) block [(DoLoop ((Var 182 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 193 block)])])}) block2 [(DoLoop ((Var 182 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 192 block)])]), c: (Variable 182 c [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), d: (Variable 182 d [] InOut () () Default (Real 8 [(() ())]) Source Public Required .false.), eps: (Variable 182 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 182 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 182 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 182 k [] Local () () Default (Integer 4 []) Source Public Required .false.), l: (Variable 182 l [] Local () () Default (Integer 4 []) Source Public Required .false.), newshape: (Variable 182 newshape [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])))]) Source Public Required .false.), newshape1: (Variable 182 newshape1 [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.)}) test_1d_to_nd (FunctionType [(Real 8 [(() ())])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [(Var 182 d)] [(= (Var 182 eps) (RealConstant 0.000000 (Real 8 [])) ()) (DoLoop ((Var 182 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 256 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 255 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 182 block)]) (= (ArrayItem (Var 182 newshape) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 16 (Integer 4 [])) ()) (= (ArrayItem (Var 182 newshape) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 16 (Integer 4 [])) ()) (= (Var 182 a) (ArrayReshape (Var 182 b) (Var 182 newshape) (Real 8 [(() ())]) ()) ()) (DoLoop ((Var 182 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 182 block1)]) (= (ArrayItem (Var 182 newshape1) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 16 (Integer 4 [])) ()) (= (ArrayItem (Var 182 newshape1) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 16 (Integer 4 [])) ()) (= (ArrayItem (Var 182 newshape1) [(() (IntegerConstant 2 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 16 (Integer 4 [])) ()) (= (Var 182 c) (ArrayReshape (Var 182 d) (Var 182 newshape1) (Real 8 [(() ())]) ()) ()) (DoLoop ((Var 182 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 182 block2)])] () Public .false. .false.), test_nd_to_1d: (Function (SymbolTable 181 {a: (Variable 181 a [] InOut () () Default (Real 8 [(() ()) (() ())]) Source Public Required .false.), b: (Variable 181 b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 256 (Integer 4 [])))]) Source Public Required .false.), block: (Block (SymbolTable 184 {_lpython_floordiv: (ExternalSymbol 184 _lpython_floordiv 79 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv: (ExternalSymbol 184 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 79 __lpython_overloaded_4___lpython_floordiv lpython_builtin [] __lpython_overloaded_4___lpython_floordiv Public), abs: (ExternalSymbol 184 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 184 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block [(= (Var 181 i) (FunctionCall 184 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 184 _lpython_floordiv [((Var 181 k)) ((IntegerConstant 16 (Integer 4 [])))] (Integer 4 []) () ()) ()) (= (Var 181 j) (IntegerBinOp (Var 181 k) Sub (IntegerBinOp (Var 181 i) Mul (IntegerConstant 16 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (RealCompare (FunctionCall 184 abs@__lpython_overloaded_0__abs 184 abs [((RealBinOp (RealBinOp (ArrayItem (Var 181 b) [(() (Var 181 k) ())] (Real 8 []) RowMajor ()) Sub (Cast (IntegerBinOp (Var 181 i) Add (Var 181 j) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) Sub (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 181 eps) (Logical 4 []) ()) ())]), block1: (Block (SymbolTable 188 {_lpython_floordiv: (ExternalSymbol 188 _lpython_floordiv 79 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv: (ExternalSymbol 188 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 79 __lpython_overloaded_4___lpython_floordiv lpython_builtin [] __lpython_overloaded_4___lpython_floordiv Public), abs: (ExternalSymbol 188 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 188 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public)}) block1 [(= (Var 181 i) (Cast (Cast (RealBinOp (Cast (Var 181 l) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 256 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToInteger (Integer 8 []) ()) IntegerToInteger (Integer 4 []) ()) ()) (= (Var 181 j) (FunctionCall 188 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 188 _lpython_floordiv [((IntegerBinOp (Var 181 l) Sub (IntegerBinOp (Var 181 i) Mul (IntegerConstant 256 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ())) ((IntegerConstant 16 (Integer 4 [])))] (Integer 4 []) () ()) ()) (= (Var 181 k) (IntegerBinOp (IntegerBinOp (Var 181 l) Sub (IntegerBinOp (Var 181 i) Mul (IntegerConstant 256 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) Sub (IntegerBinOp (Var 181 j) Mul (IntegerConstant 16 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) ()) (Assert (RealCompare (FunctionCall 188 abs@__lpython_overloaded_0__abs 188 abs [((RealBinOp (RealBinOp (ArrayItem (Var 181 d) [(() (Var 181 l) ())] (Real 8 []) RowMajor ()) Sub (Cast (IntegerBinOp (IntegerBinOp (Var 181 i) Add (Var 181 j) (Integer 4 []) ()) Add (Var 181 k) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) Sub (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) LtE (Var 181 eps) (Logical 4 []) ()) ())]), c: (Variable 181 c [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), d: (Variable 181 d [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4096 (Integer 4 [])))]) Source Public Required .false.), eps: (Variable 181 eps [] Local () () Default (Real 8 []) Source Public Required .false.), i: (Variable 181 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 181 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 181 k [] Local () () Default (Integer 4 []) Source Public Required .false.), l: (Variable 181 l [] Local () () Default (Integer 4 []) Source Public Required .false.), newshape: (Variable 181 newshape [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.), newshape1: (Variable 181 newshape1 [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1 (Integer 4 [])))]) Source Public Required .false.)}) test_nd_to_1d (FunctionType [(Real 8 [(() ()) (() ())])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv abs@__lpython_overloaded_0__abs] [(Var 181 a)] [(= (Var 181 eps) (RealConstant 0.000000 (Real 8 [])) ()) (= (ArrayItem (Var 181 newshape) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 256 (Integer 4 [])) ()) (= (Var 181 b) (ArrayReshape (Var 181 a) (Var 181 newshape) (Real 8 [(() ())]) ()) ()) (DoLoop ((Var 181 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 256 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 255 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 181 block)]) (DoLoop ((Var 181 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 181 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 181 k) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 181 c) [(() (Var 181 i) ()) (() (Var 181 j) ()) (() (Var 181 k) ())] (Real 8 []) RowMajor ()) (RealBinOp (Cast (IntegerBinOp (IntegerBinOp (Var 181 i) Add (Var 181 j) (Integer 4 []) ()) Add (Var 181 k) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) Add (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()) ())])])]) (= (ArrayItem (Var 181 newshape1) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) (IntegerConstant 4096 (Integer 4 [])) ()) (= (Var 181 d) (ArrayReshape (Var 181 c) (Var 181 newshape1) (Real 8 [(() ())]) ()) ()) (DoLoop ((Var 181 l) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 4096 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 4095 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 181 block1)])] () Public .false. .false.), test_reshape_with_argument: (Function (SymbolTable 183 {a: (Variable 183 a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 []))) ((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 16 (Integer 4 [])))]) Source Public Required .false.), block: (Block (SymbolTable 197 {_lpython_floordiv: (ExternalSymbol 197 _lpython_floordiv 79 _lpython_floordiv lpython_builtin [] _lpython_floordiv Private), _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv: (ExternalSymbol 197 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 79 __lpython_overloaded_4___lpython_floordiv lpython_builtin [] __lpython_overloaded_4___lpython_floordiv Public)}) block [(= (Var 183 i) (Cast (Cast (RealBinOp (Cast (Var 183 l) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 256 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToInteger (Integer 8 []) ()) IntegerToInteger (Integer 4 []) ()) ()) (= (Var 183 j) (FunctionCall 197 _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv 197 _lpython_floordiv [((IntegerBinOp (Var 183 l) Sub (IntegerBinOp (Var 183 i) Mul (IntegerConstant 256 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ())) ((IntegerConstant 16 (Integer 4 [])))] (Integer 4 []) () ()) ()) (= (Var 183 k) (IntegerBinOp (IntegerBinOp (Var 183 l) Sub (IntegerBinOp (Var 183 i) Mul (IntegerConstant 256 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) Sub (IntegerBinOp (Var 183 j) Mul (IntegerConstant 16 (Integer 4 [])) (Integer 4 []) ()) (Integer 4 []) ()) ()) (= (ArrayItem (Var 183 d) [(() (Var 183 l) ())] (Real 8 []) RowMajor ()) (RealBinOp (Cast (IntegerBinOp (IntegerBinOp (Var 183 i) Add (Var 183 j) (Integer 4 []) ()) Add (Var 183 k) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) Add (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()) ())]), d: (Variable 183 d [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 4096 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 183 i [] Local () () Default (Integer 4 []) Source Public Required .false.), j: (Variable 183 j [] Local () () Default (Integer 4 []) Source Public Required .false.), k: (Variable 183 k [] Local () () Default (Integer 4 []) Source Public Required .false.), l: (Variable 183 l [] Local () () Default (Integer 4 []) Source Public Required .false.)}) test_reshape_with_argument (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [_lpython_floordiv@__lpython_overloaded_4___lpython_floordiv test_nd_to_1d _lpython_floordiv@__lpython_overloaded_4___lpython_floordiv test_1d_to_nd] [] [(DoLoop ((Var 183 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(DoLoop ((Var 183 j) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 16 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 15 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 183 a) [(() (Var 183 i) ()) (() (Var 183 j) ())] (Real 8 []) RowMajor ()) (RealBinOp (Cast (IntegerBinOp (Var 183 i) Add (Var 183 j) (Integer 4 []) ()) IntegerToReal (Real 8 []) ()) Add (RealConstant 0.500000 (Real 8 [])) (Real 8 []) ()) ())])]) (SubroutineCall 200 test_nd_to_1d () [((Var 183 a))] ()) (DoLoop ((Var 183 l) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 4096 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 4095 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(BlockCall -1 183 block)]) (SubroutineCall 200 test_1d_to_nd () [((Var 183 d))] ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 198 {_lpython_main_program: (ExternalSymbol 198 _lpython_main_program 200 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 198 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_4___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_4___mod 79 __lpython_overloaded_4___mod lpython_builtin [] __lpython_overloaded_4___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_4___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_4___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_2___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) diff --git a/tests/reference/asr-test_numpy_04-ecbb614.json b/tests/reference/asr-test_numpy_04-ecbb614.json index d9706fb040..6749f96ca8 100644 --- a/tests/reference/asr-test_numpy_04-ecbb614.json +++ b/tests/reference/asr-test_numpy_04-ecbb614.json @@ -2,11 +2,11 @@ "basename": "asr-test_numpy_04-ecbb614", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/test_numpy_04.py", - "infile_hash": "d9a0e72a70d0793614d26709f45959d7d43fd60f81bde0a8bf69746b", + "infile_hash": "0fbd0a4280966dd9a917d3a005887954325fb1ea5468fd28dcae930f", "outfile": null, "outfile_hash": null, "stdout": "asr-test_numpy_04-ecbb614.stdout", - "stdout_hash": "6b09209f223d6596a25d0cb5a256ec9671509ef9dac08b4bec25a10f", + "stdout_hash": "0264eb17a44317d5f572f7656e9b979ad311039ac664125840df5cc3", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-test_numpy_04-ecbb614.stdout b/tests/reference/asr-test_numpy_04-ecbb614.stdout index 496f7efdb4..7f31f71b2e 100644 --- a/tests/reference/asr-test_numpy_04-ecbb614.stdout +++ b/tests/reference/asr-test_numpy_04-ecbb614.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 185 {_lpython_main_program: (Function (SymbolTable 184 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [check] [] [(SubroutineCall 185 check () [] ())] () Public .false. .false.), check: (Function (SymbolTable 182 {}) check (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_array_01 test_array_02] [] [(SubroutineCall 185 test_array_01 () [] ()) (SubroutineCall 185 test_array_02 () [] ())] () Public .false. .false.), test_array_01: (Function (SymbolTable 180 {abs: (ExternalSymbol 180 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 180 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), eps: (Variable 180 eps [] Local (RealConstant 0.000000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), x: (Variable 180 x [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.)}) test_array_01 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [] [(= (Var 180 x) (ArrayConstant [(RealConstant 1.000000 (Real 8 [])) (RealConstant 2.000000 (Real 8 [])) (RealConstant 3.000000 (Real 8 []))] (Real 8 []) RowMajor) ()) (= (Var 180 eps) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 180 abs@__lpython_overloaded_0__abs 180 abs [((RealBinOp (ArrayItem (Var 180 x) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) Sub (RealConstant 1.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 180 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 180 abs@__lpython_overloaded_0__abs 180 abs [((RealBinOp (ArrayItem (Var 180 x) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) Sub (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 180 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 180 abs@__lpython_overloaded_0__abs 180 abs [((RealBinOp (ArrayItem (Var 180 x) [(() (IntegerConstant 2 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) Sub (RealConstant 3.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 180 eps) (Logical 4 []) ()) ())] () Public .false. .false.), test_array_02: (Function (SymbolTable 181 {abs: (ExternalSymbol 181 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_4__abs: (ExternalSymbol 181 abs@__lpython_overloaded_4__abs 79 __lpython_overloaded_4__abs lpython_builtin [] __lpython_overloaded_4__abs Public), eps: (Variable 181 eps [] Local (RealConstant 0.000000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), x: (Variable 181 x [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.)}) test_array_02 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_4__abs abs@__lpython_overloaded_4__abs abs@__lpython_overloaded_4__abs] [] [(= (Var 181 x) (ArrayConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))] (Integer 4 []) RowMajor) ()) (= (Var 181 eps) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (RealCompare (Cast (FunctionCall 181 abs@__lpython_overloaded_4__abs 181 abs [((IntegerBinOp (ArrayItem (Var 181 x) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()))] (Integer 4 []) () ()) IntegerToReal (Real 8 []) ()) Lt (Var 181 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (Cast (FunctionCall 181 abs@__lpython_overloaded_4__abs 181 abs [((IntegerBinOp (ArrayItem (Var 181 x) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) Sub (IntegerConstant 2 (Integer 4 [])) (Integer 4 []) ()))] (Integer 4 []) () ()) IntegerToReal (Real 8 []) ()) Lt (Var 181 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (Cast (FunctionCall 181 abs@__lpython_overloaded_4__abs 181 abs [((IntegerBinOp (ArrayItem (Var 181 x) [(() (IntegerConstant 2 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) Sub (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) ()))] (Integer 4 []) () ()) IntegerToReal (Real 8 []) ()) Lt (Var 181 eps) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 183 {_lpython_main_program: (ExternalSymbol 183 _lpython_main_program 185 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 183 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_2___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_0___mod 79 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_0___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 186 {_lpython_main_program: (Function (SymbolTable 185 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [check] [] [(SubroutineCall 186 check () [] ())] () Public .false. .false.), check: (Function (SymbolTable 183 {}) check (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [test_array_01 test_array_02] [] [(SubroutineCall 186 test_array_01 () [] ()) (SubroutineCall 186 test_array_02 () [] ())] () Public .false. .false.), test_array_01: (Function (SymbolTable 181 {abs: (ExternalSymbol 181 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_0__abs: (ExternalSymbol 181 abs@__lpython_overloaded_0__abs 79 __lpython_overloaded_0__abs lpython_builtin [] __lpython_overloaded_0__abs Public), eps: (Variable 181 eps [] Local (RealConstant 0.000000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), x: (Variable 181 x [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.)}) test_array_01 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs abs@__lpython_overloaded_0__abs] [] [(= (Var 181 x) (ArrayConstant [(RealConstant 1.000000 (Real 8 [])) (RealConstant 2.000000 (Real 8 [])) (RealConstant 3.000000 (Real 8 []))] (Real 8 []) RowMajor) ()) (= (Var 181 eps) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (RealCompare (FunctionCall 181 abs@__lpython_overloaded_0__abs 181 abs [((RealBinOp (ArrayItem (Var 181 x) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) Sub (RealConstant 1.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 181 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 181 abs@__lpython_overloaded_0__abs 181 abs [((RealBinOp (ArrayItem (Var 181 x) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) Sub (RealConstant 2.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 181 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (FunctionCall 181 abs@__lpython_overloaded_0__abs 181 abs [((RealBinOp (ArrayItem (Var 181 x) [(() (IntegerConstant 2 (Integer 4 [])) ())] (Real 8 []) RowMajor ()) Sub (RealConstant 3.000000 (Real 8 [])) (Real 8 []) ()))] (Real 8 []) () ()) Lt (Var 181 eps) (Logical 4 []) ()) ())] () Public .false. .false.), test_array_02: (Function (SymbolTable 182 {abs: (ExternalSymbol 182 abs 79 abs lpython_builtin [] abs Private), abs@__lpython_overloaded_4__abs: (ExternalSymbol 182 abs@__lpython_overloaded_4__abs 79 __lpython_overloaded_4__abs lpython_builtin [] __lpython_overloaded_4__abs Public), eps: (Variable 182 eps [] Local (RealConstant 0.000000 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), x: (Variable 182 x [] Local () () Default (Integer 4 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 3 (Integer 4 [])))]) Source Public Required .false.)}) test_array_02 (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [abs@__lpython_overloaded_4__abs abs@__lpython_overloaded_4__abs abs@__lpython_overloaded_4__abs] [] [(= (Var 182 x) (ArrayConstant [(IntegerConstant 1 (Integer 4 [])) (IntegerConstant 2 (Integer 4 [])) (IntegerConstant 3 (Integer 4 []))] (Integer 4 []) RowMajor) ()) (= (Var 182 eps) (RealConstant 0.000000 (Real 8 [])) ()) (Assert (RealCompare (Cast (FunctionCall 182 abs@__lpython_overloaded_4__abs 182 abs [((IntegerBinOp (ArrayItem (Var 182 x) [(() (IntegerConstant 0 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()))] (Integer 4 []) () ()) IntegerToReal (Real 8 []) ()) Lt (Var 182 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (Cast (FunctionCall 182 abs@__lpython_overloaded_4__abs 182 abs [((IntegerBinOp (ArrayItem (Var 182 x) [(() (IntegerConstant 1 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) Sub (IntegerConstant 2 (Integer 4 [])) (Integer 4 []) ()))] (Integer 4 []) () ()) IntegerToReal (Real 8 []) ()) Lt (Var 182 eps) (Logical 4 []) ()) ()) (Assert (RealCompare (Cast (FunctionCall 182 abs@__lpython_overloaded_4__abs 182 abs [((IntegerBinOp (ArrayItem (Var 182 x) [(() (IntegerConstant 2 (Integer 4 [])) ())] (Integer 4 []) RowMajor ()) Sub (IntegerConstant 3 (Integer 4 [])) (Integer 4 []) ()))] (Integer 4 []) () ()) IntegerToReal (Real 8 []) ()) Lt (Var 182 eps) (Logical 4 []) ()) ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 184 {_lpython_main_program: (ExternalSymbol 184 _lpython_main_program 186 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 184 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_4___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_4___mod 79 __lpython_overloaded_4___mod lpython_builtin [] __lpython_overloaded_4___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_4___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_4___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_2___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) diff --git a/tests/reference/asr-test_pointer_types-1bf0d01.json b/tests/reference/asr-test_pointer_types-1bf0d01.json index 1567717d17..ef0e6001f7 100644 --- a/tests/reference/asr-test_pointer_types-1bf0d01.json +++ b/tests/reference/asr-test_pointer_types-1bf0d01.json @@ -2,7 +2,7 @@ "basename": "asr-test_pointer_types-1bf0d01", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_pointer_types.py", - "infile_hash": "750a2bb08545b8c11e44585855545060693c59a71df5989ac5371720", + "infile_hash": "c5290af854c1f4a76252d27a2ae05f309ae55b9d6fc6ee533989cec7", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_pow-3f5d550.json b/tests/reference/asr-test_pow-3f5d550.json index af484014cf..1641b51ed4 100644 --- a/tests/reference/asr-test_pow-3f5d550.json +++ b/tests/reference/asr-test_pow-3f5d550.json @@ -6,7 +6,7 @@ "outfile": null, "outfile_hash": null, "stdout": "asr-test_pow-3f5d550.stdout", - "stdout_hash": "a19c917b8f601ad2638c71760c4285e0068c8cfc832a31e3b31a629e", + "stdout_hash": "c8a02e1954fbe25353e17420fd27b39b2ce4e633e1da7f2604c9587d", "stderr": "asr-test_pow-3f5d550.stderr", "stderr_hash": "3d950301563cce75654f28bf41f6f53428ed1f5ae997774345f374a3", "returncode": 0 diff --git a/tests/reference/asr-test_pow-3f5d550.stdout b/tests/reference/asr-test_pow-3f5d550.stdout index e9f8b14361..ff946da9cc 100644 --- a/tests/reference/asr-test_pow-3f5d550.stdout +++ b/tests/reference/asr-test_pow-3f5d550.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 107 {_lpython_main_program: (Function (SymbolTable 106 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [main] [] [(SubroutineCall 107 main () [] ())] () Public .false. .false.), main: (Function (SymbolTable 2 {pow: (ExternalSymbol 2 pow 4 pow lpython_builtin [] pow Private), pow@__lpython_overloaded_0__pow: (ExternalSymbol 2 pow@__lpython_overloaded_0__pow 4 __lpython_overloaded_0__pow lpython_builtin [] __lpython_overloaded_0__pow Public)}) main (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [pow@__lpython_overloaded_0__pow] [] [(Print () [(FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((IntegerConstant 2 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Real 8 []) (RealConstant 4.000000 (Real 8 [])) ())] () ()) (Print () [(IntegerBinOp (IntegerConstant 2 (Integer 4 [])) Pow (IntegerConstant 2 (Integer 4 [])) (Integer 4 []) (IntegerConstant 4 (Integer 4 [])))] () ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 105 {_lpython_main_program: (ExternalSymbol 105 _lpython_main_program 107 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 105 _lpython_main_program () [] ())])}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 108 {_lpython_main_program: (Function (SymbolTable 107 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [main] [] [(SubroutineCall 108 main () [] ())] () Public .false. .false.), main: (Function (SymbolTable 2 {pow: (ExternalSymbol 2 pow 4 pow lpython_builtin [] pow Private), pow@__lpython_overloaded_0__pow: (ExternalSymbol 2 pow@__lpython_overloaded_0__pow 4 __lpython_overloaded_0__pow lpython_builtin [] __lpython_overloaded_0__pow Public)}) main (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [pow@__lpython_overloaded_0__pow] [] [(Print () [(FunctionCall 2 pow@__lpython_overloaded_0__pow 2 pow [((IntegerConstant 2 (Integer 4 []))) ((IntegerConstant 2 (Integer 4 [])))] (Real 8 []) (RealConstant 4.000000 (Real 8 [])) ())] () ()) (Print () [(IntegerBinOp (IntegerConstant 2 (Integer 4 [])) Pow (IntegerConstant 2 (Integer 4 [])) (Integer 4 []) (IntegerConstant 4 (Integer 4 [])))] () ())] () Public .false. .false.)}) _global_symbols [lpython_builtin] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 106 {_lpython_main_program: (ExternalSymbol 106 _lpython_main_program 108 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 106 _lpython_main_program () [] ())])}) []) diff --git a/tests/reference/asr-test_pow2-0dcbd7d.json b/tests/reference/asr-test_pow2-0dcbd7d.json index 82f7946dec..083bc76b8d 100644 --- a/tests/reference/asr-test_pow2-0dcbd7d.json +++ b/tests/reference/asr-test_pow2-0dcbd7d.json @@ -2,7 +2,7 @@ "basename": "asr-test_pow2-0dcbd7d", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_pow2.py", - "infile_hash": "c9227a5d028c265531453f259a919e90a782658e15d4a908930a398b", + "infile_hash": "0df16d4f512305265cb2924e18db5753a4c422da3a7624f74f71d26f", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_pow3-79749ed.json b/tests/reference/asr-test_pow3-79749ed.json index 4cfba3502b..cd0f9f0d33 100644 --- a/tests/reference/asr-test_pow3-79749ed.json +++ b/tests/reference/asr-test_pow3-79749ed.json @@ -2,7 +2,7 @@ "basename": "asr-test_pow3-79749ed", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_pow3.py", - "infile_hash": "3bcfd872ce4527547e2aeb155a5a980356c71969a1c3fa66906e7933", + "infile_hash": "884bdc831e2b2d01c30a2dd841307fd5674ab65e0c3819d17e3db500", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_pow4-ef60978.json b/tests/reference/asr-test_pow4-ef60978.json index 1fa1f657f5..2e98c401ce 100644 --- a/tests/reference/asr-test_pow4-ef60978.json +++ b/tests/reference/asr-test_pow4-ef60978.json @@ -2,7 +2,7 @@ "basename": "asr-test_pow4-ef60978", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_pow4.py", - "infile_hash": "d537682ebec26f198e89723e31dba5ebc84f848103a62868e2c35f96", + "infile_hash": "af9b11ec50a82de28afac31faa4a78bdbeb5f317537fc37860b139cd", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_set1-11379c7.json b/tests/reference/asr-test_set1-11379c7.json index b16ebbd570..09cc2515af 100644 --- a/tests/reference/asr-test_set1-11379c7.json +++ b/tests/reference/asr-test_set1-11379c7.json @@ -2,7 +2,7 @@ "basename": "asr-test_set1-11379c7", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_set1.py", - "infile_hash": "8b09bdc33cffccdb66d9d70f13474d148c5f422ee3892d30fe45eb95", + "infile_hash": "54179c34d3818cd0b57d582c930226ce5443a43386ae981aab02e50b", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_set2-d91a6f0.json b/tests/reference/asr-test_set2-d91a6f0.json index 549c404f14..8d33226ef5 100644 --- a/tests/reference/asr-test_set2-d91a6f0.json +++ b/tests/reference/asr-test_set2-d91a6f0.json @@ -2,7 +2,7 @@ "basename": "asr-test_set2-d91a6f0", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_set2.py", - "infile_hash": "46c06330c2f51316a178c5d487fb5628d19ffb4e8f95e50653a19fcd", + "infile_hash": "2d561d934090bedc052b2ef17bc3ac9b59ed94298fd39cbea2c9ba15", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_set_indexing-a1c21b8.json b/tests/reference/asr-test_set_indexing-a1c21b8.json index dcab538313..6bb6e96be3 100644 --- a/tests/reference/asr-test_set_indexing-a1c21b8.json +++ b/tests/reference/asr-test_set_indexing-a1c21b8.json @@ -2,7 +2,7 @@ "basename": "asr-test_set_indexing-a1c21b8", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_set_indexing.py", - "infile_hash": "554078219252203b861616525473a69168f0ab64f1970ce97de43331", + "infile_hash": "24f02fc93b8ed20f1c9ea7ae862faa087d070ec288577b90b90b3bc5", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-test_zero_division4-bf4af64.json b/tests/reference/asr-test_zero_division4-bf4af64.json index 309ec52006..e1f6ce6bc0 100644 --- a/tests/reference/asr-test_zero_division4-bf4af64.json +++ b/tests/reference/asr-test_zero_division4-bf4af64.json @@ -2,7 +2,7 @@ "basename": "asr-test_zero_division4-bf4af64", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/test_zero_division4.py", - "infile_hash": "45d522f85b18d58db962c024609242857ceaf480977a52cd6a7421f6", + "infile_hash": "87b6a224572c853741dd70f25b05b257d214bd3269a7e71af117057c", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-tuple1-09972ab.json b/tests/reference/asr-tuple1-09972ab.json index 4d160551d5..f9a7d5d4bc 100644 --- a/tests/reference/asr-tuple1-09972ab.json +++ b/tests/reference/asr-tuple1-09972ab.json @@ -2,7 +2,7 @@ "basename": "asr-tuple1-09972ab", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/tuple1.py", - "infile_hash": "aed9320f34b5eec1d9ce30d9ef28abeaf9c1faaf421d87b34148ae04", + "infile_hash": "0ad9c210f19f9e560890c7a67ed06f4a710bbc8535c0097c35736028", "outfile": null, "outfile_hash": null, "stdout": "asr-tuple1-09972ab.stdout", diff --git a/tests/reference/asr-type_mismatch-61052c7.json b/tests/reference/asr-type_mismatch-61052c7.json index bd3c21b9a4..80ce9f69b3 100644 --- a/tests/reference/asr-type_mismatch-61052c7.json +++ b/tests/reference/asr-type_mismatch-61052c7.json @@ -2,7 +2,7 @@ "basename": "asr-type_mismatch-61052c7", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/errors/type_mismatch.py", - "infile_hash": "4a8058c143819d7115c7df976f933af3aab8ca921ca0f93262e2d2c2", + "infile_hash": "45ee4815e13c9fc4d58572a2f4ec01f5546e1f67878a2913bda89e5c", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/asr-vec_01-66ac423.json b/tests/reference/asr-vec_01-66ac423.json index b61d76f532..222fca0836 100644 --- a/tests/reference/asr-vec_01-66ac423.json +++ b/tests/reference/asr-vec_01-66ac423.json @@ -2,11 +2,11 @@ "basename": "asr-vec_01-66ac423", "cmd": "lpython --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/vec_01.py", - "infile_hash": "eb012561316a4c1f1359bf7b5a0b9aee40944ece197a5bafd387a19f", + "infile_hash": "ac6691a88207cbc7445095ecc898e9cce9efd9f9e874c473aec70e16", "outfile": null, "outfile_hash": null, "stdout": "asr-vec_01-66ac423.stdout", - "stdout_hash": "030479ac0a1b55ce541095af7792884c8f3d06750bb6f03d55117898", + "stdout_hash": "132785e6ffb7c6ff75c376b52551ac2ddff23504319eb6ade9f54e72", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/asr-vec_01-66ac423.stdout b/tests/reference/asr-vec_01-66ac423.stdout index d9c66ca77c..642d0c1e01 100644 --- a/tests/reference/asr-vec_01-66ac423.stdout +++ b/tests/reference/asr-vec_01-66ac423.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 186 {_lpython_main_program: (Function (SymbolTable 185 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [loop_vec] [] [(SubroutineCall 186 loop_vec () [] ())] () Public .false. .false.), loop_vec: (Function (SymbolTable 180 {a: (Variable 180 a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), b: (Variable 180 b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 180 i [] Local () () Default (Integer 4 []) Source Public Required .false.)}) loop_vec (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(DoLoop ((Var 180 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 9216 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9215 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 180 b) [(() (Var 180 i) ())] (Real 8 []) RowMajor ()) (RealConstant 5.000000 (Real 8 [])) ())]) (DoLoop ((Var 180 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 9216 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9215 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 180 a) [(() (Var 180 i) ())] (Real 8 []) RowMajor ()) (ArrayItem (Var 180 b) [(() (Var 180 i) ())] (Real 8 []) RowMajor ()) ())]) (DoLoop ((Var 180 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 9216 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9215 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(Assert (RealCompare (ArrayItem (Var 180 a) [(() (Var 180 i) ())] (Real 8 []) RowMajor ()) Eq (RealConstant 5.000000 (Real 8 [])) (Logical 4 []) ()) ())])] () Public .false. .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 184 {_lpython_main_program: (ExternalSymbol 184 _lpython_main_program 186 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 184 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_2___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_0___mod 79 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_0___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 187 {_lpython_main_program: (Function (SymbolTable 186 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [loop_vec] [] [(SubroutineCall 187 loop_vec () [] ())] () Public .false. .false.), loop_vec: (Function (SymbolTable 181 {a: (Variable 181 a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), b: (Variable 181 b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 181 i [] Local () () Default (Integer 4 []) Source Public Required .false.)}) loop_vec (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [] [(DoLoop ((Var 181 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 9216 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9215 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 181 b) [(() (Var 181 i) ())] (Real 8 []) RowMajor ()) (RealConstant 5.000000 (Real 8 [])) ())]) (DoLoop ((Var 181 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 9216 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9215 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 181 a) [(() (Var 181 i) ())] (Real 8 []) RowMajor ()) (ArrayItem (Var 181 b) [(() (Var 181 i) ())] (Real 8 []) RowMajor ()) ())]) (DoLoop ((Var 181 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 9216 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9215 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(Assert (RealCompare (ArrayItem (Var 181 a) [(() (Var 181 i) ())] (Real 8 []) RowMajor ()) Eq (RealConstant 5.000000 (Real 8 [])) (Logical 4 []) ()) ())])] () Public .false. .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 185 {_lpython_main_program: (ExternalSymbol 185 _lpython_main_program 187 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 185 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_4___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_4___mod 79 __lpython_overloaded_4___mod lpython_builtin [] __lpython_overloaded_4___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_4___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_4___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_2___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) diff --git a/tests/reference/ast-complex1-800b4bb.json b/tests/reference/ast-complex1-800b4bb.json index 136281ac90..2ba34199ef 100644 --- a/tests/reference/ast-complex1-800b4bb.json +++ b/tests/reference/ast-complex1-800b4bb.json @@ -2,11 +2,11 @@ "basename": "ast-complex1-800b4bb", "cmd": "lpython --show-ast --no-color {infile} -o {outfile}", "infile": "tests/complex1.py", - "infile_hash": "c6c5e11789f3903056bcf08018573a80c93c1a608c6687cb9181739d", + "infile_hash": "60b45de7b88ec768d70a3122b36545e9604a86504ed6e5d9d813c719", "outfile": null, "outfile_hash": null, "stdout": "ast-complex1-800b4bb.stdout", - "stdout_hash": "0cfa8b52594cebbab508a836c8c1273408024dfb0c411c258e250292", + "stdout_hash": "2b112ce732f545c17f9c987a92fb39a644ea35b89b688646997960b1", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast-complex1-800b4bb.stdout b/tests/reference/ast-complex1-800b4bb.stdout index 6633115524..c0a8b0fec3 100644 --- a/tests/reference/ast-complex1-800b4bb.stdout +++ b/tests/reference/ast-complex1-800b4bb.stdout @@ -1 +1 @@ -(Module [(ImportFrom ltypes [(c32 ()) (c64 ())] 0) (FunctionDef test_complex ([] [] [] [] [] [] []) [(AnnAssign (Name c Store) (Name c32 Load) () 1) (AnnAssign (Name c1 Store) (Name c32 Load) () 1) (AnnAssign (Name c2 Store) (Name c32 Load) () 1) (AnnAssign (Name c3 Store) (Name c64 Load) () 1) (AnnAssign (Name b Store) (Name bool Load) () 1) (Assign [(Name c Store)] (Call (Name c32 Load) [(Call (Name complex Load) [] [])] []) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantFloat 3.400000 ())] [])] []) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantFloat 5.000000 ()) (ConstantFloat 4.300000 ())] [])] []) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantInt 1 ())] [])] []) ()) (Assign [(Name c1 Store)] (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantInt 3 ()) (ConstantInt 4 ())] [])] []) ()) (Assign [(Name c2 Store)] (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantInt 2 ()) (ConstantFloat 4.500000 ())] [])] []) ()) (Assign [(Name c3 Store)] (Call (Name complex Load) [(ConstantFloat 3.000000 ()) (ConstantFloat 4.000000 ())] []) ()) (Assign [(Name b Store)] (Compare (Name c1 Load) NotEq [(Name c2 Load)]) ()) (Assign [(Name b Store)] (Compare (Call (Name c64 Load) [(Name c1 Load)] []) Eq [(Name c3 Load)]) ()) (Assign [(Name c Store)] (BinOp (Name c1 Load) Add (Name c2 Load)) ()) (Assign [(Name c Store)] (BinOp (Name c2 Load) Sub (Name c1 Load)) ()) (Assign [(Name c Store)] (BinOp (Name c1 Load) Mult (Name c2 Load)) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(BinOp (Call (Name complex Load) [(ConstantInt 1 ()) (ConstantInt 2 ())] []) Pow (Call (Name complex Load) [(ConstantFloat 3.345340 ()) (ConstantFloat 4.867868 ())] []))] []) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(BinOp (Call (Name complex Load) [(ConstantInt 1 ()) (ConstantInt 2 ())] []) Mult (Call (Name complex Load) [(ConstantInt 3 ()) (ConstantInt 4 ())] []))] []) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(BinOp (Call (Name complex Load) [(ConstantInt 4 ()) (ConstantInt 5 ())] []) Sub (Call (Name complex Load) [(ConstantInt 3 ()) (ConstantInt 4 ())] []))] []) ())] [] () ()) (FunctionDef test ([] [] [] [] [] [] []) [(AnnAssign (Name x Store) (Name c64 Load) () 1) (AnnAssign (Name y Store) (Name c64 Load) () 1) (AnnAssign (Name z Store) (Name c32 Load) () 1) (Assign [(Name x Store)] (BinOp (Call (Name c64 Load) [(ConstantInt 2 ())] []) Add (ConstantComplex 0.000000 3.000000 ())) ()) (Assign [(Name y Store)] (BinOp (Call (Name c64 Load) [(ConstantInt 5 ())] []) Add (ConstantComplex 0.000000 5.000000 ())) ()) (Assign [(Name z Store)] (Call (Name c32 Load) [(BinOp (Name x Load) Add (Name y Load))] []) ()) (Assign [(Name z Store)] (Call (Name c32 Load) [(BinOp (Name x Load) Sub (Name y Load))] []) ()) (Assign [(Name z Store)] (Call (Name c32 Load) [(BinOp (Call (Name c64 Load) [(ConstantInt 2 ())] []) Mult (Name x Load))] []) ())] [] () ())] []) +(Module [(ImportFrom lpython [(c32 ()) (c64 ())] 0) (FunctionDef test_complex ([] [] [] [] [] [] []) [(AnnAssign (Name c Store) (Name c32 Load) () 1) (AnnAssign (Name c1 Store) (Name c32 Load) () 1) (AnnAssign (Name c2 Store) (Name c32 Load) () 1) (AnnAssign (Name c3 Store) (Name c64 Load) () 1) (AnnAssign (Name b Store) (Name bool Load) () 1) (Assign [(Name c Store)] (Call (Name c32 Load) [(Call (Name complex Load) [] [])] []) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantFloat 3.400000 ())] [])] []) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantFloat 5.000000 ()) (ConstantFloat 4.300000 ())] [])] []) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantInt 1 ())] [])] []) ()) (Assign [(Name c1 Store)] (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantInt 3 ()) (ConstantInt 4 ())] [])] []) ()) (Assign [(Name c2 Store)] (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantInt 2 ()) (ConstantFloat 4.500000 ())] [])] []) ()) (Assign [(Name c3 Store)] (Call (Name complex Load) [(ConstantFloat 3.000000 ()) (ConstantFloat 4.000000 ())] []) ()) (Assign [(Name b Store)] (Compare (Name c1 Load) NotEq [(Name c2 Load)]) ()) (Assign [(Name b Store)] (Compare (Call (Name c64 Load) [(Name c1 Load)] []) Eq [(Name c3 Load)]) ()) (Assign [(Name c Store)] (BinOp (Name c1 Load) Add (Name c2 Load)) ()) (Assign [(Name c Store)] (BinOp (Name c2 Load) Sub (Name c1 Load)) ()) (Assign [(Name c Store)] (BinOp (Name c1 Load) Mult (Name c2 Load)) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(BinOp (Call (Name complex Load) [(ConstantInt 1 ()) (ConstantInt 2 ())] []) Pow (Call (Name complex Load) [(ConstantFloat 3.345340 ()) (ConstantFloat 4.867868 ())] []))] []) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(BinOp (Call (Name complex Load) [(ConstantInt 1 ()) (ConstantInt 2 ())] []) Mult (Call (Name complex Load) [(ConstantInt 3 ()) (ConstantInt 4 ())] []))] []) ()) (Assign [(Name c Store)] (Call (Name c32 Load) [(BinOp (Call (Name complex Load) [(ConstantInt 4 ()) (ConstantInt 5 ())] []) Sub (Call (Name complex Load) [(ConstantInt 3 ()) (ConstantInt 4 ())] []))] []) ())] [] () ()) (FunctionDef test ([] [] [] [] [] [] []) [(AnnAssign (Name x Store) (Name c64 Load) () 1) (AnnAssign (Name y Store) (Name c64 Load) () 1) (AnnAssign (Name z Store) (Name c32 Load) () 1) (Assign [(Name x Store)] (BinOp (Call (Name c64 Load) [(ConstantInt 2 ())] []) Add (ConstantComplex 0.000000 3.000000 ())) ()) (Assign [(Name y Store)] (BinOp (Call (Name c64 Load) [(ConstantInt 5 ())] []) Add (ConstantComplex 0.000000 5.000000 ())) ()) (Assign [(Name z Store)] (Call (Name c32 Load) [(BinOp (Name x Load) Add (Name y Load))] []) ()) (Assign [(Name z Store)] (Call (Name c32 Load) [(BinOp (Name x Load) Sub (Name y Load))] []) ()) (Assign [(Name z Store)] (Call (Name c32 Load) [(BinOp (Call (Name c64 Load) [(ConstantInt 2 ())] []) Mult (Name x Load))] []) ())] [] () ())] []) diff --git a/tests/reference/ast-constants1-91cb6ff.json b/tests/reference/ast-constants1-91cb6ff.json index 2c58606e91..577f0c1fb8 100644 --- a/tests/reference/ast-constants1-91cb6ff.json +++ b/tests/reference/ast-constants1-91cb6ff.json @@ -2,11 +2,11 @@ "basename": "ast-constants1-91cb6ff", "cmd": "lpython --show-ast --no-color {infile} -o {outfile}", "infile": "tests/constants1.py", - "infile_hash": "5d624d8607e3c7f476ef4e7e70e36b0e9779b08b456a2d09d8974abf", + "infile_hash": "2ede5161e5a92199603f68b9913d658f7ae529c5377827e86054f28a", "outfile": null, "outfile_hash": null, "stdout": "ast-constants1-91cb6ff.stdout", - "stdout_hash": "66fbdb5f3b8cbb44977406b34e1041bc1cb8e390c94bb9a3e5a1584d", + "stdout_hash": "895db2b55a48b8cb7993a452a64d0f6ecc1abb29973d3473172123ae", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast-constants1-91cb6ff.stdout b/tests/reference/ast-constants1-91cb6ff.stdout index 0b333582a0..b849a3c85b 100644 --- a/tests/reference/ast-constants1-91cb6ff.stdout +++ b/tests/reference/ast-constants1-91cb6ff.stdout @@ -1 +1 @@ -(Module [(ImportFrom ltypes [(f32 ()) (i32 ()) (i64 ()) (f64 ())] 0) (FunctionDef test_boz ([] [] [] [] [] [] []) [(AnnAssign (Name b Store) (Name str Load) () 1) (Assign [(Name b Store)] (Call (Name bin Load) [(ConstantInt 5 ())] []) ()) (Assign [(Name b Store)] (Call (Name bin Load) [(ConstantInt 64 ())] []) ()) (Assign [(Name b Store)] (Call (Name bin Load) [(UnaryOp USub (ConstantInt 534 ()))] []) ()) (Assign [(Name b Store)] (Call (Name oct Load) [(ConstantInt 8 ())] []) ()) (Assign [(Name b Store)] (Call (Name oct Load) [(ConstantInt 56 ())] []) ()) (Assign [(Name b Store)] (Call (Name oct Load) [(UnaryOp USub (ConstantInt 534 ()))] []) ()) (Assign [(Name b Store)] (Call (Name hex Load) [(ConstantInt 42 ())] []) ()) (Assign [(Name b Store)] (Call (Name hex Load) [(ConstantInt 12648430 ())] []) ()) (Assign [(Name b Store)] (Call (Name hex Load) [(UnaryOp USub (ConstantInt 534 ()))] []) ())] [] () ()) (FunctionDef test_ord_chr ([] [] [] [] [] [] []) [(AnnAssign (Name s Store) (Name str Load) () 1) (AnnAssign (Name a Store) (Name i32 Load) () 1) (Assign [(Name a Store)] (Call (Name ord Load) [(ConstantStr "5" ())] []) ()) (Assign [(Name s Store)] (Call (Name chr Load) [(ConstantInt 43 ())] []) ())] [] () ()) (FunctionDef test_abs ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name i32 Load) () 1) (Assign [(Name a Store)] (Call (Name abs Load) [(ConstantInt 5 ())] []) ()) (Assign [(Name a Store)] (Call (Name abs Load) [(UnaryOp USub (ConstantInt 500 ()))] []) ()) (Assign [(Name a Store)] (Call (Name abs Load) [(ConstantBool .false. ())] []) ()) (Assign [(Name a Store)] (Call (Name abs Load) [(ConstantBool .true. ())] []) ()) (AnnAssign (Name b Store) (Name f32 Load) () 1) (Assign [(Name b Store)] (Call (Name f32 Load) [(Call (Name abs Load) [(ConstantFloat 3.450000 ())] [])] []) ()) (Assign [(Name b Store)] (Call (Name f32 Load) [(Call (Name abs Load) [(UnaryOp USub (ConstantFloat 5346.340000 ()))] [])] []) ()) (Assign [(Name b Store)] (Call (Name f32 Load) [(Call (Name abs Load) [(Call (Name complex Load) [(ConstantFloat 3.450000 ()) (ConstantFloat 5.600000 ())] [])] [])] []) ())] [] () ()) (FunctionDef test_len ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name i32 Load) () 1) (Assign [(Name a Store)] (Call (Name len Load) [(ConstantStr "" ())] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(ConstantStr "test" ())] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(ConstantStr "this is a test" ())] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(Tuple [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())] Load)] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(Tuple [(Tuple [(ConstantStr "c" ()) (ConstantStr "b" ()) (ConstantFloat 3.400000 ())] Load) (Tuple [(ConstantStr "c" ()) (ConstantInt 3 ()) (ConstantFloat 5.600000 ())] Load)] Load)] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(List [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())] Load)] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(List [(List [(UnaryOp USub (ConstantInt 4 ())) (UnaryOp USub (ConstantInt 5 ())) (UnaryOp USub (ConstantInt 6 ()))] Load) (List [(UnaryOp USub (ConstantInt 1 ())) (UnaryOp USub (ConstantInt 2 ())) (UnaryOp USub (ConstantInt 3 ()))] Load)] Load)] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(Set [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())])] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(Dict [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())] [(ConstantStr "c" ()) (ConstantStr "b" ()) (ConstantStr "c" ())])] []) ()) (AnnAssign (Name l Store) (Subscript (Name list Load) (Name i32 Load) Load) () 1) (Assign [(Name l Store)] (List [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ()) (ConstantInt 4 ())] Load) ()) (Assign [(Name a Store)] (Call (Name len Load) [(Name l Load)] []) ()) (Expr (Call (Attribute (Name l Load) append Load) [(ConstantInt 5 ())] [])) (Assign [(Name a Store)] (Call (Name len Load) [(Name l Load)] []) ())] [] () ()) (FunctionDef test_bool ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name bool Load) () 1) (Assign [(Name a Store)] (Call (Name bool Load) [(ConstantInt 0 ())] []) ()) (Assign [(Name a Store)] (Call (Name bool Load) [(UnaryOp USub (ConstantInt 1 ()))] []) ()) (Assign [(Name a Store)] (Call (Name bool Load) [(ConstantStr "" ())] []) ()) (Assign [(Name a Store)] (Call (Name bool Load) [(Call (Name complex Load) [(ConstantInt 0 ()) (ConstantInt 0 ())] [])] []) ()) (Assert (Compare (Name a Load) Eq [(ConstantBool .false. ())]) ()) (Assign [(Name a Store)] (Call (Name bool Load) [(ConstantStr "t" ())] []) ()) (Assign [(Name a Store)] (Call (Name bool Load) [(ConstantFloat 2.300000 ())] []) ()) (Assert (Compare (Name a Load) Eq [(ConstantBool .true. ())]) ())] [] () ()) (FunctionDef test_str ([] [] [] [] [] [] []) [(AnnAssign (Name s Store) (Name str Load) () 1) (Assign [(Name s Store)] (Call (Name str Load) [] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(ConstantInt 5 ())] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(UnaryOp USub (ConstantInt 4 ()))] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(ConstantFloat 5.600000 ())] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(ConstantBool .true. ())] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(ConstantBool .false. ())] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(ConstantStr "5346" ())] []) ())] [] () ()) (FunctionDef test_callable ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name bool Load) () 1) (AnnAssign (Name b Store) (Name i32 Load) () 1) (Assign [(Name b Store)] (ConstantInt 2 ()) ()) (Assign [(Name a Store)] (Call (Name callable Load) [(Name test_len Load)] []) ()) (Assert (Compare (Name a Load) Eq [(ConstantBool .true. ())]) ()) (Assign [(Name a Store)] (Call (Name callable Load) [(Name b Load)] []) ()) (Assert (Compare (Name a Load) Eq [(ConstantBool .false. ())]) ()) (Assign [(Name a Store)] (Call (Name callable Load) [(ConstantStr "c" ())] []) ()) (Assert (Compare (Name a Load) Eq [(ConstantBool .false. ())]) ())] [] () ()) (FunctionDef test_int ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name i64 Load) () 1) (Assign [(Name a Store)] (Call (Name int Load) [] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(ConstantFloat 4.560000 ())] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(ConstantInt 5 ())] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(UnaryOp USub (ConstantFloat 5.000010 ()))] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(ConstantBool .true. ())] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(ConstantBool .false. ())] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(ConstantStr "5346" ())] []) ())] [] () ()) (FunctionDef test_float ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name f64 Load) () 1) (Assign [(Name a Store)] (Call (Name float Load) [] []) ()) (Assign [(Name a Store)] (Call (Name float Load) [(ConstantFloat 4.560000 ())] []) ()) (Assign [(Name a Store)] (Call (Name float Load) [(ConstantInt 5 ())] []) ()) (Assign [(Name a Store)] (Call (Name float Load) [(UnaryOp USub (ConstantInt 1 ()))] []) ()) (Assign [(Name a Store)] (Call (Name float Load) [(ConstantBool .true. ())] []) ()) (Assign [(Name a Store)] (Call (Name float Load) [(ConstantBool .false. ())] []) ())] [] () ()) (FunctionDef test_divmod ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load)] Load) Load) () 1) (Assign [(Name a Store)] (Call (Name divmod Load) [(ConstantInt 9 ()) (ConstantInt 3 ())] []) ()) (Assign [(Name a Store)] (Call (Name divmod Load) [(ConstantInt 9 ()) (UnaryOp USub (ConstantInt 3 ()))] []) ()) (Assign [(Name a Store)] (Call (Name divmod Load) [(ConstantInt 3 ()) (ConstantInt 3 ())] []) ()) (Assign [(Name a Store)] (Call (Name divmod Load) [(ConstantInt 4 ()) (ConstantInt 5 ())] []) ()) (Assign [(Name a Store)] (Call (Name divmod Load) [(ConstantInt 0 ()) (ConstantInt 5 ())] []) ())] [] () ())] []) +(Module [(ImportFrom lpython [(f32 ()) (i32 ()) (i64 ()) (f64 ())] 0) (FunctionDef test_boz ([] [] [] [] [] [] []) [(AnnAssign (Name b Store) (Name str Load) () 1) (Assign [(Name b Store)] (Call (Name bin Load) [(ConstantInt 5 ())] []) ()) (Assign [(Name b Store)] (Call (Name bin Load) [(ConstantInt 64 ())] []) ()) (Assign [(Name b Store)] (Call (Name bin Load) [(UnaryOp USub (ConstantInt 534 ()))] []) ()) (Assign [(Name b Store)] (Call (Name oct Load) [(ConstantInt 8 ())] []) ()) (Assign [(Name b Store)] (Call (Name oct Load) [(ConstantInt 56 ())] []) ()) (Assign [(Name b Store)] (Call (Name oct Load) [(UnaryOp USub (ConstantInt 534 ()))] []) ()) (Assign [(Name b Store)] (Call (Name hex Load) [(ConstantInt 42 ())] []) ()) (Assign [(Name b Store)] (Call (Name hex Load) [(ConstantInt 12648430 ())] []) ()) (Assign [(Name b Store)] (Call (Name hex Load) [(UnaryOp USub (ConstantInt 534 ()))] []) ())] [] () ()) (FunctionDef test_ord_chr ([] [] [] [] [] [] []) [(AnnAssign (Name s Store) (Name str Load) () 1) (AnnAssign (Name a Store) (Name i32 Load) () 1) (Assign [(Name a Store)] (Call (Name ord Load) [(ConstantStr "5" ())] []) ()) (Assign [(Name s Store)] (Call (Name chr Load) [(ConstantInt 43 ())] []) ())] [] () ()) (FunctionDef test_abs ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name i32 Load) () 1) (Assign [(Name a Store)] (Call (Name abs Load) [(ConstantInt 5 ())] []) ()) (Assign [(Name a Store)] (Call (Name abs Load) [(UnaryOp USub (ConstantInt 500 ()))] []) ()) (Assign [(Name a Store)] (Call (Name abs Load) [(ConstantBool .false. ())] []) ()) (Assign [(Name a Store)] (Call (Name abs Load) [(ConstantBool .true. ())] []) ()) (AnnAssign (Name b Store) (Name f32 Load) () 1) (Assign [(Name b Store)] (Call (Name f32 Load) [(Call (Name abs Load) [(ConstantFloat 3.450000 ())] [])] []) ()) (Assign [(Name b Store)] (Call (Name f32 Load) [(Call (Name abs Load) [(UnaryOp USub (ConstantFloat 5346.340000 ()))] [])] []) ()) (Assign [(Name b Store)] (Call (Name f32 Load) [(Call (Name abs Load) [(Call (Name complex Load) [(ConstantFloat 3.450000 ()) (ConstantFloat 5.600000 ())] [])] [])] []) ())] [] () ()) (FunctionDef test_len ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name i32 Load) () 1) (Assign [(Name a Store)] (Call (Name len Load) [(ConstantStr "" ())] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(ConstantStr "test" ())] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(ConstantStr "this is a test" ())] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(Tuple [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())] Load)] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(Tuple [(Tuple [(ConstantStr "c" ()) (ConstantStr "b" ()) (ConstantFloat 3.400000 ())] Load) (Tuple [(ConstantStr "c" ()) (ConstantInt 3 ()) (ConstantFloat 5.600000 ())] Load)] Load)] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(List [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())] Load)] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(List [(List [(UnaryOp USub (ConstantInt 4 ())) (UnaryOp USub (ConstantInt 5 ())) (UnaryOp USub (ConstantInt 6 ()))] Load) (List [(UnaryOp USub (ConstantInt 1 ())) (UnaryOp USub (ConstantInt 2 ())) (UnaryOp USub (ConstantInt 3 ()))] Load)] Load)] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(Set [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())])] []) ()) (Assign [(Name a Store)] (Call (Name len Load) [(Dict [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())] [(ConstantStr "c" ()) (ConstantStr "b" ()) (ConstantStr "c" ())])] []) ()) (AnnAssign (Name l Store) (Subscript (Name list Load) (Name i32 Load) Load) () 1) (Assign [(Name l Store)] (List [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ()) (ConstantInt 4 ())] Load) ()) (Assign [(Name a Store)] (Call (Name len Load) [(Name l Load)] []) ()) (Expr (Call (Attribute (Name l Load) append Load) [(ConstantInt 5 ())] [])) (Assign [(Name a Store)] (Call (Name len Load) [(Name l Load)] []) ())] [] () ()) (FunctionDef test_bool ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name bool Load) () 1) (Assign [(Name a Store)] (Call (Name bool Load) [(ConstantInt 0 ())] []) ()) (Assign [(Name a Store)] (Call (Name bool Load) [(UnaryOp USub (ConstantInt 1 ()))] []) ()) (Assign [(Name a Store)] (Call (Name bool Load) [(ConstantStr "" ())] []) ()) (Assign [(Name a Store)] (Call (Name bool Load) [(Call (Name complex Load) [(ConstantInt 0 ()) (ConstantInt 0 ())] [])] []) ()) (Assert (Compare (Name a Load) Eq [(ConstantBool .false. ())]) ()) (Assign [(Name a Store)] (Call (Name bool Load) [(ConstantStr "t" ())] []) ()) (Assign [(Name a Store)] (Call (Name bool Load) [(ConstantFloat 2.300000 ())] []) ()) (Assert (Compare (Name a Load) Eq [(ConstantBool .true. ())]) ())] [] () ()) (FunctionDef test_str ([] [] [] [] [] [] []) [(AnnAssign (Name s Store) (Name str Load) () 1) (Assign [(Name s Store)] (Call (Name str Load) [] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(ConstantInt 5 ())] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(UnaryOp USub (ConstantInt 4 ()))] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(ConstantFloat 5.600000 ())] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(ConstantBool .true. ())] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(ConstantBool .false. ())] []) ()) (Assign [(Name s Store)] (Call (Name str Load) [(ConstantStr "5346" ())] []) ())] [] () ()) (FunctionDef test_callable ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name bool Load) () 1) (AnnAssign (Name b Store) (Name i32 Load) () 1) (Assign [(Name b Store)] (ConstantInt 2 ()) ()) (Assign [(Name a Store)] (Call (Name callable Load) [(Name test_len Load)] []) ()) (Assert (Compare (Name a Load) Eq [(ConstantBool .true. ())]) ()) (Assign [(Name a Store)] (Call (Name callable Load) [(Name b Load)] []) ()) (Assert (Compare (Name a Load) Eq [(ConstantBool .false. ())]) ()) (Assign [(Name a Store)] (Call (Name callable Load) [(ConstantStr "c" ())] []) ()) (Assert (Compare (Name a Load) Eq [(ConstantBool .false. ())]) ())] [] () ()) (FunctionDef test_int ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name i64 Load) () 1) (Assign [(Name a Store)] (Call (Name int Load) [] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(ConstantFloat 4.560000 ())] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(ConstantInt 5 ())] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(UnaryOp USub (ConstantFloat 5.000010 ()))] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(ConstantBool .true. ())] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(ConstantBool .false. ())] []) ()) (Assign [(Name a Store)] (Call (Name int Load) [(ConstantStr "5346" ())] []) ())] [] () ()) (FunctionDef test_float ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name f64 Load) () 1) (Assign [(Name a Store)] (Call (Name float Load) [] []) ()) (Assign [(Name a Store)] (Call (Name float Load) [(ConstantFloat 4.560000 ())] []) ()) (Assign [(Name a Store)] (Call (Name float Load) [(ConstantInt 5 ())] []) ()) (Assign [(Name a Store)] (Call (Name float Load) [(UnaryOp USub (ConstantInt 1 ()))] []) ()) (Assign [(Name a Store)] (Call (Name float Load) [(ConstantBool .true. ())] []) ()) (Assign [(Name a Store)] (Call (Name float Load) [(ConstantBool .false. ())] []) ())] [] () ()) (FunctionDef test_divmod ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load)] Load) Load) () 1) (Assign [(Name a Store)] (Call (Name divmod Load) [(ConstantInt 9 ()) (ConstantInt 3 ())] []) ()) (Assign [(Name a Store)] (Call (Name divmod Load) [(ConstantInt 9 ()) (UnaryOp USub (ConstantInt 3 ()))] []) ()) (Assign [(Name a Store)] (Call (Name divmod Load) [(ConstantInt 3 ()) (ConstantInt 3 ())] []) ()) (Assign [(Name a Store)] (Call (Name divmod Load) [(ConstantInt 4 ()) (ConstantInt 5 ())] []) ()) (Assign [(Name a Store)] (Call (Name divmod Load) [(ConstantInt 0 ()) (ConstantInt 5 ())] []) ())] [] () ())] []) diff --git a/tests/reference/ast-doconcurrentloop_01-ed7017b.json b/tests/reference/ast-doconcurrentloop_01-ed7017b.json index 2b8c00a5f9..a062d7760d 100644 --- a/tests/reference/ast-doconcurrentloop_01-ed7017b.json +++ b/tests/reference/ast-doconcurrentloop_01-ed7017b.json @@ -2,11 +2,11 @@ "basename": "ast-doconcurrentloop_01-ed7017b", "cmd": "lpython --show-ast --no-color {infile} -o {outfile}", "infile": "tests/doconcurrentloop_01.py", - "infile_hash": "dc0022671a9fa7b620378903a700dd8c4390297cacb1aca2b904069d", + "infile_hash": "2fe3769863a595a01e46a88bf55c944e61a0d141d5c75816ffa74d96", "outfile": null, "outfile_hash": null, "stdout": "ast-doconcurrentloop_01-ed7017b.stdout", - "stdout_hash": "3abe51b8dc837cd8d8185a9f97b0061aa393ef94ec3461c2406c5c63", + "stdout_hash": "72568cadc59bee5d60775b973fd8355e6432dc467203f0d4ad7a5ae2", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast-doconcurrentloop_01-ed7017b.stdout b/tests/reference/ast-doconcurrentloop_01-ed7017b.stdout index 0a0ed27394..9214967fa8 100644 --- a/tests/reference/ast-doconcurrentloop_01-ed7017b.stdout +++ b/tests/reference/ast-doconcurrentloop_01-ed7017b.stdout @@ -1 +1 @@ -(Module [(ImportFrom ltypes [(f32 ()) (i32 ())] 0) (FunctionDef triad ([] [(a (Subscript (Name f32 Load) (Slice () () ()) Load) ()) (b (Subscript (Name f32 Load) (Slice () () ()) Load) ()) (scalar (Name f32 Load) ()) (c (Subscript (Name f32 Load) (Slice () () ()) Load) ())] [] [] [] [] []) [(AnnAssign (Name N Store) (Name i32 Load) () 1) (AnnAssign (Name i Store) (Name i32 Load) () 1) (Assign [(Name N Store)] (Call (Name size Load) [(Name a Load)] []) ()) (For (Name i Store) (Call (Name range Load) [(Name N Load)] []) [(Assign [(Subscript (Name c Load) (Name i Load) Store)] (BinOp (Subscript (Name a Load) (Name i Load) Load) Add (BinOp (Name scalar Load) Mult (Subscript (Name b Load) (Name i Load) Load))) ())] [] "parallel")] [] () ()) (FunctionDef main0 ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Subscript (Name f32 Load) (ConstantInt 10000 ()) Load) () 1) (AnnAssign (Name b Store) (Subscript (Name f32 Load) (ConstantInt 10000 ()) Load) () 1) (AnnAssign (Name c Store) (Subscript (Name f32 Load) (ConstantInt 10000 ()) Load) () 1) (AnnAssign (Name scalar Store) (Name f32 Load) () 1) (AnnAssign (Name i Store) (Name i32 Load) () 1) (AnnAssign (Name nsize Store) (Name i32 Load) () 1) (Assign [(Name scalar Store)] (Call (Name f32 Load) [(ConstantFloat 10.000000 ())] []) ()) (Assign [(Name nsize Store)] (Call (Name size Load) [(Name a Load)] []) ()) (For (Name i Store) (Call (Name range Load) [(Name nsize Load)] []) [(Assign [(Subscript (Name a Load) (Name i Load) Store)] (Call (Name f32 Load) [(ConstantFloat 5.000000 ())] []) ()) (Assign [(Subscript (Name b Load) (Name i Load) Store)] (Call (Name f32 Load) [(ConstantFloat 5.000000 ())] []) ())] [] "parallel") (Expr (Call (Name triad Load) [(Name a Load) (Name b Load) (Name scalar Load) (Name c Load)] [])) (Expr (Call (Name print Load) [(ConstantStr "End Stream Triad" ())] []))] [] () ()) (Expr (Call (Name main0 Load) [] []))] []) +(Module [(ImportFrom lpython [(f32 ()) (i32 ())] 0) (FunctionDef triad ([] [(a (Subscript (Name f32 Load) (Slice () () ()) Load) ()) (b (Subscript (Name f32 Load) (Slice () () ()) Load) ()) (scalar (Name f32 Load) ()) (c (Subscript (Name f32 Load) (Slice () () ()) Load) ())] [] [] [] [] []) [(AnnAssign (Name N Store) (Name i32 Load) () 1) (AnnAssign (Name i Store) (Name i32 Load) () 1) (Assign [(Name N Store)] (Call (Name size Load) [(Name a Load)] []) ()) (For (Name i Store) (Call (Name range Load) [(Name N Load)] []) [(Assign [(Subscript (Name c Load) (Name i Load) Store)] (BinOp (Subscript (Name a Load) (Name i Load) Load) Add (BinOp (Name scalar Load) Mult (Subscript (Name b Load) (Name i Load) Load))) ())] [] "parallel")] [] () ()) (FunctionDef main0 ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Subscript (Name f32 Load) (ConstantInt 10000 ()) Load) () 1) (AnnAssign (Name b Store) (Subscript (Name f32 Load) (ConstantInt 10000 ()) Load) () 1) (AnnAssign (Name c Store) (Subscript (Name f32 Load) (ConstantInt 10000 ()) Load) () 1) (AnnAssign (Name scalar Store) (Name f32 Load) () 1) (AnnAssign (Name i Store) (Name i32 Load) () 1) (AnnAssign (Name nsize Store) (Name i32 Load) () 1) (Assign [(Name scalar Store)] (Call (Name f32 Load) [(ConstantFloat 10.000000 ())] []) ()) (Assign [(Name nsize Store)] (Call (Name size Load) [(Name a Load)] []) ()) (For (Name i Store) (Call (Name range Load) [(Name nsize Load)] []) [(Assign [(Subscript (Name a Load) (Name i Load) Store)] (Call (Name f32 Load) [(ConstantFloat 5.000000 ())] []) ()) (Assign [(Subscript (Name b Load) (Name i Load) Store)] (Call (Name f32 Load) [(ConstantFloat 5.000000 ())] []) ())] [] "parallel") (Expr (Call (Name triad Load) [(Name a Load) (Name b Load) (Name scalar Load) (Name c Load)] [])) (Expr (Call (Name print Load) [(ConstantStr "End Stream Triad" ())] []))] [] () ()) (Expr (Call (Name main0 Load) [] []))] []) diff --git a/tests/reference/ast-expr10-a8d646d.json b/tests/reference/ast-expr10-a8d646d.json index 7de18a2de3..2417eeb323 100644 --- a/tests/reference/ast-expr10-a8d646d.json +++ b/tests/reference/ast-expr10-a8d646d.json @@ -2,11 +2,11 @@ "basename": "ast-expr10-a8d646d", "cmd": "lpython --show-ast --no-color {infile} -o {outfile}", "infile": "tests/expr10.py", - "infile_hash": "2c90a0c7da6ba455ad6b7c1d43ffd578e78551f9b3e792144b6dd1cd", + "infile_hash": "7eb1dd6ad27fcc091e18c4447fb7a56c659565bbdb57f567b68f4a58", "outfile": null, "outfile_hash": null, "stdout": "ast-expr10-a8d646d.stdout", - "stdout_hash": "334f50d8cb1e494f547682b1e8f2294f9176d051432f15c6182531a8", + "stdout_hash": "41d93f91650daa32fb9a699a13388502fd98ddd369f84714dcf21952", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast-expr10-a8d646d.stdout b/tests/reference/ast-expr10-a8d646d.stdout index 79e138cbae..9eda78cc28 100644 --- a/tests/reference/ast-expr10-a8d646d.stdout +++ b/tests/reference/ast-expr10-a8d646d.stdout @@ -1 +1 @@ -(Module [(ImportFrom ltypes [(i32 ()) (f32 ()) (c32 ())] 0) (FunctionDef test_UnaryOp ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name i32 Load) () 1) (Assign [(Name a Store)] (UnaryOp UAdd (ConstantInt 4 ())) ()) (Assign [(Name a Store)] (UnaryOp USub (ConstantInt 500 ())) ()) (Assign [(Name a Store)] (UnaryOp Invert (ConstantInt 5 ())) ()) (AnnAssign (Name b Store) (Name bool Load) () 1) (Assign [(Name b Store)] (UnaryOp Not (ConstantInt 5 ())) ()) (Assign [(Name b Store)] (UnaryOp Not (UnaryOp USub (ConstantInt 1 ()))) ()) (Assign [(Name b Store)] (UnaryOp Not (ConstantInt 0 ())) ()) (AnnAssign (Name f Store) (Name f32 Load) () 1) (Assign [(Name f Store)] (UnaryOp UAdd (Call (Name f32 Load) [(ConstantFloat 1.000000 ())] [])) ()) (Assign [(Name f Store)] (UnaryOp USub (Call (Name f32 Load) [(ConstantFloat 183745.534000 ())] [])) ()) (AnnAssign (Name b1 Store) (Name bool Load) () 1) (AnnAssign (Name b2 Store) (Name bool Load) () 1) (AnnAssign (Name b3 Store) (Name bool Load) () 1) (Assign [(Name b1 Store)] (ConstantBool .true. ()) ()) (Assign [(Name b2 Store)] (UnaryOp Not (ConstantBool .false. ())) ()) (Assign [(Name b3 Store)] (UnaryOp Not (Name b2 Load)) ()) (Assign [(Name a Store)] (UnaryOp UAdd (ConstantBool .true. ())) ()) (Assign [(Name a Store)] (UnaryOp USub (ConstantBool .false. ())) ()) (Assign [(Name a Store)] (UnaryOp Invert (ConstantBool .true. ())) ()) (AnnAssign (Name c Store) (Name c32 Load) () 1) (Assign [(Name c Store)] (UnaryOp UAdd (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantInt 1 ()) (ConstantInt 2 ())] [])] [])) ()) (Assign [(Name c Store)] (UnaryOp USub (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantInt 3 ()) (ConstantFloat 65.000000 ())] [])] [])) ()) (Assign [(Name b1 Store)] (UnaryOp Not (Call (Name complex Load) [(ConstantInt 3 ()) (ConstantInt 4 ())] [])) ()) (Assign [(Name b2 Store)] (UnaryOp Not (Call (Name complex Load) [(ConstantInt 0 ()) (ConstantInt 0 ())] [])) ())] [] () ())] []) +(Module [(ImportFrom lpython [(i32 ()) (f32 ()) (c32 ())] 0) (FunctionDef test_UnaryOp ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name i32 Load) () 1) (Assign [(Name a Store)] (UnaryOp UAdd (ConstantInt 4 ())) ()) (Assign [(Name a Store)] (UnaryOp USub (ConstantInt 500 ())) ()) (Assign [(Name a Store)] (UnaryOp Invert (ConstantInt 5 ())) ()) (AnnAssign (Name b Store) (Name bool Load) () 1) (Assign [(Name b Store)] (UnaryOp Not (ConstantInt 5 ())) ()) (Assign [(Name b Store)] (UnaryOp Not (UnaryOp USub (ConstantInt 1 ()))) ()) (Assign [(Name b Store)] (UnaryOp Not (ConstantInt 0 ())) ()) (AnnAssign (Name f Store) (Name f32 Load) () 1) (Assign [(Name f Store)] (UnaryOp UAdd (Call (Name f32 Load) [(ConstantFloat 1.000000 ())] [])) ()) (Assign [(Name f Store)] (UnaryOp USub (Call (Name f32 Load) [(ConstantFloat 183745.534000 ())] [])) ()) (AnnAssign (Name b1 Store) (Name bool Load) () 1) (AnnAssign (Name b2 Store) (Name bool Load) () 1) (AnnAssign (Name b3 Store) (Name bool Load) () 1) (Assign [(Name b1 Store)] (ConstantBool .true. ()) ()) (Assign [(Name b2 Store)] (UnaryOp Not (ConstantBool .false. ())) ()) (Assign [(Name b3 Store)] (UnaryOp Not (Name b2 Load)) ()) (Assign [(Name a Store)] (UnaryOp UAdd (ConstantBool .true. ())) ()) (Assign [(Name a Store)] (UnaryOp USub (ConstantBool .false. ())) ()) (Assign [(Name a Store)] (UnaryOp Invert (ConstantBool .true. ())) ()) (AnnAssign (Name c Store) (Name c32 Load) () 1) (Assign [(Name c Store)] (UnaryOp UAdd (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantInt 1 ()) (ConstantInt 2 ())] [])] [])) ()) (Assign [(Name c Store)] (UnaryOp USub (Call (Name c32 Load) [(Call (Name complex Load) [(ConstantInt 3 ()) (ConstantFloat 65.000000 ())] [])] [])) ()) (Assign [(Name b1 Store)] (UnaryOp Not (Call (Name complex Load) [(ConstantInt 3 ()) (ConstantInt 4 ())] [])) ()) (Assign [(Name b2 Store)] (UnaryOp Not (Call (Name complex Load) [(ConstantInt 0 ()) (ConstantInt 0 ())] [])) ())] [] () ())] []) diff --git a/tests/reference/ast-expr7-fe52776.json b/tests/reference/ast-expr7-fe52776.json index 732c707a1b..4e4eafb67d 100644 --- a/tests/reference/ast-expr7-fe52776.json +++ b/tests/reference/ast-expr7-fe52776.json @@ -2,11 +2,11 @@ "basename": "ast-expr7-fe52776", "cmd": "lpython --show-ast --no-color {infile} -o {outfile}", "infile": "tests/expr7.py", - "infile_hash": "7e10fd3558ed9a0c805fd1f27740f6cc539142917841585c7679779b", + "infile_hash": "7ef1383d1798621ee35adb7296bfe66dcdc08a21ac8dc86b9ce42878", "outfile": null, "outfile_hash": null, "stdout": "ast-expr7-fe52776.stdout", - "stdout_hash": "af621183a21cfc4726da5875578cd9cd5a6b943dde44c91d9864947d", + "stdout_hash": "03411dae0436e92d06b054127b0d89b089f2678fea80e679edc630db", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast-expr7-fe52776.stdout b/tests/reference/ast-expr7-fe52776.stdout index d6366f24e5..aeed14a15e 100644 --- a/tests/reference/ast-expr7-fe52776.stdout +++ b/tests/reference/ast-expr7-fe52776.stdout @@ -1 +1 @@ -(Module [(ImportFrom ltypes [(i32 ())] 0) (FunctionDef test_pow ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name i32 Load) () 1) (Assign [(Name a Store)] (Call (Name i32 Load) [(Call (Name pow Load) [(ConstantInt 2 ()) (ConstantInt 2 ())] [])] []) ())] [] () ()) (FunctionDef test_pow_1 ([] [(a (Name i32 Load) ()) (b (Name i32 Load) ())] [] [] [] [] []) [(AnnAssign (Name res Store) (Name i32 Load) () 1) (Assign [(Name res Store)] (Call (Name i32 Load) [(Call (Name pow Load) [(Name a Load) (Name b Load)] [])] []) ()) (Return (Name res Load))] [] (Name i32 Load) ()) (FunctionDef main0 ([] [] [] [] [] [] []) [(Expr (Call (Name test_pow Load) [] [])) (AnnAssign (Name c Store) (Name i32 Load) () 1) (Assign [(Name c Store)] (Call (Name test_pow_1 Load) [(ConstantInt 1 ()) (ConstantInt 2 ())] []) ())] [] () ()) (Expr (Call (Name main0 Load) [] []))] []) +(Module [(ImportFrom lpython [(i32 ())] 0) (FunctionDef test_pow ([] [] [] [] [] [] []) [(AnnAssign (Name a Store) (Name i32 Load) () 1) (Assign [(Name a Store)] (Call (Name i32 Load) [(Call (Name pow Load) [(ConstantInt 2 ()) (ConstantInt 2 ())] [])] []) ())] [] () ()) (FunctionDef test_pow_1 ([] [(a (Name i32 Load) ()) (b (Name i32 Load) ())] [] [] [] [] []) [(AnnAssign (Name res Store) (Name i32 Load) () 1) (Assign [(Name res Store)] (Call (Name i32 Load) [(Call (Name pow Load) [(Name a Load) (Name b Load)] [])] []) ()) (Return (Name res Load))] [] (Name i32 Load) ()) (FunctionDef main0 ([] [] [] [] [] [] []) [(Expr (Call (Name test_pow Load) [] [])) (AnnAssign (Name c Store) (Name i32 Load) () 1) (Assign [(Name c Store)] (Call (Name test_pow_1 Load) [(ConstantInt 1 ()) (ConstantInt 2 ())] []) ())] [] () ()) (Expr (Call (Name main0 Load) [] []))] []) diff --git a/tests/reference/ast-expr8-7db6b28.json b/tests/reference/ast-expr8-7db6b28.json index b041a445ed..c1a916e2a4 100644 --- a/tests/reference/ast-expr8-7db6b28.json +++ b/tests/reference/ast-expr8-7db6b28.json @@ -2,11 +2,11 @@ "basename": "ast-expr8-7db6b28", "cmd": "lpython --show-ast --no-color {infile} -o {outfile}", "infile": "tests/expr8.py", - "infile_hash": "4e9a7a5642d721ee6a41db2c3d587c1811c5baad582bddc67cc68842", + "infile_hash": "6966e19cf343700cbc11ec1bf6a495e43c685c6fa065669875aa61ce", "outfile": null, "outfile_hash": null, "stdout": "ast-expr8-7db6b28.stdout", - "stdout_hash": "d36163ef1638a9f292cac90161af70faa653686821e0b8c362c1661b", + "stdout_hash": "4b90ba7c8c2d4aae1b3b1036351ca8864732039d4699e28a17d4ffd3", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast-expr8-7db6b28.stdout b/tests/reference/ast-expr8-7db6b28.stdout index f32efc697f..18ea3fc8a7 100644 --- a/tests/reference/ast-expr8-7db6b28.stdout +++ b/tests/reference/ast-expr8-7db6b28.stdout @@ -1 +1 @@ -(Module [(ImportFrom ltypes [(i32 ()) (f32 ())] 0) (FunctionDef test_binop ([] [] [] [] [] [] []) [(AnnAssign (Name x Store) (Name i32 Load) () 1) (AnnAssign (Name x2 Store) (Name f32 Load) () 1) (Assign [(Name x Store)] (BinOp (ConstantInt 2 ()) Pow (ConstantInt 3 ())) ()) (Assign [(Name x2 Store)] (Call (Name f32 Load) [(BinOp (ConstantFloat 2.000000 ()) Pow (ConstantFloat 3.500000 ()))] []) ()) (Assign [(Name x Store)] (BinOp (ConstantInt 54 ()) Sub (ConstantInt 100 ())) ()) (Assign [(Name x2 Store)] (Call (Name f32 Load) [(BinOp (BinOp (ConstantFloat 3.454000 ()) Sub (ConstantFloat 765.430000 ())) Add (ConstantFloat 534.600000 ()))] []) ()) (Assign [(Name x2 Store)] (Call (Name f32 Load) [(BinOp (ConstantFloat 5346.565000 ()) Mult (ConstantFloat 3.450000 ()))] []) ()) (Assign [(Name x2 Store)] (Call (Name f32 Load) [(BinOp (ConstantFloat 5346.565000 ()) Pow (ConstantFloat 3.450000 ()))] []) ()) (Assign [(Name x Store)] (BinOp (ConstantBool .true. ()) Add (ConstantBool .true. ())) ()) (Assign [(Name x Store)] (BinOp (ConstantBool .true. ()) Sub (ConstantBool .false. ())) ()) (Assign [(Name x Store)] (BinOp (ConstantBool .true. ()) Mult (ConstantBool .false. ())) ()) (Assign [(Name x Store)] (BinOp (ConstantBool .true. ()) Pow (ConstantBool .false. ())) ()) (AnnAssign (Name b1 Store) (Name bool Load) () 1) (AnnAssign (Name b2 Store) (Name bool Load) () 1) (Assign [(Name b1 Store)] (ConstantBool .true. ()) ()) (Assign [(Name b2 Store)] (ConstantBool .false. ()) ()) (Assign [(Name x Store)] (Call (Name i32 Load) [(BinOp (Name b1 Load) FloorDiv (Name b1 Load))] []) ()) (Assign [(Name x Store)] (BinOp (Name b1 Load) Pow (Name b2 Load)) ())] [] () ())] []) +(Module [(ImportFrom lpython [(i32 ()) (f32 ())] 0) (FunctionDef test_binop ([] [] [] [] [] [] []) [(AnnAssign (Name x Store) (Name i32 Load) () 1) (AnnAssign (Name x2 Store) (Name f32 Load) () 1) (Assign [(Name x Store)] (BinOp (ConstantInt 2 ()) Pow (ConstantInt 3 ())) ()) (Assign [(Name x2 Store)] (Call (Name f32 Load) [(BinOp (ConstantFloat 2.000000 ()) Pow (ConstantFloat 3.500000 ()))] []) ()) (Assign [(Name x Store)] (BinOp (ConstantInt 54 ()) Sub (ConstantInt 100 ())) ()) (Assign [(Name x2 Store)] (Call (Name f32 Load) [(BinOp (BinOp (ConstantFloat 3.454000 ()) Sub (ConstantFloat 765.430000 ())) Add (ConstantFloat 534.600000 ()))] []) ()) (Assign [(Name x2 Store)] (Call (Name f32 Load) [(BinOp (ConstantFloat 5346.565000 ()) Mult (ConstantFloat 3.450000 ()))] []) ()) (Assign [(Name x2 Store)] (Call (Name f32 Load) [(BinOp (ConstantFloat 5346.565000 ()) Pow (ConstantFloat 3.450000 ()))] []) ()) (Assign [(Name x Store)] (BinOp (ConstantBool .true. ()) Add (ConstantBool .true. ())) ()) (Assign [(Name x Store)] (BinOp (ConstantBool .true. ()) Sub (ConstantBool .false. ())) ()) (Assign [(Name x Store)] (BinOp (ConstantBool .true. ()) Mult (ConstantBool .false. ())) ()) (Assign [(Name x Store)] (BinOp (ConstantBool .true. ()) Pow (ConstantBool .false. ())) ()) (AnnAssign (Name b1 Store) (Name bool Load) () 1) (AnnAssign (Name b2 Store) (Name bool Load) () 1) (Assign [(Name b1 Store)] (ConstantBool .true. ()) ()) (Assign [(Name b2 Store)] (ConstantBool .false. ()) ()) (Assign [(Name x Store)] (Call (Name i32 Load) [(BinOp (Name b1 Load) FloorDiv (Name b1 Load))] []) ()) (Assign [(Name x Store)] (BinOp (Name b1 Load) Pow (Name b2 Load)) ())] [] () ())] []) diff --git a/tests/reference/ast-loop1-194a137.json b/tests/reference/ast-loop1-194a137.json index a1d1104224..b1da216dc1 100644 --- a/tests/reference/ast-loop1-194a137.json +++ b/tests/reference/ast-loop1-194a137.json @@ -2,11 +2,11 @@ "basename": "ast-loop1-194a137", "cmd": "lpython --show-ast --no-color {infile} -o {outfile}", "infile": "tests/loop1.py", - "infile_hash": "0eee568be1d20a4c31b59c33ae2b47509fce3f6047fa1ffa592947e9", + "infile_hash": "324b018f29f7dffbd326e77b7ff9b6a9286837d573ed28f9d86e0311", "outfile": null, "outfile_hash": null, "stdout": "ast-loop1-194a137.stdout", - "stdout_hash": "f80e8babf4c7c844136d04f2e4bc9f79ade9a2202f1cd6f12f6bb781", + "stdout_hash": "0bd79de9d66d261eec49cf34dc1dfd4aceb1974b6fdb45f81197dc15", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast-loop1-194a137.stdout b/tests/reference/ast-loop1-194a137.stdout index 73fbcd3b4d..65c43e849a 100644 --- a/tests/reference/ast-loop1-194a137.stdout +++ b/tests/reference/ast-loop1-194a137.stdout @@ -1 +1 @@ -(Module [(ImportFrom ltypes [(i32 ()) (i64 ())] 0) (FunctionDef test_factorial_1 ([] [(x (Name i32 Load) ())] [] [] [] [] []) [(If (Compare (Name x Load) Lt [(ConstantInt 0 ())]) [(Return (ConstantInt 0 ()))] []) (AnnAssign (Name result Store) (Name i32 Load) () 1) (Assign [(Name result Store)] (ConstantInt 1 ()) ()) (While (Compare (Name x Load) Gt [(ConstantInt 0 ())]) [(Assign [(Name result Store)] (BinOp (Name result Load) Mult (Name x Load)) ()) (AugAssign (Name x Store) Sub (ConstantInt 1 ()))] []) (Return (Name result Load))] [] (Name i32 Load) ()) (FunctionDef test_factorial_2 ([] [(x (Name i32 Load) ())] [] [] [] [] []) [(AnnAssign (Name result Store) (Name i32 Load) () 1) (Assign [(Name result Store)] (ConstantInt 1 ()) ()) (AnnAssign (Name i Store) (Name i32 Load) () 1) (For (Name i Store) (Call (Name range Load) [(ConstantInt 1 ()) (BinOp (Name x Load) Add (ConstantInt 1 ()))] []) [(Assign [(Name result Store)] (BinOp (Name result Load) Mult (Name i Load)) ())] [] ()) (Return (Name result Load))] [] (Name i32 Load) ()) (FunctionDef test_factorial_3 ([] [(x (Name i32 Load) ())] [] [] [] [] []) [(AnnAssign (Name result Store) (Name i64 Load) () 1) (Assign [(Name result Store)] (Call (Name i64 Load) [(ConstantInt 0 ())] []) ()) (If (Compare (Name x Load) Lt [(ConstantInt 0 ())]) [(Return (Name result Load))] []) (Assign [(Name result Store)] (Call (Name i64 Load) [(ConstantInt 1 ())] []) ()) (While (Compare (Name x Load) Gt [(ConstantInt 0 ())]) [(Assign [(Name result Store)] (BinOp (Name result Load) Mult (Call (Name i64 Load) [(Name x Load)] [])) ()) (AugAssign (Name x Store) Sub (ConstantInt 1 ()))] []) (Return (Name result Load))] [] (Name i64 Load) ()) (FunctionDef main0 ([] [] [] [] [] [] []) [(AnnAssign (Name i Store) (Name i32 Load) () 1) (Assign [(Name i Store)] (Call (Name test_factorial_1 Load) [(ConstantInt 4 ())] []) ()) (Assign [(Name i Store)] (Call (Name test_factorial_2 Load) [(ConstantInt 4 ())] []) ()) (AnnAssign (Name j Store) (Name i64 Load) () 1) (Assign [(Name j Store)] (Call (Name test_factorial_3 Load) [(ConstantInt 5 ())] []) ())] [] () ()) (Expr (Call (Name main0 Load) [] []))] []) +(Module [(ImportFrom lpython [(i32 ()) (i64 ())] 0) (FunctionDef test_factorial_1 ([] [(x (Name i32 Load) ())] [] [] [] [] []) [(If (Compare (Name x Load) Lt [(ConstantInt 0 ())]) [(Return (ConstantInt 0 ()))] []) (AnnAssign (Name result Store) (Name i32 Load) () 1) (Assign [(Name result Store)] (ConstantInt 1 ()) ()) (While (Compare (Name x Load) Gt [(ConstantInt 0 ())]) [(Assign [(Name result Store)] (BinOp (Name result Load) Mult (Name x Load)) ()) (AugAssign (Name x Store) Sub (ConstantInt 1 ()))] []) (Return (Name result Load))] [] (Name i32 Load) ()) (FunctionDef test_factorial_2 ([] [(x (Name i32 Load) ())] [] [] [] [] []) [(AnnAssign (Name result Store) (Name i32 Load) () 1) (Assign [(Name result Store)] (ConstantInt 1 ()) ()) (AnnAssign (Name i Store) (Name i32 Load) () 1) (For (Name i Store) (Call (Name range Load) [(ConstantInt 1 ()) (BinOp (Name x Load) Add (ConstantInt 1 ()))] []) [(Assign [(Name result Store)] (BinOp (Name result Load) Mult (Name i Load)) ())] [] ()) (Return (Name result Load))] [] (Name i32 Load) ()) (FunctionDef test_factorial_3 ([] [(x (Name i32 Load) ())] [] [] [] [] []) [(AnnAssign (Name result Store) (Name i64 Load) () 1) (Assign [(Name result Store)] (Call (Name i64 Load) [(ConstantInt 0 ())] []) ()) (If (Compare (Name x Load) Lt [(ConstantInt 0 ())]) [(Return (Name result Load))] []) (Assign [(Name result Store)] (Call (Name i64 Load) [(ConstantInt 1 ())] []) ()) (While (Compare (Name x Load) Gt [(ConstantInt 0 ())]) [(Assign [(Name result Store)] (BinOp (Name result Load) Mult (Call (Name i64 Load) [(Name x Load)] [])) ()) (AugAssign (Name x Store) Sub (ConstantInt 1 ()))] []) (Return (Name result Load))] [] (Name i64 Load) ()) (FunctionDef main0 ([] [] [] [] [] [] []) [(AnnAssign (Name i Store) (Name i32 Load) () 1) (Assign [(Name i Store)] (Call (Name test_factorial_1 Load) [(ConstantInt 4 ())] []) ()) (Assign [(Name i Store)] (Call (Name test_factorial_2 Load) [(ConstantInt 4 ())] []) ()) (AnnAssign (Name j Store) (Name i64 Load) () 1) (Assign [(Name j Store)] (Call (Name test_factorial_3 Load) [(ConstantInt 5 ())] []) ())] [] () ()) (Expr (Call (Name main0 Load) [] []))] []) diff --git a/tests/reference/ast-tuple1-2fb5396.json b/tests/reference/ast-tuple1-2fb5396.json index 8e2207c1ee..fc42448056 100644 --- a/tests/reference/ast-tuple1-2fb5396.json +++ b/tests/reference/ast-tuple1-2fb5396.json @@ -2,11 +2,11 @@ "basename": "ast-tuple1-2fb5396", "cmd": "lpython --show-ast --no-color {infile} -o {outfile}", "infile": "tests/tuple1.py", - "infile_hash": "aed9320f34b5eec1d9ce30d9ef28abeaf9c1faaf421d87b34148ae04", + "infile_hash": "0ad9c210f19f9e560890c7a67ed06f4a710bbc8535c0097c35736028", "outfile": null, "outfile_hash": null, "stdout": "ast-tuple1-2fb5396.stdout", - "stdout_hash": "bc73bf5b72859d4177c36b3d062b7a12489017a09541be328d9ad727", + "stdout_hash": "427d9a46e4b238003bc0f7e43212f3316ec6031c13ede8b00e8c15a0", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast-tuple1-2fb5396.stdout b/tests/reference/ast-tuple1-2fb5396.stdout index 190e743047..f4ab9f5329 100644 --- a/tests/reference/ast-tuple1-2fb5396.stdout +++ b/tests/reference/ast-tuple1-2fb5396.stdout @@ -1 +1 @@ -(Module [(ImportFrom ltypes [(i32 ()) (f32 ())] 0) (FunctionDef test_Tuple ([] [] [] [] [] [] []) [(AnnAssign (Name a1 Store) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load) (Name i32 Load)] Load) Load) () 1) (Assign [(Name a1 Store)] (Tuple [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())] Load) ()) (Assign [(Name a1 Store)] (Tuple [(UnaryOp USub (ConstantInt 3 ())) (UnaryOp USub (ConstantInt 2 ())) (UnaryOp USub (ConstantInt 1 ()))] Load) ()) (AnnAssign (Name a2 Store) (Subscript (Name tuple Load) (Tuple [(Name str Load) (Name str Load) (Name str Load)] Load) Load) () 1) (Assign [(Name a2 Store)] (Tuple [(ConstantStr "a" ()) (ConstantStr "b" ()) (ConstantStr "c" ())] Load) ()) (AnnAssign (Name a3 Store) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load) (Name f32 Load) (Name str Load)] Load) Load) () 1) (AnnAssign (Name float_mem Store) (Name f32 Load) () 1) (Assign [(Name float_mem Store)] (Call (Name f32 Load) [(ConstantFloat 0.450000 ())] []) ()) (Assign [(Name a3 Store)] (Tuple [(UnaryOp USub (ConstantInt 2 ())) (UnaryOp USub (ConstantInt 1 ())) (Name float_mem Load) (ConstantStr "d" ())] Load) ()) (AnnAssign (Name a4 Store) (Subscript (Name tuple Load) (Tuple [(Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load) (Name i32 Load)] Load) Load) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load) (Name i32 Load)] Load) Load)] Load) Load) () 1) (Assign [(Name a4 Store)] (Tuple [(Tuple [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())] Load) (Tuple [(ConstantInt 4 ()) (ConstantInt 5 ()) (ConstantInt 6 ())] Load)] Load) ()) (AnnAssign (Name a5 Store) (Subscript (Name tuple Load) (Tuple [(Subscript (Name tuple Load) (Tuple [(Name str Load) (Name str Load) (Name f32 Load)] Load) Load) (Subscript (Name tuple Load) (Tuple [(Name str Load) (Name i32 Load) (Name f32 Load)] Load) Load)] Load) Load) () 1) (AnnAssign (Name float_mem1 Store) (Name f32 Load) () 1) (AnnAssign (Name float_mem2 Store) (Name f32 Load) () 1) (Assign [(Name float_mem1 Store)] (Call (Name f32 Load) [(ConstantFloat 3.400000 ())] []) ()) (Assign [(Name float_mem2 Store)] (Call (Name f32 Load) [(ConstantFloat 5.600000 ())] []) ()) (Assign [(Name a5 Store)] (Tuple [(Tuple [(ConstantStr "a" ()) (ConstantStr "b" ()) (Name float_mem1 Load)] Load) (Tuple [(ConstantStr "c" ()) (ConstantInt 3 ()) (Name float_mem2 Load)] Load)] Load) ()) (AnnAssign (Name b0 Store) (Name i32 Load) () 1) (AnnAssign (Name b1 Store) (Name i32 Load) () 1) (Assign [(Name b0 Store)] (Subscript (Name a1 Load) (ConstantInt 0 ()) Load) ()) (Assign [(Tuple [(Name b0 Store) (Name b1 Store)] Store)] (Tuple [(Subscript (Name a1 Load) (ConstantInt 2 ()) Load) (Subscript (Name a1 Load) (ConstantInt 1 ()) Load)] Load) ()) (AnnAssign (Name a11 Store) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load)] Load) Load) () 1) (AnnAssign (Name b11 Store) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load)] Load) Load) () 1) (Assign [(Name a11 Store)] (Tuple [(ConstantInt 1 ()) (ConstantInt 2 ())] Load) ()) (Assign [(Name b11 Store)] (Tuple [(ConstantInt 1 ()) (ConstantInt 2 ())] Load) ()) (Assert (Compare (Name a11 Load) Eq [(Name b11 Load)]) ())] [] () ())] []) +(Module [(ImportFrom lpython [(i32 ()) (f32 ())] 0) (FunctionDef test_Tuple ([] [] [] [] [] [] []) [(AnnAssign (Name a1 Store) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load) (Name i32 Load)] Load) Load) () 1) (Assign [(Name a1 Store)] (Tuple [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())] Load) ()) (Assign [(Name a1 Store)] (Tuple [(UnaryOp USub (ConstantInt 3 ())) (UnaryOp USub (ConstantInt 2 ())) (UnaryOp USub (ConstantInt 1 ()))] Load) ()) (AnnAssign (Name a2 Store) (Subscript (Name tuple Load) (Tuple [(Name str Load) (Name str Load) (Name str Load)] Load) Load) () 1) (Assign [(Name a2 Store)] (Tuple [(ConstantStr "a" ()) (ConstantStr "b" ()) (ConstantStr "c" ())] Load) ()) (AnnAssign (Name a3 Store) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load) (Name f32 Load) (Name str Load)] Load) Load) () 1) (AnnAssign (Name float_mem Store) (Name f32 Load) () 1) (Assign [(Name float_mem Store)] (Call (Name f32 Load) [(ConstantFloat 0.450000 ())] []) ()) (Assign [(Name a3 Store)] (Tuple [(UnaryOp USub (ConstantInt 2 ())) (UnaryOp USub (ConstantInt 1 ())) (Name float_mem Load) (ConstantStr "d" ())] Load) ()) (AnnAssign (Name a4 Store) (Subscript (Name tuple Load) (Tuple [(Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load) (Name i32 Load)] Load) Load) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load) (Name i32 Load)] Load) Load)] Load) Load) () 1) (Assign [(Name a4 Store)] (Tuple [(Tuple [(ConstantInt 1 ()) (ConstantInt 2 ()) (ConstantInt 3 ())] Load) (Tuple [(ConstantInt 4 ()) (ConstantInt 5 ()) (ConstantInt 6 ())] Load)] Load) ()) (AnnAssign (Name a5 Store) (Subscript (Name tuple Load) (Tuple [(Subscript (Name tuple Load) (Tuple [(Name str Load) (Name str Load) (Name f32 Load)] Load) Load) (Subscript (Name tuple Load) (Tuple [(Name str Load) (Name i32 Load) (Name f32 Load)] Load) Load)] Load) Load) () 1) (AnnAssign (Name float_mem1 Store) (Name f32 Load) () 1) (AnnAssign (Name float_mem2 Store) (Name f32 Load) () 1) (Assign [(Name float_mem1 Store)] (Call (Name f32 Load) [(ConstantFloat 3.400000 ())] []) ()) (Assign [(Name float_mem2 Store)] (Call (Name f32 Load) [(ConstantFloat 5.600000 ())] []) ()) (Assign [(Name a5 Store)] (Tuple [(Tuple [(ConstantStr "a" ()) (ConstantStr "b" ()) (Name float_mem1 Load)] Load) (Tuple [(ConstantStr "c" ()) (ConstantInt 3 ()) (Name float_mem2 Load)] Load)] Load) ()) (AnnAssign (Name b0 Store) (Name i32 Load) () 1) (AnnAssign (Name b1 Store) (Name i32 Load) () 1) (Assign [(Name b0 Store)] (Subscript (Name a1 Load) (ConstantInt 0 ()) Load) ()) (Assign [(Tuple [(Name b0 Store) (Name b1 Store)] Store)] (Tuple [(Subscript (Name a1 Load) (ConstantInt 2 ()) Load) (Subscript (Name a1 Load) (ConstantInt 1 ()) Load)] Load) ()) (AnnAssign (Name a11 Store) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load)] Load) Load) () 1) (AnnAssign (Name b11 Store) (Subscript (Name tuple Load) (Tuple [(Name i32 Load) (Name i32 Load)] Load) Load) () 1) (Assign [(Name a11 Store)] (Tuple [(ConstantInt 1 ()) (ConstantInt 2 ())] Load) ()) (Assign [(Name b11 Store)] (Tuple [(ConstantInt 1 ()) (ConstantInt 2 ())] Load) ()) (Assert (Compare (Name a11 Load) Eq [(Name b11 Load)]) ())] [] () ())] []) diff --git a/tests/reference/ast_new-for1-887432e.json b/tests/reference/ast_new-for1-887432e.json index 3cd9680d17..e607e671c7 100644 --- a/tests/reference/ast_new-for1-887432e.json +++ b/tests/reference/ast_new-for1-887432e.json @@ -2,11 +2,11 @@ "basename": "ast_new-for1-887432e", "cmd": "lpython --show-ast --new-parser --no-color {infile} -o {outfile}", "infile": "tests/parser/for1.py", - "infile_hash": "f025995384e87a428a605ae718932f3fbc25aa3f8baa5508f2018997", + "infile_hash": "8f9e8ef938c302e9ec566be988c563e0378002ac96687c46d7d9c137", "outfile": null, "outfile_hash": null, "stdout": "ast_new-for1-887432e.stdout", - "stdout_hash": "ddf8b7ff93327c03459a9ed17dfa3706131a59b3219e2b13739c7a55", + "stdout_hash": "bb56cd64d63a02b30874df4425da2de4c9357ee7ee8d5984bae4fb93", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast_new-for1-887432e.stdout b/tests/reference/ast_new-for1-887432e.stdout index 63365817d1..e1fa927258 100644 --- a/tests/reference/ast_new-for1-887432e.stdout +++ b/tests/reference/ast_new-for1-887432e.stdout @@ -1 +1 @@ -(Module [(ImportFrom ltypes [(i32 ())] 0) (For (Name x Store) (Name fruits Load) [(Expr (Call (Name print Load) [(Name x Load)] []))] [] ()) (For (Name x Store) (Name fruits Load) [(Expr (Call (Name print Load) [(Name x Load)] [])) (If (Compare (Name x Load) Eq [(ConstantStr "banana" ())]) [(Break)] [])] [] ()) (For (Name x Store) (ConstantStr "banana" ()) [(Expr (Call (Name print Load) [(Name x Load)] []))] [] ()) (For (Name i Store) (Call (Name range Load) [(ConstantInt 6 ())] []) [(Expr (Call (Name print Load) [(Name i Load)] []))] [] ()) (For (Name i Store) (Call (Name range Load) [(ConstantInt 2 ()) (ConstantInt 30 ()) (ConstantInt 3 ())] []) [(Expr (Call (Name print Load) [(Name i Load)] []))] [] ()) (For (Name i Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(If (Compare (Name i Load) Eq [(ConstantInt 3 ())]) [(Continue)] []) (Expr (Call (Name print Load) [(Name i Load)] []))] [(Expr (Call (Name print Load) [(ConstantStr "Finally Completed!" ())] []))] ()) (For (Name i Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(For (Name j Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(Expr (Call (Name print Load) [(Name i Load) (Name j Load)] []))] [] ())] [] ()) (AnnAssign (Name sum Store) (Name i32 Load) (ConstantInt 0 ()) 1) (For (Name j Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(AugAssign (Name sum Store) Add (Name j Load))] [] ()) (For (Tuple [(Name _ Store) (Name x Store)] Store) (Name y Load) [(Pass)] [] ()) (For (Tuple [(Name x Store) (Name y Store)] Store) (Name z Load) [(Pass)] [] ()) (For (Tuple [(Name i Store) (Name a Store)] Store) (Call (Name enumerate Load) [(List [(ConstantInt 4 ()) (ConstantInt 5 ()) (ConstantInt 6 ()) (ConstantInt 7 ())] Load)] []) [(Expr (Call (Name print Load) [(Name i Load) (ConstantStr ": " ()) (Name a Load)] []))] [] ()) (For (Name i Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(Pass)] [] "int") (For (Name j Store) (Name k Load) [(Pass)] [] "List[str]") (For (Name i Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(Pass)] [(Pass)] "int")] []) +(Module [(ImportFrom lpython [(i32 ())] 0) (For (Name x Store) (Name fruits Load) [(Expr (Call (Name print Load) [(Name x Load)] []))] [] ()) (For (Name x Store) (Name fruits Load) [(Expr (Call (Name print Load) [(Name x Load)] [])) (If (Compare (Name x Load) Eq [(ConstantStr "banana" ())]) [(Break)] [])] [] ()) (For (Name x Store) (ConstantStr "banana" ()) [(Expr (Call (Name print Load) [(Name x Load)] []))] [] ()) (For (Name i Store) (Call (Name range Load) [(ConstantInt 6 ())] []) [(Expr (Call (Name print Load) [(Name i Load)] []))] [] ()) (For (Name i Store) (Call (Name range Load) [(ConstantInt 2 ()) (ConstantInt 30 ()) (ConstantInt 3 ())] []) [(Expr (Call (Name print Load) [(Name i Load)] []))] [] ()) (For (Name i Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(If (Compare (Name i Load) Eq [(ConstantInt 3 ())]) [(Continue)] []) (Expr (Call (Name print Load) [(Name i Load)] []))] [(Expr (Call (Name print Load) [(ConstantStr "Finally Completed!" ())] []))] ()) (For (Name i Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(For (Name j Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(Expr (Call (Name print Load) [(Name i Load) (Name j Load)] []))] [] ())] [] ()) (AnnAssign (Name sum Store) (Name i32 Load) (ConstantInt 0 ()) 1) (For (Name j Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(AugAssign (Name sum Store) Add (Name j Load))] [] ()) (For (Tuple [(Name _ Store) (Name x Store)] Store) (Name y Load) [(Pass)] [] ()) (For (Tuple [(Name x Store) (Name y Store)] Store) (Name z Load) [(Pass)] [] ()) (For (Tuple [(Name i Store) (Name a Store)] Store) (Call (Name enumerate Load) [(List [(ConstantInt 4 ()) (ConstantInt 5 ()) (ConstantInt 6 ()) (ConstantInt 7 ())] Load)] []) [(Expr (Call (Name print Load) [(Name i Load) (ConstantStr ": " ()) (Name a Load)] []))] [] ()) (For (Name i Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(Pass)] [] "int") (For (Name j Store) (Name k Load) [(Pass)] [] "List[str]") (For (Name i Store) (Call (Name range Load) [(ConstantInt 5 ())] []) [(Pass)] [(Pass)] "int")] []) diff --git a/tests/reference/ast_new-function_def1-1a872df.json b/tests/reference/ast_new-function_def1-1a872df.json index a7fcf22852..041ad28a2d 100644 --- a/tests/reference/ast_new-function_def1-1a872df.json +++ b/tests/reference/ast_new-function_def1-1a872df.json @@ -2,11 +2,11 @@ "basename": "ast_new-function_def1-1a872df", "cmd": "lpython --show-ast --new-parser --no-color {infile} -o {outfile}", "infile": "tests/parser/function_def1.py", - "infile_hash": "96c4a34f72e609e55af1688b793dc2d6fb375f82f661d16de0ea6fa9", + "infile_hash": "1afa1fb49c292eabdb1a8798f8b0642d878f3a67f8f069ab0bac4574", "outfile": null, "outfile_hash": null, "stdout": "ast_new-function_def1-1a872df.stdout", - "stdout_hash": "12d7440e631717d89335c357c7ee732a221d866688b445b52b9f1387", + "stdout_hash": "a16436f71dc2190d6b12f51c6b37cdf99c0f432b9aa8e162cd603f01", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast_new-function_def1-1a872df.stdout b/tests/reference/ast_new-function_def1-1a872df.stdout index bc8caaf1ef..a4ff877b2c 100644 --- a/tests/reference/ast_new-function_def1-1a872df.stdout +++ b/tests/reference/ast_new-function_def1-1a872df.stdout @@ -1 +1 @@ -(Module [(ImportFrom ltypes [(i32 ()) (overload ())] 0) (FunctionDef greet ([] [(name () ())] [] [] [] [] []) [(Expr (ConstantStr "\n This function greets to\n the person passed in as\n a parameter\n " ())) (Expr (Call (Name print Load) [(BinOp (BinOp (ConstantStr "Hello, " ()) Add (Name name Load)) Add (ConstantStr ". Good morning!" ()))] []))] [] () ()) (FunctionDef absolute_value ([] [(num () ())] [] [] [] [] []) [(Expr (ConstantStr "This function returns the absolute\n value of the entered number" ())) (If (Compare (Name num Load) GtE [(ConstantInt 0 ())]) [(Return (Name num Load))] [(Return (UnaryOp USub (Name num Load)))])] [] () ()) (FunctionDef combine ([] [(fname () ()) (lname () ())] [] [] [] [] []) [(Expr (Call (Name print Load) [(BinOp (BinOp (Name fname Load) Add (ConstantStr " " ())) Add (Name lname Load))] []))] [] () ()) (FunctionDef tri_recursion ([] [(k () ())] [] [] [] [] []) [(If (Compare (Name k Load) Gt [(ConstantInt 0 ())]) [(Assign [(Name result Store)] (BinOp (Name k Load) Add (Call (Name tri_recursion Load) [(BinOp (Name k Load) Sub (ConstantInt 1 ()))] [])) ()) (Expr (Call (Name print Load) [(Name result Load)] []))] [(Assign [(Name result Store)] (ConstantInt 0 ()) ())]) (Return (Name result Load))] [] () ()) (FunctionDef test ([] [(a (Name i32 Load) ())] [] [] [] [] []) [(Return (BinOp (Name a Load) Add (ConstantInt 10 ())))] [(Name overload Load)] (Name i32 Load) ()) (FunctionDef test ([] [(a (Name i64 Load) ())] [] [] [] [] []) [(Return (BinOp (Name a Load) Add (ConstantInt 10 ())))] [(Name overload Load)] (Name i64 Load) ()) (FunctionDef test ([] [(a (Name bool Load) ())] [] [] [] [] []) [(If (Name a Load) [(Return (ConstantInt 10 ()))] []) (Return (UnaryOp USub (ConstantInt 10 ())))] [(Name overload Load)] (Name i32 Load) ()) (FunctionDef check ([] [] [] [] [] [] []) [(Expr (Call (Name greet Load) [(ConstantStr "Xyz" ())] [])) (Expr (Call (Name print Load) [(Call (Name absolute_value Load) [(ConstantInt 2 ())] [])] [])) (Expr (Call (Name combine Load) [(ConstantStr "LPython" ()) (ConstantStr "Compiler" ())] [])) (Expr (Call (Name print Load) [(ConstantStr "Recursion Example Results: " ())] [])) (Expr (Call (Name tri_recursion Load) [(ConstantInt 6 ())] [])) (Expr (Call (Name print Load) [(Call (Name test Load) [(ConstantInt 15 ())] [])] [])) (Expr (Call (Name print Load) [(Call (Name test Load) [(ConstantBool .true. ())] [])] []))] [] () ()) (Expr (Call (Name check Load) [] [])) (FunctionDef print_args ([] [] [(args () ())] [] [] [] []) [(Expr (Call (Name print Load) [(Name args Load)] []))] [] () ()) (FunctionDef print_kwargs ([] [] [] [] [] [(kwargs () ())] []) [(Expr (Call (Name print Load) [(Name kwargs Load)] []))] [] () ())] []) +(Module [(ImportFrom lpython [(i32 ()) (overload ())] 0) (FunctionDef greet ([] [(name () ())] [] [] [] [] []) [(Expr (ConstantStr "\n This function greets to\n the person passed in as\n a parameter\n " ())) (Expr (Call (Name print Load) [(BinOp (BinOp (ConstantStr "Hello, " ()) Add (Name name Load)) Add (ConstantStr ". Good morning!" ()))] []))] [] () ()) (FunctionDef absolute_value ([] [(num () ())] [] [] [] [] []) [(Expr (ConstantStr "This function returns the absolute\n value of the entered number" ())) (If (Compare (Name num Load) GtE [(ConstantInt 0 ())]) [(Return (Name num Load))] [(Return (UnaryOp USub (Name num Load)))])] [] () ()) (FunctionDef combine ([] [(fname () ()) (lname () ())] [] [] [] [] []) [(Expr (Call (Name print Load) [(BinOp (BinOp (Name fname Load) Add (ConstantStr " " ())) Add (Name lname Load))] []))] [] () ()) (FunctionDef tri_recursion ([] [(k () ())] [] [] [] [] []) [(If (Compare (Name k Load) Gt [(ConstantInt 0 ())]) [(Assign [(Name result Store)] (BinOp (Name k Load) Add (Call (Name tri_recursion Load) [(BinOp (Name k Load) Sub (ConstantInt 1 ()))] [])) ()) (Expr (Call (Name print Load) [(Name result Load)] []))] [(Assign [(Name result Store)] (ConstantInt 0 ()) ())]) (Return (Name result Load))] [] () ()) (FunctionDef test ([] [(a (Name i32 Load) ())] [] [] [] [] []) [(Return (BinOp (Name a Load) Add (ConstantInt 10 ())))] [(Name overload Load)] (Name i32 Load) ()) (FunctionDef test ([] [(a (Name i64 Load) ())] [] [] [] [] []) [(Return (BinOp (Name a Load) Add (ConstantInt 10 ())))] [(Name overload Load)] (Name i64 Load) ()) (FunctionDef test ([] [(a (Name bool Load) ())] [] [] [] [] []) [(If (Name a Load) [(Return (ConstantInt 10 ()))] []) (Return (UnaryOp USub (ConstantInt 10 ())))] [(Name overload Load)] (Name i32 Load) ()) (FunctionDef check ([] [] [] [] [] [] []) [(Expr (Call (Name greet Load) [(ConstantStr "Xyz" ())] [])) (Expr (Call (Name print Load) [(Call (Name absolute_value Load) [(ConstantInt 2 ())] [])] [])) (Expr (Call (Name combine Load) [(ConstantStr "LPython" ()) (ConstantStr "Compiler" ())] [])) (Expr (Call (Name print Load) [(ConstantStr "Recursion Example Results: " ())] [])) (Expr (Call (Name tri_recursion Load) [(ConstantInt 6 ())] [])) (Expr (Call (Name print Load) [(Call (Name test Load) [(ConstantInt 15 ())] [])] [])) (Expr (Call (Name print Load) [(Call (Name test Load) [(ConstantBool .true. ())] [])] []))] [] () ()) (Expr (Call (Name check Load) [] [])) (FunctionDef print_args ([] [] [(args () ())] [] [] [] []) [(Expr (Call (Name print Load) [(Name args Load)] []))] [] () ()) (FunctionDef print_kwargs ([] [] [] [] [] [(kwargs () ())] []) [(Expr (Call (Name print Load) [(Name kwargs Load)] []))] [] () ())] []) diff --git a/tests/reference/ast_new-import1-f643fd3.json b/tests/reference/ast_new-import1-f643fd3.json index 49643fe8ca..e57578c6be 100644 --- a/tests/reference/ast_new-import1-f643fd3.json +++ b/tests/reference/ast_new-import1-f643fd3.json @@ -2,11 +2,11 @@ "basename": "ast_new-import1-f643fd3", "cmd": "lpython --show-ast --new-parser --no-color {infile} -o {outfile}", "infile": "tests/parser/import1.py", - "infile_hash": "baedeb917c7640e02e97e04f46abac34111f55f714d6ad43091bf3de", + "infile_hash": "be84cf9989667702a391da31494811cc4a2a0a2f7a6be764bcedc4bf", "outfile": null, "outfile_hash": null, "stdout": "ast_new-import1-f643fd3.stdout", - "stdout_hash": "a8919447efc54901c0c9906888abcf95001c7a649ee51ed5c42e98bb", + "stdout_hash": "1a38752e00a436b15b834dadb6d6a2d668499087ff107b53f9f59e60", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast_new-import1-f643fd3.stdout b/tests/reference/ast_new-import1-f643fd3.stdout index edf8d5d509..be8e448cf2 100644 --- a/tests/reference/ast_new-import1-f643fd3.stdout +++ b/tests/reference/ast_new-import1-f643fd3.stdout @@ -1 +1 @@ -(Module [(Import [(os ())]) (Import [(random r)]) (Import [(random r) (abc a)]) (Import [(x.y.z ())]) (Import [(x.y.z xyz)]) (ImportFrom ltypes [(i8 ()) (i16 ()) (i32 ()) (i64 ()) (f32 ()) (f64 ()) (c32 ()) (c64 ()) (overload ()) (ccall ()) (TypeVar ())] 0) (ImportFrom __future__ [(division ())] 0) (ImportFrom math [(* ())] 0) (ImportFrom math [(sin ()) (cos ()) (tan ())] 0) (ImportFrom math [(sin ()) (cos ())] 0) (ImportFrom math [(factorial fact)] 0) (ImportFrom x.y [(z ())] 0) (ImportFrom () [(a ())] 1) (ImportFrom a.b [(a ())] 1) (ImportFrom a.b [(* ())] 1) (ImportFrom abc [(a ())] 1) (ImportFrom abc [(a ()) (b ()) (c ())] 1) (ImportFrom x [(a ()) (b ()) (c ()) (d ())] 0) (ImportFrom x [(a ()) (b ()) (c ()) (d ())] 0) (ImportFrom x [(a ()) (b ()) (c ()) (d ())] 0) (ImportFrom x [(a ()) (b ())] 0) (ImportFrom x [(a ()) (b ())] 0) (ImportFrom x [(a ())] 0)] []) +(Module [(Import [(os ())]) (Import [(random r)]) (Import [(random r) (abc a)]) (Import [(x.y.z ())]) (Import [(x.y.z xyz)]) (ImportFrom lpython [(i8 ()) (i16 ()) (i32 ()) (i64 ()) (f32 ()) (f64 ()) (c32 ()) (c64 ()) (overload ()) (ccall ()) (TypeVar ())] 0) (ImportFrom __future__ [(division ())] 0) (ImportFrom math [(* ())] 0) (ImportFrom math [(sin ()) (cos ()) (tan ())] 0) (ImportFrom math [(sin ()) (cos ())] 0) (ImportFrom math [(factorial fact)] 0) (ImportFrom x.y [(z ())] 0) (ImportFrom () [(a ())] 1) (ImportFrom a.b [(a ())] 1) (ImportFrom a.b [(* ())] 1) (ImportFrom abc [(a ())] 1) (ImportFrom abc [(a ()) (b ()) (c ())] 1) (ImportFrom x [(a ()) (b ()) (c ()) (d ())] 0) (ImportFrom x [(a ()) (b ()) (c ()) (d ())] 0) (ImportFrom x [(a ()) (b ()) (c ()) (d ())] 0) (ImportFrom x [(a ()) (b ())] 0) (ImportFrom x [(a ()) (b ())] 0) (ImportFrom x [(a ())] 0)] []) diff --git a/tests/reference/ast_new-while1-a4c6382.json b/tests/reference/ast_new-while1-a4c6382.json index 641ef928c1..6bf9425590 100644 --- a/tests/reference/ast_new-while1-a4c6382.json +++ b/tests/reference/ast_new-while1-a4c6382.json @@ -2,11 +2,11 @@ "basename": "ast_new-while1-a4c6382", "cmd": "lpython --show-ast --new-parser --no-color {infile} -o {outfile}", "infile": "tests/parser/while1.py", - "infile_hash": "ca6e1d6f8809936e2738bd4d409e5a8e2ada7517ca212f4bcf84f01f", + "infile_hash": "d013884f95378177c308b9e8cc762e1f1a57ff5b49ea7aae5461901e", "outfile": null, "outfile_hash": null, "stdout": "ast_new-while1-a4c6382.stdout", - "stdout_hash": "8e2753c78ac1905a1030d969fb71401418730c29b92662405007a3d6", + "stdout_hash": "d6973fe3f01f3c80de2567b33920ada261ec59cacbd04dcac46af3dc", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/ast_new-while1-a4c6382.stdout b/tests/reference/ast_new-while1-a4c6382.stdout index e18d48e4e1..2b5ccc9632 100644 --- a/tests/reference/ast_new-while1-a4c6382.stdout +++ b/tests/reference/ast_new-while1-a4c6382.stdout @@ -1 +1 @@ -(Module [(ImportFrom ltypes [(i32 ())] 0) (AnnAssign (Name i Store) (Name i32 Load) (ConstantInt 10 ()) 1) (While (Compare (Name i Load) Lt [(ConstantInt 3 ())]) [(Pass)] []) (While (Compare (Name i Load) Lt [(ConstantInt 6 ())]) [(Pass)] [(Pass)]) (While (Compare (Name i Load) Lt [(ConstantInt 3 ())]) [(Pass)] []) (While (Compare (Name i Load) Lt [(ConstantInt 6 ())]) [(Pass)] [(Pass)])] []) +(Module [(ImportFrom lpython [(i32 ())] 0) (AnnAssign (Name i Store) (Name i32 Load) (ConstantInt 10 ()) 1) (While (Compare (Name i Load) Lt [(ConstantInt 3 ())]) [(Pass)] []) (While (Compare (Name i Load) Lt [(ConstantInt 6 ())]) [(Pass)] [(Pass)]) (While (Compare (Name i Load) Lt [(ConstantInt 3 ())]) [(Pass)] []) (While (Compare (Name i Load) Lt [(ConstantInt 6 ())]) [(Pass)] [(Pass)])] []) diff --git a/tests/reference/c-c_interop1-e215531.json b/tests/reference/c-c_interop1-e215531.json index ba410a23fa..1030be8c8a 100644 --- a/tests/reference/c-c_interop1-e215531.json +++ b/tests/reference/c-c_interop1-e215531.json @@ -2,7 +2,7 @@ "basename": "c-c_interop1-e215531", "cmd": "lpython --no-color --show-c {infile}", "infile": "tests/c_interop1.py", - "infile_hash": "9e22168a97e0bbf12aef953048f7e7b781460c70cebd355e903f0934", + "infile_hash": "aeb797508318740ae58a14cf663910a8fa077c574eaf79b9f54656ef", "outfile": null, "outfile_hash": null, "stdout": "c-c_interop1-e215531.stdout", diff --git a/tests/reference/c-expr7-bb2692a.json b/tests/reference/c-expr7-bb2692a.json index ea7dedcec9..07cdf832e9 100644 --- a/tests/reference/c-expr7-bb2692a.json +++ b/tests/reference/c-expr7-bb2692a.json @@ -2,7 +2,7 @@ "basename": "c-expr7-bb2692a", "cmd": "lpython --no-color --show-c {infile}", "infile": "tests/expr7.py", - "infile_hash": "7e10fd3558ed9a0c805fd1f27740f6cc539142917841585c7679779b", + "infile_hash": "7ef1383d1798621ee35adb7296bfe66dcdc08a21ac8dc86b9ce42878", "outfile": null, "outfile_hash": null, "stdout": "c-expr7-bb2692a.stdout", diff --git a/tests/reference/c-expr_01-28f449f.json b/tests/reference/c-expr_01-28f449f.json index 980dfcff7f..a6abf72a91 100644 --- a/tests/reference/c-expr_01-28f449f.json +++ b/tests/reference/c-expr_01-28f449f.json @@ -2,7 +2,7 @@ "basename": "c-expr_01-28f449f", "cmd": "lpython --no-color --show-c {infile}", "infile": "tests/../integration_tests/expr_01.py", - "infile_hash": "c391a2740682aec6070efdfb508697052e45950589fdabd9728127a4", + "infile_hash": "230a65e2cddb76f58d56747325caf24b8a1f6277810186581948c514", "outfile": null, "outfile_hash": null, "stdout": "c-expr_01-28f449f.stdout", diff --git a/tests/reference/c-expr_11-c452314.json b/tests/reference/c-expr_11-c452314.json index 4356c6467c..32a8e21bb8 100644 --- a/tests/reference/c-expr_11-c452314.json +++ b/tests/reference/c-expr_11-c452314.json @@ -2,7 +2,7 @@ "basename": "c-expr_11-c452314", "cmd": "lpython --no-color --show-c {infile}", "infile": "tests/../integration_tests/expr_11.py", - "infile_hash": "0519507fdfc01296c8161d8fae6706269bdb2d7b7da54512f5410fca", + "infile_hash": "d5027dd0f515c653c66202e02cc961bfbe09e628e069ce57b5f5ffe2", "outfile": null, "outfile_hash": null, "stdout": "c-expr_11-c452314.stdout", diff --git a/tests/reference/c-expr_12-93c7780.json b/tests/reference/c-expr_12-93c7780.json index 625367ecc9..020812ddfa 100644 --- a/tests/reference/c-expr_12-93c7780.json +++ b/tests/reference/c-expr_12-93c7780.json @@ -2,7 +2,7 @@ "basename": "c-expr_12-93c7780", "cmd": "lpython --no-color --show-c {infile}", "infile": "tests/../integration_tests/expr_12.py", - "infile_hash": "0d98c6e93b5c0765f6829f51bf12d6487b9fa0d1381e07e11bddbea7", + "infile_hash": "00534ea8d2143408735ea96d7a26888e53563758c1b14569daf0f962", "outfile": null, "outfile_hash": null, "stdout": "c-expr_12-93c7780.stdout", diff --git a/tests/reference/c-func_static_01-fc146ec.json b/tests/reference/c-func_static_01-fc146ec.json index 1f4b4295cd..07259f8ac4 100644 --- a/tests/reference/c-func_static_01-fc146ec.json +++ b/tests/reference/c-func_static_01-fc146ec.json @@ -2,7 +2,7 @@ "basename": "c-func_static_01-fc146ec", "cmd": "lpython --no-color --show-c {infile}", "infile": "tests/../integration_tests/func_static_01.py", - "infile_hash": "33b4434e54b59722232bb2712288cda05ba70bffa9f8161ce8a2c4f4", + "infile_hash": "073b018c3b06cdbf34c603363c53e12bf471a80c457aecc676316c29", "outfile": null, "outfile_hash": null, "stdout": "c-func_static_01-fc146ec.stdout", diff --git a/tests/reference/c-loop1-3e341c7.json b/tests/reference/c-loop1-3e341c7.json index 332b6b671e..3120857149 100644 --- a/tests/reference/c-loop1-3e341c7.json +++ b/tests/reference/c-loop1-3e341c7.json @@ -2,7 +2,7 @@ "basename": "c-loop1-3e341c7", "cmd": "lpython --no-color --show-c {infile}", "infile": "tests/loop1.py", - "infile_hash": "0eee568be1d20a4c31b59c33ae2b47509fce3f6047fa1ffa592947e9", + "infile_hash": "324b018f29f7dffbd326e77b7ff9b6a9286837d573ed28f9d86e0311", "outfile": null, "outfile_hash": null, "stdout": "c-loop1-3e341c7.stdout", diff --git a/tests/reference/c-test_issue_518-fbbd299.json b/tests/reference/c-test_issue_518-fbbd299.json index f97c94821a..58d0a1e5b8 100644 --- a/tests/reference/c-test_issue_518-fbbd299.json +++ b/tests/reference/c-test_issue_518-fbbd299.json @@ -2,7 +2,7 @@ "basename": "c-test_issue_518-fbbd299", "cmd": "lpython --no-color --show-c {infile}", "infile": "tests/../integration_tests/test_issue_518.py", - "infile_hash": "a1e1222536e4b64cb96e0e8087120fe0ab4c18b09f32ef9b05719aaa", + "infile_hash": "9cf223e018e0affc76044dff23cb75157fbdca458be3ae68871da8db", "outfile": null, "outfile_hash": null, "stdout": "c-test_issue_518-fbbd299.stdout", diff --git a/tests/reference/cpp-doconcurrentloop_01-4e9f274.json b/tests/reference/cpp-doconcurrentloop_01-4e9f274.json index 1ad9dfd0cd..54fae042ca 100644 --- a/tests/reference/cpp-doconcurrentloop_01-4e9f274.json +++ b/tests/reference/cpp-doconcurrentloop_01-4e9f274.json @@ -2,7 +2,7 @@ "basename": "cpp-doconcurrentloop_01-4e9f274", "cmd": "lpython --no-color --show-cpp {infile}", "infile": "tests/doconcurrentloop_01.py", - "infile_hash": "dc0022671a9fa7b620378903a700dd8c4390297cacb1aca2b904069d", + "infile_hash": "2fe3769863a595a01e46a88bf55c944e61a0d141d5c75816ffa74d96", "outfile": null, "outfile_hash": null, "stdout": "cpp-doconcurrentloop_01-4e9f274.stdout", diff --git a/tests/reference/cpp-expr15-1661c0d.json b/tests/reference/cpp-expr15-1661c0d.json index 17a652d153..dd7cd419b8 100644 --- a/tests/reference/cpp-expr15-1661c0d.json +++ b/tests/reference/cpp-expr15-1661c0d.json @@ -2,7 +2,7 @@ "basename": "cpp-expr15-1661c0d", "cmd": "lpython --no-color --show-cpp {infile}", "infile": "tests/expr15.py", - "infile_hash": "309febe805e4092e33e7b75adb0efdd10fbfc310a50a88718eb7cef7", + "infile_hash": "f3fa7c8efa999392edc0a94ff9c7820ed0c3f1e849c77655151b8d72", "outfile": null, "outfile_hash": null, "stdout": "cpp-expr15-1661c0d.stdout", diff --git a/tests/reference/cpp-expr7-529bd53.json b/tests/reference/cpp-expr7-529bd53.json index 32a8efeb9c..d8160eeb31 100644 --- a/tests/reference/cpp-expr7-529bd53.json +++ b/tests/reference/cpp-expr7-529bd53.json @@ -2,7 +2,7 @@ "basename": "cpp-expr7-529bd53", "cmd": "lpython --no-color --show-cpp {infile}", "infile": "tests/expr7.py", - "infile_hash": "7e10fd3558ed9a0c805fd1f27740f6cc539142917841585c7679779b", + "infile_hash": "7ef1383d1798621ee35adb7296bfe66dcdc08a21ac8dc86b9ce42878", "outfile": null, "outfile_hash": null, "stdout": "cpp-expr7-529bd53.stdout", diff --git a/tests/reference/cpp-expr8-704cece.json b/tests/reference/cpp-expr8-704cece.json index caaf828495..ca9b68ff9d 100644 --- a/tests/reference/cpp-expr8-704cece.json +++ b/tests/reference/cpp-expr8-704cece.json @@ -2,7 +2,7 @@ "basename": "cpp-expr8-704cece", "cmd": "lpython --no-color --show-cpp {infile}", "infile": "tests/expr8.py", - "infile_hash": "4e9a7a5642d721ee6a41db2c3d587c1811c5baad582bddc67cc68842", + "infile_hash": "6966e19cf343700cbc11ec1bf6a495e43c685c6fa065669875aa61ce", "outfile": null, "outfile_hash": null, "stdout": "cpp-expr8-704cece.stdout", diff --git a/tests/reference/cpp-expr_11-422c839.json b/tests/reference/cpp-expr_11-422c839.json index e8fbf6a2c3..14c97d1fe3 100644 --- a/tests/reference/cpp-expr_11-422c839.json +++ b/tests/reference/cpp-expr_11-422c839.json @@ -2,7 +2,7 @@ "basename": "cpp-expr_11-422c839", "cmd": "lpython --no-color --show-cpp {infile}", "infile": "tests/../integration_tests/expr_11.py", - "infile_hash": "0519507fdfc01296c8161d8fae6706269bdb2d7b7da54512f5410fca", + "infile_hash": "d5027dd0f515c653c66202e02cc961bfbe09e628e069ce57b5f5ffe2", "outfile": null, "outfile_hash": null, "stdout": "cpp-expr_11-422c839.stdout", diff --git a/tests/reference/cpp-loop1-0a8cf3b.json b/tests/reference/cpp-loop1-0a8cf3b.json index 2f7ccdbb19..2b5f8a2bfb 100644 --- a/tests/reference/cpp-loop1-0a8cf3b.json +++ b/tests/reference/cpp-loop1-0a8cf3b.json @@ -2,7 +2,7 @@ "basename": "cpp-loop1-0a8cf3b", "cmd": "lpython --no-color --show-cpp {infile}", "infile": "tests/loop1.py", - "infile_hash": "0eee568be1d20a4c31b59c33ae2b47509fce3f6047fa1ffa592947e9", + "infile_hash": "324b018f29f7dffbd326e77b7ff9b6a9286837d573ed28f9d86e0311", "outfile": null, "outfile_hash": null, "stdout": "cpp-loop1-0a8cf3b.stdout", diff --git a/tests/reference/cpp-test_builtin_pow-56b3f92.json b/tests/reference/cpp-test_builtin_pow-56b3f92.json index 99f881bedb..d0cc1a7986 100644 --- a/tests/reference/cpp-test_builtin_pow-56b3f92.json +++ b/tests/reference/cpp-test_builtin_pow-56b3f92.json @@ -2,11 +2,11 @@ "basename": "cpp-test_builtin_pow-56b3f92", "cmd": "lpython --no-color --show-cpp {infile}", "infile": "tests/../integration_tests/test_builtin_pow.py", - "infile_hash": "73b7a50686598a8df8a84a6f36e637516e6f140b1d2adbc72f1c4cfe", + "infile_hash": "b7d1d5e1592f5078961eb228c756e424d394f5f0383a1577f1cced1b", "outfile": null, "outfile_hash": null, "stdout": "cpp-test_builtin_pow-56b3f92.stdout", - "stdout_hash": "eecc3e68333406a0a93811459eab22bedcaac402b06c04e54925ee66", + "stdout_hash": "4bbf8f398f8066ced3f4fbfb4bf8cbed62743c6f07a12bb96455131b", "stderr": "cpp-test_builtin_pow-56b3f92.stderr", "stderr_hash": "859ce76c74748f2d32c7eab92cfbba789a78d4cbf5818646b99806ea", "returncode": 0 diff --git a/tests/reference/cpp-test_builtin_pow-56b3f92.stdout b/tests/reference/cpp-test_builtin_pow-56b3f92.stdout index bf0ddcefd0..802a100170 100644 --- a/tests/reference/cpp-test_builtin_pow-56b3f92.stdout +++ b/tests/reference/cpp-test_builtin_pow-56b3f92.stdout @@ -25,16 +25,16 @@ struct dimension_descriptor // Forward declarations void _lpython_main_program(); void test_pow(); -int32_t __lpython_overloaded_0___mod(int32_t a, int32_t b); double __lpython_overloaded_0__abs(double x); double __lpython_overloaded_0__pow(int32_t x, int32_t y); int32_t __lpython_overloaded_10__pow(int32_t x, int32_t y, int32_t z); int64_t __lpython_overloaded_11__pow(int64_t x, int64_t y, int64_t z); double __lpython_overloaded_1__pow(int64_t x, int64_t y); -int64_t __lpython_overloaded_2___mod(int64_t a, int64_t b); +int32_t __lpython_overloaded_2___mod(int32_t a, int32_t b); float __lpython_overloaded_2__pow(float x, float y); double __lpython_overloaded_3__pow(double x, double y); int32_t __lpython_overloaded_4___lpython_floordiv(int32_t a, int32_t b); +int64_t __lpython_overloaded_4___mod(int64_t a, int64_t b); float __lpython_overloaded_4__pow(int32_t x, float y); int64_t __lpython_overloaded_5___lpython_floordiv(int64_t a, int64_t b); float __lpython_overloaded_5__pow(float x, int32_t y); @@ -49,6 +49,26 @@ namespace { } // Implementations +double __lpython_overloaded_0__abs(double x) +{ + double _lpython_return_variable; + double result; + if (x >= 0.00000000000000000e+00) { + result = x; + } else { + result = -x; + } + _lpython_return_variable = result; + return _lpython_return_variable; +} + +double __lpython_overloaded_0__pow(int32_t x, int32_t y) +{ + double _lpython_return_variable; + _lpython_return_variable = (double)(std::pow(x, y)); + return _lpython_return_variable; +} + int32_t __lpython_overloaded_4___lpython_floordiv(int32_t a, int32_t b) { int32_t _lpython_return_variable; @@ -64,33 +84,13 @@ int32_t __lpython_overloaded_4___lpython_floordiv(int32_t a, int32_t b) return _lpython_return_variable; } -int32_t __lpython_overloaded_0___mod(int32_t a, int32_t b) +int32_t __lpython_overloaded_2___mod(int32_t a, int32_t b) { int32_t _lpython_return_variable; _lpython_return_variable = a - __lpython_overloaded_4___lpython_floordiv(a, b)*b; return _lpython_return_variable; } -double __lpython_overloaded_0__abs(double x) -{ - double _lpython_return_variable; - double result; - if (x >= 0.00000000000000000e+00) { - result = x; - } else { - result = -x; - } - _lpython_return_variable = result; - return _lpython_return_variable; -} - -double __lpython_overloaded_0__pow(int32_t x, int32_t y) -{ - double _lpython_return_variable; - _lpython_return_variable = (double)(std::pow(x, y)); - return _lpython_return_variable; -} - int32_t __lpython_overloaded_10__pow(int32_t x, int32_t y, int32_t z) { int32_t _lpython_return_variable; @@ -99,7 +99,7 @@ int32_t __lpython_overloaded_10__pow(int32_t x, int32_t y, int32_t z) std::cerr << "ERROR STOP" << std::endl; exit(1); } - result = __lpython_overloaded_0___mod(std::pow(x, y), z); + result = __lpython_overloaded_2___mod(std::pow(x, y), z); _lpython_return_variable = result; return _lpython_return_variable; } @@ -119,7 +119,7 @@ int64_t __lpython_overloaded_5___lpython_floordiv(int64_t a, int64_t b) return _lpython_return_variable; } -int64_t __lpython_overloaded_2___mod(int64_t a, int64_t b) +int64_t __lpython_overloaded_4___mod(int64_t a, int64_t b) { int64_t _lpython_return_variable; _lpython_return_variable = a - __lpython_overloaded_5___lpython_floordiv(a, b)*b; @@ -134,7 +134,7 @@ int64_t __lpython_overloaded_11__pow(int64_t x, int64_t y, int64_t z) std::cerr << "ERROR STOP" << std::endl; exit(1); } - result = __lpython_overloaded_2___mod(std::pow(x, y), z); + result = __lpython_overloaded_4___mod(std::pow(x, y), z); _lpython_return_variable = result; return _lpython_return_variable; } diff --git a/tests/reference/cpp-test_integer_bitnot-20195fd.json b/tests/reference/cpp-test_integer_bitnot-20195fd.json index 329042cfd1..f7e5ac26d2 100644 --- a/tests/reference/cpp-test_integer_bitnot-20195fd.json +++ b/tests/reference/cpp-test_integer_bitnot-20195fd.json @@ -2,7 +2,7 @@ "basename": "cpp-test_integer_bitnot-20195fd", "cmd": "lpython --no-color --show-cpp {infile}", "infile": "tests/../integration_tests/test_integer_bitnot.py", - "infile_hash": "dc976a358fbeebedead889f8e85b3eed4ac77ee20f68fcac58b81429", + "infile_hash": "ce63509c56eb6c68ca6d64cc2a195644f3d2fc285f3ec8865551eff5", "outfile": null, "outfile_hash": null, "stdout": "cpp-test_integer_bitnot-20195fd.stdout", diff --git a/tests/reference/llvm-bindc_01-c984f09.json b/tests/reference/llvm-bindc_01-c984f09.json index 628862e1c0..9746b5047d 100644 --- a/tests/reference/llvm-bindc_01-c984f09.json +++ b/tests/reference/llvm-bindc_01-c984f09.json @@ -2,7 +2,7 @@ "basename": "llvm-bindc_01-c984f09", "cmd": "lpython --no-color --show-llvm {infile} -o {outfile}", "infile": "tests/../integration_tests/bindc_01.py", - "infile_hash": "3402ae1e5ed454e63ac3105da5d7264c880b666ac0ae672bf6b2dcfe", + "infile_hash": "f628ce81b32f2730f936232bb235f39d4372912bc332f3c97e983ad7", "outfile": null, "outfile_hash": null, "stdout": "llvm-bindc_01-c984f09.stdout", diff --git a/tests/reference/llvm-func_inline_01-2d4583a.json b/tests/reference/llvm-func_inline_01-2d4583a.json index 243839c228..09ed72fa67 100644 --- a/tests/reference/llvm-func_inline_01-2d4583a.json +++ b/tests/reference/llvm-func_inline_01-2d4583a.json @@ -2,7 +2,7 @@ "basename": "llvm-func_inline_01-2d4583a", "cmd": "lpython --no-color --show-llvm {infile} -o {outfile}", "infile": "tests/../integration_tests/func_inline_01.py", - "infile_hash": "e9d50789dd554b57842e52e0818c0803943173620119bfb6f3787f83", + "infile_hash": "65a2e9a9bc7ad68a5e104549eed00cafd02b643a1d91ab2e175b2198", "outfile": null, "outfile_hash": null, "stdout": "llvm-func_inline_01-2d4583a.stdout", diff --git a/tests/reference/llvm-ltypes1-dacf939.json b/tests/reference/llvm-lpython1-23c5987.json similarity index 56% rename from tests/reference/llvm-ltypes1-dacf939.json rename to tests/reference/llvm-lpython1-23c5987.json index 9039974332..e0f02139c9 100644 --- a/tests/reference/llvm-ltypes1-dacf939.json +++ b/tests/reference/llvm-lpython1-23c5987.json @@ -1,11 +1,11 @@ { - "basename": "llvm-ltypes1-dacf939", + "basename": "llvm-lpython1-23c5987", "cmd": "lpython --no-color --show-llvm {infile} -o {outfile}", - "infile": "tests/ltypes1.py", - "infile_hash": "b7a01bc04b8f62742e57da116fe5c16f2404ac86a03fb7064354078f", + "infile": "tests/lpython1.py", + "infile_hash": "195a467b66705e0f2638aee8c8a6e9145112b2964e05896c328e0d86", "outfile": null, "outfile_hash": null, - "stdout": "llvm-ltypes1-dacf939.stdout", + "stdout": "llvm-lpython1-23c5987.stdout", "stdout_hash": "e159629de1a0c099150b091e961cc50a9388c3096ef63bc0d3aa12a1", "stderr": null, "stderr_hash": null, diff --git a/tests/reference/llvm-ltypes1-dacf939.stdout b/tests/reference/llvm-lpython1-23c5987.stdout similarity index 100% rename from tests/reference/llvm-ltypes1-dacf939.stdout rename to tests/reference/llvm-lpython1-23c5987.stdout diff --git a/tests/reference/llvm-print_04-443a8d8.json b/tests/reference/llvm-print_04-443a8d8.json index ebe61b4517..9d5ca50ca1 100644 --- a/tests/reference/llvm-print_04-443a8d8.json +++ b/tests/reference/llvm-print_04-443a8d8.json @@ -2,7 +2,7 @@ "basename": "llvm-print_04-443a8d8", "cmd": "lpython --no-color --show-llvm {infile} -o {outfile}", "infile": "tests/../integration_tests/print_04.py", - "infile_hash": "d9eb6feb9aaa52c5cac94b3edd6c62f2611eda2c5ad191e44b42f480", + "infile_hash": "88affcdc1013b979debbf8b47a481909670b62c91fc5963af42c2495", "outfile": null, "outfile_hash": null, "stdout": "llvm-print_04-443a8d8.stdout", diff --git a/tests/reference/llvm-test_integer_bitnot-6894b6d.json b/tests/reference/llvm-test_integer_bitnot-6894b6d.json index cb60c87c89..b85a0d04b2 100644 --- a/tests/reference/llvm-test_integer_bitnot-6894b6d.json +++ b/tests/reference/llvm-test_integer_bitnot-6894b6d.json @@ -2,7 +2,7 @@ "basename": "llvm-test_integer_bitnot-6894b6d", "cmd": "lpython --no-color --show-llvm {infile} -o {outfile}", "infile": "tests/../integration_tests/test_integer_bitnot.py", - "infile_hash": "dc976a358fbeebedead889f8e85b3eed4ac77ee20f68fcac58b81429", + "infile_hash": "ce63509c56eb6c68ca6d64cc2a195644f3d2fc285f3ec8865551eff5", "outfile": null, "outfile_hash": null, "stdout": "llvm-test_integer_bitnot-6894b6d.stdout", diff --git a/tests/reference/llvm-test_issue_518-cdb641a.json b/tests/reference/llvm-test_issue_518-cdb641a.json index bde07455f7..127e89fa41 100644 --- a/tests/reference/llvm-test_issue_518-cdb641a.json +++ b/tests/reference/llvm-test_issue_518-cdb641a.json @@ -2,7 +2,7 @@ "basename": "llvm-test_issue_518-cdb641a", "cmd": "lpython --no-color --show-llvm {infile} -o {outfile}", "infile": "tests/../integration_tests/test_issue_518.py", - "infile_hash": "a1e1222536e4b64cb96e0e8087120fe0ab4c18b09f32ef9b05719aaa", + "infile_hash": "9cf223e018e0affc76044dff23cb75157fbdca458be3ae68871da8db", "outfile": null, "outfile_hash": null, "stdout": "llvm-test_issue_518-cdb641a.stdout", diff --git a/tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.json b/tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.json index d259312e08..c1d911fae7 100644 --- a/tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.json +++ b/tests/reference/pass_inline_function_calls-func_inline_01-8b6a5da.json @@ -2,7 +2,7 @@ "basename": "pass_inline_function_calls-func_inline_01-8b6a5da", "cmd": "lpython --pass=inline_function_calls --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/func_inline_01.py", - "infile_hash": "e9d50789dd554b57842e52e0818c0803943173620119bfb6f3787f83", + "infile_hash": "65a2e9a9bc7ad68a5e104549eed00cafd02b643a1d91ab2e175b2198", "outfile": null, "outfile_hash": null, "stdout": "pass_inline_function_calls-func_inline_01-8b6a5da.stdout", diff --git a/tests/reference/pass_loop_vectorise-vec_01-be9985e.json b/tests/reference/pass_loop_vectorise-vec_01-be9985e.json index d330010483..4f1c84297b 100644 --- a/tests/reference/pass_loop_vectorise-vec_01-be9985e.json +++ b/tests/reference/pass_loop_vectorise-vec_01-be9985e.json @@ -2,11 +2,11 @@ "basename": "pass_loop_vectorise-vec_01-be9985e", "cmd": "lpython --pass=loop_vectorise --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/vec_01.py", - "infile_hash": "eb012561316a4c1f1359bf7b5a0b9aee40944ece197a5bafd387a19f", + "infile_hash": "ac6691a88207cbc7445095ecc898e9cce9efd9f9e874c473aec70e16", "outfile": null, "outfile_hash": null, "stdout": "pass_loop_vectorise-vec_01-be9985e.stdout", - "stdout_hash": "9712ecc73a4d82c178b9c3e5ce7cc1b20ff21fac0097593e3f77f93e", + "stdout_hash": "bc18e9f41ba307b368c1809aa38dba7dd3d0e810f1bd2e1929a62055", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/pass_loop_vectorise-vec_01-be9985e.stdout b/tests/reference/pass_loop_vectorise-vec_01-be9985e.stdout index 7adc7476b9..a568cbb51c 100644 --- a/tests/reference/pass_loop_vectorise-vec_01-be9985e.stdout +++ b/tests/reference/pass_loop_vectorise-vec_01-be9985e.stdout @@ -1 +1 @@ -(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 186 {_lpython_main_program: (Function (SymbolTable 185 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [loop_vec] [] [(SubroutineCall 186 loop_vec () [] ())] () Public .false. .false.), loop_vec: (Function (SymbolTable 180 {a: (Variable 180 a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), b: (Variable 180 b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 180 i [] Local () () Default (Integer 4 []) Source Public Required .false.), vector_copy_f64f64i32@IntrinsicOptimization: (Function (SymbolTable 187 {__1_k: (Variable 187 __1_k [] Local () () Default (Integer 4 []) Source Public Required .false.), arg0: (Variable 187 arg0 [] In () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), arg1: (Variable 187 arg1 [] In () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), arg2: (Variable 187 arg2 [] In () () Default (Integer 4 []) Source Public Required .false.), arg3: (Variable 187 arg3 [] In () () Default (Integer 4 []) Source Public Required .false.), arg4: (Variable 187 arg4 [] In () () Default (Integer 4 []) Source Public Required .false.), arg5: (Variable 187 arg5 [] In () () Default (Integer 4 []) Source Public Required .false.)}) vector_copy_f64f64i32@IntrinsicOptimization (FunctionType [(Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) (Integer 4 []) (Integer 4 []) (Integer 4 []) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 187 arg0) (Var 187 arg1) (Var 187 arg2) (Var 187 arg3) (Var 187 arg4) (Var 187 arg5)] [(= (Var 187 __1_k) (IntegerBinOp (Var 187 arg2) Sub (Var 187 arg4) (Integer 4 []) ()) ()) (WhileLoop (IntegerCompare (IntegerBinOp (Var 187 __1_k) Add (Var 187 arg4) (Integer 4 []) ()) Lt (Var 187 arg3) (Logical 4 []) ()) [(= (Var 187 __1_k) (IntegerBinOp (Var 187 __1_k) Add (Var 187 arg4) (Integer 4 []) ()) ()) (= (ArrayItem (Var 187 arg0) [(() (Var 187 __1_k) ())] (Real 8 []) RowMajor ()) (ArrayItem (Var 187 arg1) [(() (Var 187 __1_k) ())] (Real 8 []) RowMajor ()) ())])] () Public .false. .false.)}) loop_vec (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [vector_copy_f64f64i32@IntrinsicOptimization] [] [(DoLoop ((Var 180 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 9216 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9215 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 180 b) [(() (Var 180 i) ())] (Real 8 []) RowMajor ()) (RealConstant 5.000000 (Real 8 [])) ())]) (DoLoop ((Var 180 i) (IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1151 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) [(SubroutineCall 180 vector_copy_f64f64i32@IntrinsicOptimization () [((Var 180 a)) ((Var 180 b)) ((IntegerBinOp (Var 180 i) Mul (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) ())) ((IntegerBinOp (IntegerBinOp (Var 180 i) Add (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) Mul (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) ())) ((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 8 (Integer 4 [])))] ())]) (DoLoop ((Var 180 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 9216 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9215 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(Assert (RealCompare (ArrayItem (Var 180 a) [(() (Var 180 i) ())] (Real 8 []) RowMajor ()) Eq (RealConstant 5.000000 (Real 8 [])) (Logical 4 []) ()) ())])] () Public .false. .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 184 {_lpython_main_program: (ExternalSymbol 184 _lpython_main_program 186 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 184 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_2___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_0___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_0___mod 79 __lpython_overloaded_0___mod lpython_builtin [] __lpython_overloaded_0___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_0___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_0___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) +(TranslationUnit (SymbolTable 1 {_global_symbols: (Module (SymbolTable 187 {_lpython_main_program: (Function (SymbolTable 186 {}) _lpython_main_program (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [loop_vec] [] [(SubroutineCall 187 loop_vec () [] ())] () Public .false. .false.), loop_vec: (Function (SymbolTable 181 {a: (Variable 181 a [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), b: (Variable 181 b [] Local () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), i: (Variable 181 i [] Local () () Default (Integer 4 []) Source Public Required .false.), vector_copy_f64f64i32@IntrinsicOptimization: (Function (SymbolTable 188 {__1_k: (Variable 188 __1_k [] Local () () Default (Integer 4 []) Source Public Required .false.), arg0: (Variable 188 arg0 [] In () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), arg1: (Variable 188 arg1 [] In () () Default (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) Source Public Required .false.), arg2: (Variable 188 arg2 [] In () () Default (Integer 4 []) Source Public Required .false.), arg3: (Variable 188 arg3 [] In () () Default (Integer 4 []) Source Public Required .false.), arg4: (Variable 188 arg4 [] In () () Default (Integer 4 []) Source Public Required .false.), arg5: (Variable 188 arg5 [] In () () Default (Integer 4 []) Source Public Required .false.)}) vector_copy_f64f64i32@IntrinsicOptimization (FunctionType [(Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) (Real 8 [((IntegerConstant 0 (Integer 4 [])) (IntegerConstant 9216 (Integer 4 [])))]) (Integer 4 []) (Integer 4 []) (Integer 4 []) (Integer 4 [])] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 188 arg0) (Var 188 arg1) (Var 188 arg2) (Var 188 arg3) (Var 188 arg4) (Var 188 arg5)] [(= (Var 188 __1_k) (IntegerBinOp (Var 188 arg2) Sub (Var 188 arg4) (Integer 4 []) ()) ()) (WhileLoop (IntegerCompare (IntegerBinOp (Var 188 __1_k) Add (Var 188 arg4) (Integer 4 []) ()) Lt (Var 188 arg3) (Logical 4 []) ()) [(= (Var 188 __1_k) (IntegerBinOp (Var 188 __1_k) Add (Var 188 arg4) (Integer 4 []) ()) ()) (= (ArrayItem (Var 188 arg0) [(() (Var 188 __1_k) ())] (Real 8 []) RowMajor ()) (ArrayItem (Var 188 arg1) [(() (Var 188 __1_k) ())] (Real 8 []) RowMajor ()) ())])] () Public .false. .false.)}) loop_vec (FunctionType [] () Source Implementation () .false. .false. .false. .false. .false. [] [] .false.) [vector_copy_f64f64i32@IntrinsicOptimization] [] [(DoLoop ((Var 181 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 9216 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9215 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(= (ArrayItem (Var 181 b) [(() (Var 181 i) ())] (Real 8 []) RowMajor ()) (RealConstant 5.000000 (Real 8 [])) ())]) (DoLoop ((Var 181 i) (IntegerConstant 0 (Integer 4 [])) (IntegerConstant 1151 (Integer 4 [])) (IntegerConstant 1 (Integer 4 []))) [(SubroutineCall 181 vector_copy_f64f64i32@IntrinsicOptimization () [((Var 181 a)) ((Var 181 b)) ((IntegerBinOp (Var 181 i) Mul (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) ())) ((IntegerBinOp (IntegerBinOp (Var 181 i) Add (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) ()) Mul (IntegerConstant 8 (Integer 4 [])) (Integer 4 []) ())) ((IntegerConstant 1 (Integer 4 []))) ((IntegerConstant 8 (Integer 4 [])))] ())]) (DoLoop ((Var 181 i) (IntegerConstant 0 (Integer 4 [])) (IntegerBinOp (IntegerConstant 9216 (Integer 4 [])) Sub (IntegerConstant 1 (Integer 4 [])) (Integer 4 []) (IntegerConstant 9215 (Integer 4 []))) (IntegerConstant 1 (Integer 4 []))) [(Assert (RealCompare (ArrayItem (Var 181 a) [(() (Var 181 i) ())] (Real 8 []) RowMajor ()) Eq (RealConstant 5.000000 (Real 8 [])) (Logical 4 []) ()) ())])] () Public .false. .false.)}) _global_symbols [] .false. .false.), lpython_builtin: (IntrinsicModule lpython_builtin), main_program: (Program (SymbolTable 185 {_lpython_main_program: (ExternalSymbol 185 _lpython_main_program 187 _lpython_main_program _global_symbols [] _lpython_main_program Public)}) main_program [_global_symbols] [(SubroutineCall 185 _lpython_main_program () [] ())]), numpy: (Module (SymbolTable 3 {__lpython_overloaded_0__arccos: (Function (SymbolTable 41 {_lpython_return_variable: (Variable 41 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 41 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacos] [(Var 41 x)] [(= (Var 41 _lpython_return_variable) (FunctionCall 3 _lfortran_dacos () [((Var 41 x))] (Real 8 []) () ()) ()) (Return)] (Var 41 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arccosh: (Function (SymbolTable 65 {_lpython_return_variable: (Variable 65 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 65 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arccosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dacosh] [(Var 65 x)] [(= (Var 65 _lpython_return_variable) (FunctionCall 3 _lfortran_dacosh () [((Var 65 x))] (Real 8 []) () ()) ()) (Return)] (Var 65 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsin: (Function (SymbolTable 37 {_lpython_return_variable: (Variable 37 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 37 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasin] [(Var 37 x)] [(= (Var 37 _lpython_return_variable) (FunctionCall 3 _lfortran_dasin () [((Var 37 x))] (Real 8 []) () ()) ()) (Return)] (Var 37 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arcsinh: (Function (SymbolTable 61 {_lpython_return_variable: (Variable 61 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 61 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arcsinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dasinh] [(Var 61 x)] [(= (Var 61 _lpython_return_variable) (FunctionCall 3 _lfortran_dasinh () [((Var 61 x))] (Real 8 []) () ()) ()) (Return)] (Var 61 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctan: (Function (SymbolTable 53 {_lpython_return_variable: (Variable 53 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 53 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datan] [(Var 53 x)] [(= (Var 53 _lpython_return_variable) (FunctionCall 3 _lfortran_datan () [((Var 53 x))] (Real 8 []) () ()) ()) (Return)] (Var 53 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__arctanh: (Function (SymbolTable 69 {_lpython_return_variable: (Variable 69 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 69 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__arctanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_datanh] [(Var 69 x)] [(= (Var 69 _lpython_return_variable) (FunctionCall 3 _lfortran_datanh () [((Var 69 x))] (Real 8 []) () ()) ()) (Return)] (Var 69 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__ceil: (Function (SymbolTable 76 {_lpython_return_variable: (Variable 76 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 76 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 76 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__ceil (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 76 x)] [(= (Var 76 result) (Cast (Var 76 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 76 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 76 x) Eq (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 76 _lpython_return_variable) (Cast (Var 76 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 76 _lpython_return_variable) (Cast (IntegerBinOp (Var 76 result) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 76 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cos: (Function (SymbolTable 9 {_lpython_return_variable: (Variable 9 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 9 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cos (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcos] [(Var 9 x)] [(= (Var 9 _lpython_return_variable) (FunctionCall 3 _lfortran_dcos () [((Var 9 x))] (Real 8 []) () ()) ()) (Return)] (Var 9 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__cosh: (Function (SymbolTable 23 {_lpython_return_variable: (Variable 23 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 23 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__cosh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dcosh] [(Var 23 x)] [(= (Var 23 _lpython_return_variable) (FunctionCall 3 _lfortran_dcosh () [((Var 23 x))] (Real 8 []) () ()) ()) (Return)] (Var 23 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__degrees: (Function (SymbolTable 56 {_lpython_return_variable: (Variable 56 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 56 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__degrees (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 56 x)] [(= (Var 56 _lpython_return_variable) (RealBinOp (RealBinOp (Var 56 x) Mul (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) Div (Var 3 pi_64) (Real 8 []) ()) ()) (Return)] (Var 56 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__exp: (Function (SymbolTable 49 {_lpython_return_variable: (Variable 49 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 49 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__exp (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dexp] [(Var 49 x)] [(= (Var 49 _lpython_return_variable) (FunctionCall 3 _lfortran_dexp () [((Var 49 x))] (Real 8 []) () ()) ()) (Return)] (Var 49 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__floor: (Function (SymbolTable 74 {_lpython_return_variable: (Variable 74 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), result: (Variable 74 result [] Local () () Default (Integer 8 []) Source Public Required .false.), x: (Variable 74 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__floor (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 74 x)] [(= (Var 74 result) (Cast (Var 74 x) RealToInteger (Integer 8 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 74 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 74 x) Eq (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 74 _lpython_return_variable) (Cast (Var 74 result) IntegerToReal (Real 8 []) ()) ()) (Return)] []) (= (Var 74 _lpython_return_variable) (Cast (IntegerBinOp (Var 74 result) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 1 (Integer 8 []))) (Integer 8 []) ()) IntegerToReal (Real 8 []) ()) ()) (Return)] (Var 74 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log: (Function (SymbolTable 27 {_lpython_return_variable: (Variable 27 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 27 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog] [(Var 27 x)] [(= (Var 27 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog () [((Var 27 x))] (Real 8 []) () ()) ()) (Return)] (Var 27 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log10: (Function (SymbolTable 31 {_lpython_return_variable: (Variable 31 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 31 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log10 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog10] [(Var 31 x)] [(= (Var 31 _lpython_return_variable) (FunctionCall 3 _lfortran_dlog10 () [((Var 31 x))] (Real 8 []) () ()) ()) (Return)] (Var 31 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__log2: (Function (SymbolTable 34 {_lpython_return_variable: (Variable 34 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 34 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__log2 (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dlog _lfortran_dlog] [(Var 34 x)] [(= (Var 34 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_dlog () [((Var 34 x))] (Real 8 []) () ()) Div (FunctionCall 3 _lfortran_dlog () [((RealConstant 2.000000 (Real 8 [])))] (Real 8 []) () ()) (Real 8 []) ()) ()) (Return)] (Var 34 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__mod: (Function (SymbolTable 72 {_lpython_return_variable: (Variable 72 _lpython_return_variable [] ReturnVar () () Default (Integer 8 []) Source Public Required .false.), _mod: (ExternalSymbol 72 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_4___mod: (ExternalSymbol 72 _mod@__lpython_overloaded_4___mod 79 __lpython_overloaded_4___mod lpython_builtin [] __lpython_overloaded_4___mod Public), x1: (Variable 72 x1 [] In () () Default (Integer 8 []) Source Public Required .false.), x2: (Variable 72 x2 [] In () () Default (Integer 8 []) Source Public Required .false.)}) __lpython_overloaded_0__mod (FunctionType [(Integer 8 []) (Integer 8 [])] (Integer 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_4___mod] [(Var 72 x1) (Var 72 x2)] [(If (IntegerCompare (Var 72 x2) Eq (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) (IntegerConstant 0 (Integer 8 []))) (Logical 4 []) ()) [(= (Var 72 _lpython_return_variable) (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToInteger (Integer 8 []) ()) ()) (Return)] []) (= (Var 72 _lpython_return_variable) (FunctionCall 72 _mod@__lpython_overloaded_4___mod 72 _mod [((Var 72 x1)) ((Var 72 x2))] (Integer 8 []) () ()) ()) (Return)] (Var 72 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__radians: (Function (SymbolTable 58 {_lpython_return_variable: (Variable 58 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 58 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__radians (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 58 x)] [(= (Var 58 _lpython_return_variable) (RealBinOp (RealBinOp (Var 58 x) Mul (Var 3 pi_64) (Real 8 []) ()) Div (RealConstant 180.000000 (Real 8 [])) (Real 8 []) ()) ()) (Return)] (Var 58 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sin: (Function (SymbolTable 5 {_lpython_return_variable: (Variable 5 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 5 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sin (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsin] [(Var 5 x)] [(= (Var 5 _lpython_return_variable) (FunctionCall 3 _lfortran_dsin () [((Var 5 x))] (Real 8 []) () ()) ()) (Return)] (Var 5 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sinh: (Function (SymbolTable 19 {_lpython_return_variable: (Variable 19 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 19 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sinh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dsinh] [(Var 19 x)] [(= (Var 19 _lpython_return_variable) (FunctionCall 3 _lfortran_dsinh () [((Var 19 x))] (Real 8 []) () ()) ()) (Return)] (Var 19 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__sqrt: (Function (SymbolTable 12 {_lpython_return_variable: (Variable 12 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 12 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__sqrt (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 12 x)] [(= (Var 12 _lpython_return_variable) (RealBinOp (Var 12 x) Pow (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) (Real 8 []) ()) ()) (Return)] (Var 12 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tan: (Function (SymbolTable 15 {_lpython_return_variable: (Variable 15 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 15 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tan (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtan] [(Var 15 x)] [(= (Var 15 _lpython_return_variable) (FunctionCall 3 _lfortran_dtan () [((Var 15 x))] (Real 8 []) () ()) ()) (Return)] (Var 15 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_0__tanh: (Function (SymbolTable 45 {_lpython_return_variable: (Variable 45 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) Source Public Required .false.), x: (Variable 45 x [] In () () Default (Real 8 []) Source Public Required .false.)}) __lpython_overloaded_0__tanh (FunctionType [(Real 8 [])] (Real 8 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_dtanh] [(Var 45 x)] [(= (Var 45 _lpython_return_variable) (FunctionCall 3 _lfortran_dtanh () [((Var 45 x))] (Real 8 []) () ()) ()) (Return)] (Var 45 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccos: (Function (SymbolTable 43 {_lpython_return_variable: (Variable 43 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 43 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacos] [(Var 43 x)] [(= (Var 43 _lpython_return_variable) (FunctionCall 3 _lfortran_sacos () [((Var 43 x))] (Real 4 []) () ()) ()) (Return)] (Var 43 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arccosh: (Function (SymbolTable 67 {_lpython_return_variable: (Variable 67 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 67 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arccosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sacosh] [(Var 67 x)] [(= (Var 67 _lpython_return_variable) (FunctionCall 3 _lfortran_sacosh () [((Var 67 x))] (Real 4 []) () ()) ()) (Return)] (Var 67 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsin: (Function (SymbolTable 39 {_lpython_return_variable: (Variable 39 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 39 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasin] [(Var 39 x)] [(= (Var 39 _lpython_return_variable) (FunctionCall 3 _lfortran_sasin () [((Var 39 x))] (Real 4 []) () ()) ()) (Return)] (Var 39 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arcsinh: (Function (SymbolTable 63 {_lpython_return_variable: (Variable 63 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 63 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arcsinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sasinh] [(Var 63 x)] [(= (Var 63 _lpython_return_variable) (FunctionCall 3 _lfortran_sasinh () [((Var 63 x))] (Real 4 []) () ()) ()) (Return)] (Var 63 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctan: (Function (SymbolTable 55 {_lpython_return_variable: (Variable 55 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 55 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satan] [(Var 55 x)] [(= (Var 55 _lpython_return_variable) (FunctionCall 3 _lfortran_satan () [((Var 55 x))] (Real 4 []) () ()) ()) (Return)] (Var 55 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__arctanh: (Function (SymbolTable 71 {_lpython_return_variable: (Variable 71 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 71 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__arctanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_satanh] [(Var 71 x)] [(= (Var 71 _lpython_return_variable) (FunctionCall 3 _lfortran_satanh () [((Var 71 x))] (Real 4 []) () ()) ()) (Return)] (Var 71 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__ceil: (Function (SymbolTable 77 {_lpython_return_variable: (Variable 77 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 77 resultf [x] Local (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 77 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__ceil (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 77 x)] [(= (Var 77 resultf) (Cast (Cast (Var 77 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 77 x) LtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 77 x) Eq (Var 77 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 77 _lpython_return_variable) (Var 77 resultf) ()) (Return)] []) (= (Var 77 _lpython_return_variable) (RealBinOp (Var 77 resultf) Add (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 77 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cos: (Function (SymbolTable 11 {_lpython_return_variable: (Variable 11 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 11 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cos (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scos] [(Var 11 x)] [(= (Var 11 _lpython_return_variable) (FunctionCall 3 _lfortran_scos () [((Var 11 x))] (Real 4 []) () ()) ()) (Return)] (Var 11 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__cosh: (Function (SymbolTable 25 {_lpython_return_variable: (Variable 25 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 25 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__cosh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_scosh] [(Var 25 x)] [(= (Var 25 _lpython_return_variable) (FunctionCall 3 _lfortran_scosh () [((Var 25 x))] (Real 4 []) () ()) ()) (Return)] (Var 25 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__degrees: (Function (SymbolTable 57 {_lpython_return_variable: (Variable 57 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 57 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__degrees (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 57 x)] [(= (Var 57 _lpython_return_variable) (RealBinOp (Var 57 x) Mul (RealBinOp (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) Div (Var 3 pi_32) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 57 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__exp: (Function (SymbolTable 51 {_lpython_return_variable: (Variable 51 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 51 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__exp (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_sexp] [(Var 51 x)] [(= (Var 51 _lpython_return_variable) (FunctionCall 3 _lfortran_sexp () [((Var 51 x))] (Real 4 []) () ()) ()) (Return)] (Var 51 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__floor: (Function (SymbolTable 75 {_lpython_return_variable: (Variable 75 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), resultf: (Variable 75 resultf [x] Local (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) () Default (Real 4 []) Source Public Required .false.), x: (Variable 75 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__floor (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 75 x)] [(= (Var 75 resultf) (Cast (Cast (Var 75 x) RealToInteger (Integer 4 []) ()) IntegerToReal (Real 4 []) ()) ()) (If (LogicalBinOp (RealCompare (Var 75 x) GtE (Cast (IntegerConstant 0 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Logical 4 []) ()) Or (RealCompare (Var 75 x) Eq (Var 75 resultf) (Logical 4 []) ()) (Logical 4 []) ()) [(= (Var 75 _lpython_return_variable) (Var 75 resultf) ()) (Return)] []) (= (Var 75 _lpython_return_variable) (RealBinOp (Var 75 resultf) Sub (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 75 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log: (Function (SymbolTable 29 {_lpython_return_variable: (Variable 29 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 29 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog] [(Var 29 x)] [(= (Var 29 _lpython_return_variable) (FunctionCall 3 _lfortran_slog () [((Var 29 x))] (Real 4 []) () ()) ()) (Return)] (Var 29 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log10: (Function (SymbolTable 33 {_lpython_return_variable: (Variable 33 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 33 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log10 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog10] [(Var 33 x)] [(= (Var 33 _lpython_return_variable) (FunctionCall 3 _lfortran_slog10 () [((Var 33 x))] (Real 4 []) () ()) ()) (Return)] (Var 33 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__log2: (Function (SymbolTable 35 {_lpython_return_variable: (Variable 35 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 35 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__log2 (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_slog _lfortran_slog] [(Var 35 x)] [(= (Var 35 _lpython_return_variable) (RealBinOp (FunctionCall 3 _lfortran_slog () [((Var 35 x))] (Real 4 []) () ()) Div (FunctionCall 3 _lfortran_slog () [((Cast (RealConstant 2.000000 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 2.000000 (Real 4 []))))] (Real 4 []) () ()) (Real 4 []) ()) ()) (Return)] (Var 35 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__mod: (Function (SymbolTable 73 {_lpython_return_variable: (Variable 73 _lpython_return_variable [] ReturnVar () () Default (Integer 4 []) Source Public Required .false.), _mod: (ExternalSymbol 73 _mod 79 _mod lpython_builtin [] _mod Private), _mod@__lpython_overloaded_2___mod: (ExternalSymbol 73 _mod@__lpython_overloaded_2___mod 79 __lpython_overloaded_2___mod lpython_builtin [] __lpython_overloaded_2___mod Public), x1: (Variable 73 x1 [] In () () Default (Integer 4 []) Source Public Required .false.), x2: (Variable 73 x2 [] In () () Default (Integer 4 []) Source Public Required .false.)}) __lpython_overloaded_1__mod (FunctionType [(Integer 4 []) (Integer 4 [])] (Integer 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_mod@__lpython_overloaded_2___mod] [(Var 73 x1) (Var 73 x2)] [(If (IntegerCompare (Var 73 x2) Eq (IntegerConstant 0 (Integer 4 [])) (Logical 4 []) ()) [(= (Var 73 _lpython_return_variable) (IntegerConstant 0 (Integer 4 [])) ()) (Return)] []) (= (Var 73 _lpython_return_variable) (FunctionCall 73 _mod@__lpython_overloaded_2___mod 73 _mod [((Var 73 x1)) ((Var 73 x2))] (Integer 4 []) () ()) ()) (Return)] (Var 73 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__radians: (Function (SymbolTable 59 {_lpython_return_variable: (Variable 59 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 59 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__radians (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 59 x)] [(= (Var 59 _lpython_return_variable) (RealBinOp (Var 59 x) Mul (RealBinOp (Var 3 pi_32) Div (Cast (IntegerConstant 180 (Integer 4 [])) IntegerToReal (Real 4 []) ()) (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 59 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sin: (Function (SymbolTable 7 {_lpython_return_variable: (Variable 7 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 7 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sin (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssin] [(Var 7 x)] [(= (Var 7 _lpython_return_variable) (FunctionCall 3 _lfortran_ssin () [((Var 7 x))] (Real 4 []) () ()) ()) (Return)] (Var 7 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sinh: (Function (SymbolTable 21 {_lpython_return_variable: (Variable 21 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 21 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sinh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_ssinh] [(Var 21 x)] [(= (Var 21 _lpython_return_variable) (FunctionCall 3 _lfortran_ssinh () [((Var 21 x))] (Real 4 []) () ()) ()) (Return)] (Var 21 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__sqrt: (Function (SymbolTable 13 {_lpython_return_variable: (Variable 13 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 13 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__sqrt (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [] [(Var 13 x)] [(= (Var 13 _lpython_return_variable) (RealBinOp (Var 13 x) Pow (Cast (RealBinOp (Cast (IntegerConstant 1 (Integer 4 [])) IntegerToReal (Real 8 []) ()) Div (Cast (IntegerConstant 2 (Integer 4 [])) IntegerToReal (Real 8 []) ()) (Real 8 []) ()) RealToReal (Real 4 []) ()) (Real 4 []) ()) ()) (Return)] (Var 13 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tan: (Function (SymbolTable 17 {_lpython_return_variable: (Variable 17 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 17 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tan (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stan] [(Var 17 x)] [(= (Var 17 _lpython_return_variable) (FunctionCall 3 _lfortran_stan () [((Var 17 x))] (Real 4 []) () ()) ()) (Return)] (Var 17 _lpython_return_variable) Public .false. .false.), __lpython_overloaded_1__tanh: (Function (SymbolTable 47 {_lpython_return_variable: (Variable 47 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) Source Public Required .false.), x: (Variable 47 x [] In () () Default (Real 4 []) Source Public Required .false.)}) __lpython_overloaded_1__tanh (FunctionType [(Real 4 [])] (Real 4 []) Source Implementation () .true. .false. .false. .false. .false. [] [] .false.) [_lfortran_stanh] [(Var 47 x)] [(= (Var 47 _lpython_return_variable) (FunctionCall 3 _lfortran_stanh () [((Var 47 x))] (Real 4 []) () ()) ()) (Return)] (Var 47 _lpython_return_variable) Public .false. .false.), _lfortran_dacos: (Function (SymbolTable 40 {_lpython_return_variable: (Variable 40 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 40 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 40 x)] [] (Var 40 _lpython_return_variable) Public .false. .false.), _lfortran_dacosh: (Function (SymbolTable 64 {_lpython_return_variable: (Variable 64 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 64 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dacosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 64 x)] [] (Var 64 _lpython_return_variable) Public .false. .false.), _lfortran_dasin: (Function (SymbolTable 36 {_lpython_return_variable: (Variable 36 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 36 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 36 x)] [] (Var 36 _lpython_return_variable) Public .false. .false.), _lfortran_dasinh: (Function (SymbolTable 60 {_lpython_return_variable: (Variable 60 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 60 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dasinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 60 x)] [] (Var 60 _lpython_return_variable) Public .false. .false.), _lfortran_datan: (Function (SymbolTable 52 {_lpython_return_variable: (Variable 52 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 52 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 52 x)] [] (Var 52 _lpython_return_variable) Public .false. .false.), _lfortran_datanh: (Function (SymbolTable 68 {_lpython_return_variable: (Variable 68 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 68 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_datanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 68 x)] [] (Var 68 _lpython_return_variable) Public .false. .false.), _lfortran_dcos: (Function (SymbolTable 8 {_lpython_return_variable: (Variable 8 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 8 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcos (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 8 x)] [] (Var 8 _lpython_return_variable) Public .false. .false.), _lfortran_dcosh: (Function (SymbolTable 22 {_lpython_return_variable: (Variable 22 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 22 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dcosh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 22 x)] [] (Var 22 _lpython_return_variable) Public .false. .false.), _lfortran_dexp: (Function (SymbolTable 48 {_lpython_return_variable: (Variable 48 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 48 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dexp (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 48 x)] [] (Var 48 _lpython_return_variable) Public .false. .false.), _lfortran_dlog: (Function (SymbolTable 26 {_lpython_return_variable: (Variable 26 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 26 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 26 x)] [] (Var 26 _lpython_return_variable) Public .false. .false.), _lfortran_dlog10: (Function (SymbolTable 30 {_lpython_return_variable: (Variable 30 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 30 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dlog10 (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 30 x)] [] (Var 30 _lpython_return_variable) Public .false. .false.), _lfortran_dsin: (Function (SymbolTable 4 {_lpython_return_variable: (Variable 4 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 4 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsin (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 4 x)] [] (Var 4 _lpython_return_variable) Public .false. .false.), _lfortran_dsinh: (Function (SymbolTable 18 {_lpython_return_variable: (Variable 18 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 18 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dsinh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 18 x)] [] (Var 18 _lpython_return_variable) Public .false. .false.), _lfortran_dtan: (Function (SymbolTable 14 {_lpython_return_variable: (Variable 14 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 14 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtan (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 14 x)] [] (Var 14 _lpython_return_variable) Public .false. .false.), _lfortran_dtanh: (Function (SymbolTable 44 {_lpython_return_variable: (Variable 44 _lpython_return_variable [] ReturnVar () () Default (Real 8 []) BindC Public Required .false.), x: (Variable 44 x [] In () () Default (Real 8 []) BindC Public Required .true.)}) _lfortran_dtanh (FunctionType [(Real 8 [])] (Real 8 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 44 x)] [] (Var 44 _lpython_return_variable) Public .false. .false.), _lfortran_sacos: (Function (SymbolTable 42 {_lpython_return_variable: (Variable 42 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 42 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 42 x)] [] (Var 42 _lpython_return_variable) Public .false. .false.), _lfortran_sacosh: (Function (SymbolTable 66 {_lpython_return_variable: (Variable 66 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 66 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sacosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 66 x)] [] (Var 66 _lpython_return_variable) Public .false. .false.), _lfortran_sasin: (Function (SymbolTable 38 {_lpython_return_variable: (Variable 38 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 38 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 38 x)] [] (Var 38 _lpython_return_variable) Public .false. .false.), _lfortran_sasinh: (Function (SymbolTable 62 {_lpython_return_variable: (Variable 62 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 62 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sasinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 62 x)] [] (Var 62 _lpython_return_variable) Public .false. .false.), _lfortran_satan: (Function (SymbolTable 54 {_lpython_return_variable: (Variable 54 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 54 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 54 x)] [] (Var 54 _lpython_return_variable) Public .false. .false.), _lfortran_satanh: (Function (SymbolTable 70 {_lpython_return_variable: (Variable 70 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 70 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_satanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 70 x)] [] (Var 70 _lpython_return_variable) Public .false. .false.), _lfortran_scos: (Function (SymbolTable 10 {_lpython_return_variable: (Variable 10 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 10 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scos (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 10 x)] [] (Var 10 _lpython_return_variable) Public .false. .false.), _lfortran_scosh: (Function (SymbolTable 24 {_lpython_return_variable: (Variable 24 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 24 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_scosh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 24 x)] [] (Var 24 _lpython_return_variable) Public .false. .false.), _lfortran_sexp: (Function (SymbolTable 50 {_lpython_return_variable: (Variable 50 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 50 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_sexp (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 50 x)] [] (Var 50 _lpython_return_variable) Public .false. .false.), _lfortran_slog: (Function (SymbolTable 28 {_lpython_return_variable: (Variable 28 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 28 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 28 x)] [] (Var 28 _lpython_return_variable) Public .false. .false.), _lfortran_slog10: (Function (SymbolTable 32 {_lpython_return_variable: (Variable 32 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 32 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_slog10 (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 32 x)] [] (Var 32 _lpython_return_variable) Public .false. .false.), _lfortran_ssin: (Function (SymbolTable 6 {_lpython_return_variable: (Variable 6 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 6 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssin (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 6 x)] [] (Var 6 _lpython_return_variable) Public .false. .false.), _lfortran_ssinh: (Function (SymbolTable 20 {_lpython_return_variable: (Variable 20 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 20 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_ssinh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 20 x)] [] (Var 20 _lpython_return_variable) Public .false. .false.), _lfortran_stan: (Function (SymbolTable 16 {_lpython_return_variable: (Variable 16 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 16 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stan (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 16 x)] [] (Var 16 _lpython_return_variable) Public .false. .false.), _lfortran_stanh: (Function (SymbolTable 46 {_lpython_return_variable: (Variable 46 _lpython_return_variable [] ReturnVar () () Default (Real 4 []) BindC Public Required .false.), x: (Variable 46 x [] In () () Default (Real 4 []) BindC Public Required .true.)}) _lfortran_stanh (FunctionType [(Real 4 [])] (Real 4 []) BindC Interface () .false. .false. .false. .false. .false. [] [] .false.) [] [(Var 46 x)] [] (Var 46 _lpython_return_variable) Public .false. .false.), arccos: (GenericProcedure 3 arccos [3 __lpython_overloaded_0__arccos 3 __lpython_overloaded_1__arccos] Public), arccosh: (GenericProcedure 3 arccosh [3 __lpython_overloaded_0__arccosh 3 __lpython_overloaded_1__arccosh] Public), arcsin: (GenericProcedure 3 arcsin [3 __lpython_overloaded_0__arcsin 3 __lpython_overloaded_1__arcsin] Public), arcsinh: (GenericProcedure 3 arcsinh [3 __lpython_overloaded_0__arcsinh 3 __lpython_overloaded_1__arcsinh] Public), arctan: (GenericProcedure 3 arctan [3 __lpython_overloaded_0__arctan 3 __lpython_overloaded_1__arctan] Public), arctanh: (GenericProcedure 3 arctanh [3 __lpython_overloaded_0__arctanh 3 __lpython_overloaded_1__arctanh] Public), ceil: (GenericProcedure 3 ceil [3 __lpython_overloaded_0__ceil 3 __lpython_overloaded_1__ceil] Public), cos: (GenericProcedure 3 cos [3 __lpython_overloaded_0__cos 3 __lpython_overloaded_1__cos] Public), cosh: (GenericProcedure 3 cosh [3 __lpython_overloaded_0__cosh 3 __lpython_overloaded_1__cosh] Public), degrees: (GenericProcedure 3 degrees [3 __lpython_overloaded_0__degrees 3 __lpython_overloaded_1__degrees] Public), exp: (GenericProcedure 3 exp [3 __lpython_overloaded_0__exp 3 __lpython_overloaded_1__exp] Public), floor: (GenericProcedure 3 floor [3 __lpython_overloaded_0__floor 3 __lpython_overloaded_1__floor] Public), log: (GenericProcedure 3 log [3 __lpython_overloaded_0__log 3 __lpython_overloaded_1__log] Public), log10: (GenericProcedure 3 log10 [3 __lpython_overloaded_0__log10 3 __lpython_overloaded_1__log10] Public), log2: (GenericProcedure 3 log2 [3 __lpython_overloaded_0__log2 3 __lpython_overloaded_1__log2] Public), mod: (GenericProcedure 3 mod [3 __lpython_overloaded_0__mod 3 __lpython_overloaded_1__mod] Public), pi_32: (Variable 3 pi_32 [] Local (Cast (RealConstant 3.141593 (Real 8 [])) RealToReal (Real 4 []) (RealConstant 3.141593 (Real 4 []))) () Default (Real 4 []) Source Public Required .false.), pi_64: (Variable 3 pi_64 [] Local (RealConstant 3.141593 (Real 8 [])) () Default (Real 8 []) Source Public Required .false.), radians: (GenericProcedure 3 radians [3 __lpython_overloaded_0__radians 3 __lpython_overloaded_1__radians] Public), sin: (GenericProcedure 3 sin [3 __lpython_overloaded_0__sin 3 __lpython_overloaded_1__sin] Public), sinh: (GenericProcedure 3 sinh [3 __lpython_overloaded_0__sinh 3 __lpython_overloaded_1__sinh] Public), sqrt: (GenericProcedure 3 sqrt [3 __lpython_overloaded_0__sqrt 3 __lpython_overloaded_1__sqrt] Public), tan: (GenericProcedure 3 tan [3 __lpython_overloaded_0__tan 3 __lpython_overloaded_1__tan] Public), tanh: (GenericProcedure 3 tanh [3 __lpython_overloaded_0__tanh 3 __lpython_overloaded_1__tanh] Public)}) numpy [lpython_builtin lpython_builtin] .false. .false.)}) []) diff --git a/tests/reference/pass_print_list_tuple-print_02-09600eb.json b/tests/reference/pass_print_list_tuple-print_02-09600eb.json index 288e34919e..9ec9a44227 100644 --- a/tests/reference/pass_print_list_tuple-print_02-09600eb.json +++ b/tests/reference/pass_print_list_tuple-print_02-09600eb.json @@ -2,7 +2,7 @@ "basename": "pass_print_list_tuple-print_02-09600eb", "cmd": "lpython --pass=print_list_tuple --show-asr --no-color {infile} -o {outfile}", "infile": "tests/../integration_tests/print_02.py", - "infile_hash": "c2a1fef856c4162154056d5aaea2acdf325f21bf8e43703f71d71fac", + "infile_hash": "c4513f1b2ab1a2f33a0784fe80b4d32b506c05799b0c920c4f5b0411", "outfile": null, "outfile_hash": null, "stdout": "pass_print_list_tuple-print_02-09600eb.stdout", diff --git a/tests/reference/runtime-test_list_01-3ee9b3e.json b/tests/reference/runtime-test_list_01-3ee9b3e.json index 32c4c0e099..0c845eb4e6 100644 --- a/tests/reference/runtime-test_list_01-3ee9b3e.json +++ b/tests/reference/runtime-test_list_01-3ee9b3e.json @@ -2,7 +2,7 @@ "basename": "runtime-test_list_01-3ee9b3e", "cmd": "lpython {infile}", "infile": "tests/runtime_errors/test_list_01.py", - "infile_hash": "7d62ba61085d24d42b3a726889aeebb226bf1fe1918004d909d50520", + "infile_hash": "a982aac98be709cc9304e20c7d79f4141f41fdfb0eba261d00beff2c", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/runtime-test_list_02-5f7db5f.json b/tests/reference/runtime-test_list_02-5f7db5f.json index 6a675b34f8..c4afb880c4 100644 --- a/tests/reference/runtime-test_list_02-5f7db5f.json +++ b/tests/reference/runtime-test_list_02-5f7db5f.json @@ -2,7 +2,7 @@ "basename": "runtime-test_list_02-5f7db5f", "cmd": "lpython {infile}", "infile": "tests/runtime_errors/test_list_02.py", - "infile_hash": "f74ffd3eeb1f4a61b105d50f030fcd9e1095cc70d0a618763bbf367b", + "infile_hash": "004ac679732e715b87556ac0d6f0ea649612981999a20dad4e25acd0", "outfile": null, "outfile_hash": null, "stdout": null, diff --git a/tests/reference/runtime-test_str_01-50bdf2f.json b/tests/reference/runtime-test_str_01-50bdf2f.json index eb4a1a084e..d28f645eca 100644 --- a/tests/reference/runtime-test_str_01-50bdf2f.json +++ b/tests/reference/runtime-test_str_01-50bdf2f.json @@ -2,7 +2,7 @@ "basename": "runtime-test_str_01-50bdf2f", "cmd": "lpython {infile}", "infile": "tests/runtime_errors/test_str_01.py", - "infile_hash": "5f1245b9162a004ea90aee813606b7a14a2d06802c8eb2ebd6220f9b", + "infile_hash": "7fb9748271af03bfa35e190a4514480662f42263ebfa0a6b2e082868", "outfile": null, "outfile_hash": null, "stdout": "runtime-test_str_01-50bdf2f.stdout", diff --git a/tests/reference/tokens-indent1-290e858.json b/tests/reference/tokens-indent1-290e858.json index 6d3403142d..7374507118 100644 --- a/tests/reference/tokens-indent1-290e858.json +++ b/tests/reference/tokens-indent1-290e858.json @@ -2,11 +2,11 @@ "basename": "tokens-indent1-290e858", "cmd": "lpython --no-color --show-tokens {infile} -o {outfile}", "infile": "tests/tokens/indent1.py", - "infile_hash": "c0eef37090fca7aa852c58b85802275f51f71fd8bdfe2c8e043f7fef", + "infile_hash": "e8d2e3a0872f5aea8db4b6631f2fcb0e562dda5b3f59ff247cb9aaa9", "outfile": null, "outfile_hash": null, "stdout": "tokens-indent1-290e858.stdout", - "stdout_hash": "8c7536776e4ef90939cf1e1262d667c479f170e6993cdf6c54abc593", + "stdout_hash": "9b71c23ca510cf5a4529540766fb16fc3c5b59bc7225efcfe25b3f0b", "stderr": null, "stderr_hash": null, "returncode": 0 diff --git a/tests/reference/tokens-indent1-290e858.stdout b/tests/reference/tokens-indent1-290e858.stdout index c71403deb4..98197c5ed5 100644 --- a/tests/reference/tokens-indent1-290e858.stdout +++ b/tests/reference/tokens-indent1-290e858.stdout @@ -1,73 +1,73 @@ (KEYWORD "from") 0:3 -(TOKEN "identifier" ltypes) 5:10 -(KEYWORD "import") 12:17 -(TOKEN "identifier" i32) 25:27 -(NEWLINE) 28:28 +(TOKEN "identifier" lpython) 5:11 +(KEYWORD "import") 13:18 +(TOKEN "identifier" i32) 26:28 (NEWLINE) 29:29 -(KEYWORD "def") 30:32 -(TOKEN "identifier" test) 34:37 -(TOKEN "(") 38:38 -(TOKEN ")") 39:39 -(TOKEN ":") 40:40 -(NEWLINE) 41:41 -(TOKEN "indent") 42:45 -(TOKEN "identifier" print) 46:50 -(TOKEN "(") 51:51 -(TOKEN ")") 52:52 -(NEWLINE) 53:53 -(KEYWORD "if") 58:59 -(TOKEN "integer" 1) 61:61 -(TOKEN ">") 63:63 -(TOKEN "integer" 0) 65:65 -(TOKEN ":") 66:66 -(NEWLINE) 67:67 -(TOKEN "indent") 68:75 -(TOKEN "identifier" print) 76:80 -(TOKEN "(") 81:81 -(TOKEN ")") 82:82 -(NEWLINE) 83:83 -(KEYWORD "if") 92:93 -(TOKEN "integer" 2) 95:95 -(TOKEN ">") 97:97 -(TOKEN "integer" 0) 99:99 -(TOKEN ":") 100:100 -(NEWLINE) 101:101 -(TOKEN "indent") 102:113 -(TOKEN "identifier" print) 114:118 -(TOKEN "(") 119:119 -(TOKEN ")") 120:120 -(NEWLINE) 121:121 -(TOKEN "dedent") 122:125 -(TOKEN "dedent") 125:125 -(KEYWORD "if") 126:127 -(TOKEN "integer" 3) 129:129 -(TOKEN ">") 131:131 -(TOKEN "integer" 0) 133:133 -(TOKEN ":") 134:134 -(NEWLINE) 135:135 -(TOKEN "indent") 136:143 -(TOKEN "identifier" print) 144:148 -(TOKEN "(") 149:149 -(TOKEN ")") 150:150 -(NEWLINE) 151:151 +(NEWLINE) 30:30 +(KEYWORD "def") 31:33 +(TOKEN "identifier" test) 35:38 +(TOKEN "(") 39:39 +(TOKEN ")") 40:40 +(TOKEN ":") 41:41 +(NEWLINE) 42:42 +(TOKEN "indent") 43:46 +(TOKEN "identifier" print) 47:51 +(TOKEN "(") 52:52 +(TOKEN ")") 53:53 +(NEWLINE) 54:54 +(KEYWORD "if") 59:60 +(TOKEN "integer" 1) 62:62 +(TOKEN ">") 64:64 +(TOKEN "integer" 0) 66:66 +(TOKEN ":") 67:67 +(NEWLINE) 68:68 +(TOKEN "indent") 69:76 +(TOKEN "identifier" print) 77:81 +(TOKEN "(") 82:82 +(TOKEN ")") 83:83 +(NEWLINE) 84:84 +(KEYWORD "if") 93:94 +(TOKEN "integer" 2) 96:96 +(TOKEN ">") 98:98 +(TOKEN "integer" 0) 100:100 +(TOKEN ":") 101:101 +(NEWLINE) 102:102 +(TOKEN "indent") 103:114 +(TOKEN "identifier" print) 115:119 +(TOKEN "(") 120:120 +(TOKEN ")") 121:121 +(NEWLINE) 122:122 +(TOKEN "dedent") 123:126 +(TOKEN "dedent") 126:126 +(KEYWORD "if") 127:128 +(TOKEN "integer" 3) 130:130 +(TOKEN ">") 132:132 +(TOKEN "integer" 0) 134:134 +(TOKEN ":") 135:135 +(NEWLINE) 136:136 +(TOKEN "indent") 137:144 +(TOKEN "identifier" print) 145:149 +(TOKEN "(") 150:150 +(TOKEN ")") 151:151 (NEWLINE) 152:152 -(KEYWORD "if") 161:162 -(TOKEN "integer" 4) 164:164 -(TOKEN ">") 166:166 -(TOKEN "integer" 0) 168:168 -(TOKEN ":") 169:169 -(NEWLINE) 170:170 -(TOKEN "indent") 171:182 -(TOKEN "identifier" print) 183:187 -(TOKEN "(") 188:188 -(TOKEN ")") 189:189 -(NEWLINE) 190:190 +(NEWLINE) 153:153 +(KEYWORD "if") 162:163 +(TOKEN "integer" 4) 165:165 +(TOKEN ">") 167:167 +(TOKEN "integer" 0) 169:169 +(TOKEN ":") 170:170 +(NEWLINE) 171:171 +(TOKEN "indent") 172:183 +(TOKEN "identifier" print) 184:188 +(TOKEN "(") 189:189 +(TOKEN ")") 190:190 (NEWLINE) 191:191 -(TOKEN "dedent") 191:191 -(TOKEN "dedent") 191:191 -(TOKEN "dedent") 191:191 -(TOKEN "identifier" test) 192:195 -(TOKEN "(") 196:196 -(TOKEN ")") 197:197 -(NEWLINE) 198:198 -(EOF) 199:199 +(NEWLINE) 192:192 +(TOKEN "dedent") 192:192 +(TOKEN "dedent") 192:192 +(TOKEN "dedent") 192:192 +(TOKEN "identifier" test) 193:196 +(TOKEN "(") 197:197 +(TOKEN ")") 198:198 +(NEWLINE) 199:199 +(EOF) 200:200 diff --git a/tests/reference/wat-loop1-e0046d4.json b/tests/reference/wat-loop1-e0046d4.json index 6208b29eb3..27393e9520 100644 --- a/tests/reference/wat-loop1-e0046d4.json +++ b/tests/reference/wat-loop1-e0046d4.json @@ -2,7 +2,7 @@ "basename": "wat-loop1-e0046d4", "cmd": "lpython --no-color --show-wat {infile}", "infile": "tests/loop1.py", - "infile_hash": "0eee568be1d20a4c31b59c33ae2b47509fce3f6047fa1ffa592947e9", + "infile_hash": "324b018f29f7dffbd326e77b7ff9b6a9286837d573ed28f9d86e0311", "outfile": null, "outfile_hash": null, "stdout": "wat-loop1-e0046d4.stdout", diff --git a/tests/runtime_errors/test_list_01.py b/tests/runtime_errors/test_list_01.py index 8d42e50ed2..75584137f8 100644 --- a/tests/runtime_errors/test_list_01.py +++ b/tests/runtime_errors/test_list_01.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test(): x: list[i32] = [1, 2, 3] diff --git a/tests/runtime_errors/test_list_02.py b/tests/runtime_errors/test_list_02.py index 5c246ba8c7..baf07f90d9 100644 --- a/tests/runtime_errors/test_list_02.py +++ b/tests/runtime_errors/test_list_02.py @@ -1,5 +1,5 @@ # Out of bound -from ltypes import i32 +from lpython import i32 def test_list(): x: list[i32] diff --git a/tests/runtime_errors/test_str_01.py b/tests/runtime_errors/test_str_01.py index d41ceea2dd..725451e237 100644 --- a/tests/runtime_errors/test_str_01.py +++ b/tests/runtime_errors/test_str_01.py @@ -1,4 +1,4 @@ -from ltypes import i32 +from lpython import i32 def test_issue_1536(): diff --git a/tests/tests.toml b/tests/tests.toml index 713d4016f1..33bbf98429 100644 --- a/tests/tests.toml +++ b/tests/tests.toml @@ -286,7 +286,7 @@ asr = true # integration_tests [[test]] -filename = "ltypes1.py" +filename = "lpython1.py" llvm = true [[test]] diff --git a/tests/tokens/indent1.py b/tests/tokens/indent1.py index a984c21783..6074762198 100644 --- a/tests/tokens/indent1.py +++ b/tests/tokens/indent1.py @@ -1,4 +1,4 @@ -from ltypes import \ +from lpython import \ i32 def test(): diff --git a/tests/tuple1.py b/tests/tuple1.py index dd43c364de..cd885e82d2 100644 --- a/tests/tuple1.py +++ b/tests/tuple1.py @@ -1,4 +1,4 @@ -from ltypes import i32, f32 +from lpython import i32, f32 def test_Tuple(): a1: tuple[i32, i32, i32]