diff --git a/integration_tests/CMakeLists.txt b/integration_tests/CMakeLists.txt index aaf57e693e..1580cad111 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() 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..1aaf454110 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 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/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_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/lpython/semantics/python_ast_to_asr.cpp b/src/lpython/semantics/python_ast_to_asr.cpp index 054a571871..f996867ccc 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/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 94fa4f81c2..4a0678ff7f 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. 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 7149233e5a..76203ff574 100644 --- a/tests/reference/asr-array_01_decl-39cf894.json +++ b/tests/reference/asr-array_01_decl-39cf894.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-array_02_decl-e8f6874.json b/tests/reference/asr-array_02_decl-e8f6874.json index e8c366a18e..2226b0b1dc 100644 --- a/tests/reference/asr-array_02_decl-e8f6874.json +++ b/tests/reference/asr-array_02_decl-e8f6874.json @@ -2,7 +2,7 @@ "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", 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 b0e98a73a7..5c96c3e168 100644 --- a/tests/reference/asr-bindc_02-bc1a7ea.json +++ b/tests/reference/asr-bindc_02-bc1a7ea.json @@ -2,7 +2,7 @@ "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", 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-complex1-f26c460.json b/tests/reference/asr-complex1-f26c460.json index 0d2cb0d264..f0fcf1bcdf 100644 --- a/tests/reference/asr-complex1-f26c460.json +++ b/tests/reference/asr-complex1-f26c460.json @@ -2,7 +2,7 @@ "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", 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 4c5f7b97a5..4ad51d3484 100644 --- a/tests/reference/asr-constants1-5828e8a.json +++ b/tests/reference/asr-constants1-5828e8a.json @@ -2,7 +2,7 @@ "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", 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 691543e3c2..c6a3f5f0f9 100644 --- a/tests/reference/asr-elemental_01-b58df26.json +++ b/tests/reference/asr-elemental_01-b58df26.json @@ -2,7 +2,7 @@ "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", 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 43eedfb28f..4faf774d6f 100644 --- a/tests/reference/asr-expr10-efcbb1b.json +++ b/tests/reference/asr-expr10-efcbb1b.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-expr7-480ba2f.json b/tests/reference/asr-expr7-480ba2f.json index 2bb47b0873..6359195c56 100644 --- a/tests/reference/asr-expr7-480ba2f.json +++ b/tests/reference/asr-expr7-480ba2f.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-expr8-6beda60.json b/tests/reference/asr-expr8-6beda60.json index 0b68f9879b..fac0eeb8b7 100644 --- a/tests/reference/asr-expr8-6beda60.json +++ b/tests/reference/asr-expr8-6beda60.json @@ -2,7 +2,7 @@ "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", 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 9cac4a8948..08b2a0113b 100644 --- a/tests/reference/asr-expr_05-3a37324.json +++ b/tests/reference/asr-expr_05-3a37324.json @@ -2,7 +2,7 @@ "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", 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 27ea9c6178..0e55f1d28d 100644 --- a/tests/reference/asr-expr_09-f3e89c8.json +++ b/tests/reference/asr-expr_09-f3e89c8.json @@ -2,7 +2,7 @@ "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", 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 98d8e4cc5e..f1e4d6d14a 100644 --- a/tests/reference/asr-expr_14-f2bd343.json +++ b/tests/reference/asr-expr_14-f2bd343.json @@ -2,7 +2,7 @@ "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", 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 7d4558e760..4fbc6a756e 100644 --- a/tests/reference/asr-generics_array_01-682b1b2.json +++ b/tests/reference/asr-generics_array_01-682b1b2.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-generics_array_02-22c8dc1.json b/tests/reference/asr-generics_array_02-22c8dc1.json index 4744b5e65f..93b6816ed2 100644 --- a/tests/reference/asr-generics_array_02-22c8dc1.json +++ b/tests/reference/asr-generics_array_02-22c8dc1.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-generics_array_03-fb3706c.json b/tests/reference/asr-generics_array_03-fb3706c.json index 3099f7b966..5aa8685da6 100644 --- a/tests/reference/asr-generics_array_03-fb3706c.json +++ b/tests/reference/asr-generics_array_03-fb3706c.json @@ -2,7 +2,7 @@ "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", 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 be4e837812..ab662ec2bc 100644 --- a/tests/reference/asr-structs_05-fa98307.json +++ b/tests/reference/asr-structs_05-fa98307.json @@ -2,7 +2,7 @@ "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", 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 fbfa8e9fa3..4683c0b1c6 100644 --- a/tests/reference/asr-test_bool_binop-f856ef0.json +++ b/tests/reference/asr-test_bool_binop-f856ef0.json @@ -2,7 +2,7 @@ "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", 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 7670700d99..06590162bc 100644 --- a/tests/reference/asr-test_builtin_abs-c74d2c9.json +++ b/tests/reference/asr-test_builtin_abs-c74d2c9.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-test_builtin_bin-52ba9fa.json b/tests/reference/asr-test_builtin_bin-52ba9fa.json index 17436a29e2..a31ea21128 100644 --- a/tests/reference/asr-test_builtin_bin-52ba9fa.json +++ b/tests/reference/asr-test_builtin_bin-52ba9fa.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-test_builtin_bool-330223a.json b/tests/reference/asr-test_builtin_bool-330223a.json index 3e0757b070..09c2417e99 100644 --- a/tests/reference/asr-test_builtin_bool-330223a.json +++ b/tests/reference/asr-test_builtin_bool-330223a.json @@ -2,7 +2,7 @@ "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", 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 0c6e69807e..184994aa0d 100644 --- a/tests/reference/asr-test_builtin_hex-64bd268.json +++ b/tests/reference/asr-test_builtin_hex-64bd268.json @@ -2,7 +2,7 @@ "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", 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 3b4c5912a5..fcee697b70 100644 --- a/tests/reference/asr-test_builtin_oct-20b9066.json +++ b/tests/reference/asr-test_builtin_oct-20b9066.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-test_builtin_pow-f02fcda.json b/tests/reference/asr-test_builtin_pow-f02fcda.json index 7379ff3268..326ff540a4 100644 --- a/tests/reference/asr-test_builtin_pow-f02fcda.json +++ b/tests/reference/asr-test_builtin_pow-f02fcda.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-test_builtin_round-7417a21.json b/tests/reference/asr-test_builtin_round-7417a21.json index 74c1bf73ec..89170a8774 100644 --- a/tests/reference/asr-test_builtin_round-7417a21.json +++ b/tests/reference/asr-test_builtin_round-7417a21.json @@ -2,7 +2,7 @@ "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", 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 834386cf02..a727c7bf64 100644 --- a/tests/reference/asr-test_c_interop_01-e374f43.json +++ b/tests/reference/asr-test_c_interop_01-e374f43.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-test_complex_01-a6def58.json b/tests/reference/asr-test_complex_01-a6def58.json index b24fc60c3a..f5701045ed 100644 --- a/tests/reference/asr-test_complex_01-a6def58.json +++ b/tests/reference/asr-test_complex_01-a6def58.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-test_complex_02-782ba2d.json b/tests/reference/asr-test_complex_02-782ba2d.json index e5c2bc0a59..c163af2ec2 100644 --- a/tests/reference/asr-test_complex_02-782ba2d.json +++ b/tests/reference/asr-test_complex_02-782ba2d.json @@ -2,7 +2,7 @@ "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", 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 abed45b529..06c2d2b88d 100644 --- a/tests/reference/asr-test_max_min-3c2fc51.json +++ b/tests/reference/asr-test_max_min-3c2fc51.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-test_numpy_03-e600a49.json b/tests/reference/asr-test_numpy_03-e600a49.json index 0243df3173..8e8d60ec6a 100644 --- a/tests/reference/asr-test_numpy_03-e600a49.json +++ b/tests/reference/asr-test_numpy_03-e600a49.json @@ -2,7 +2,7 @@ "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", diff --git a/tests/reference/asr-test_numpy_04-ecbb614.json b/tests/reference/asr-test_numpy_04-ecbb614.json index c7b0cfd7c3..e076b7b6d6 100644 --- a/tests/reference/asr-test_numpy_04-ecbb614.json +++ b/tests/reference/asr-test_numpy_04-ecbb614.json @@ -2,7 +2,7 @@ "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", 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_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 13aea7827d..ddc0300332 100644 --- a/tests/reference/asr-vec_01-66ac423.json +++ b/tests/reference/asr-vec_01-66ac423.json @@ -2,7 +2,7 @@ "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", 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..6fbe4652e3 100644 --- a/tests/reference/cpp-test_builtin_pow-56b3f92.json +++ b/tests/reference/cpp-test_builtin_pow-56b3f92.json @@ -2,7 +2,7 @@ "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", 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 24a1d1f827..2cb162e075 100644 --- a/tests/reference/pass_loop_vectorise-vec_01-be9985e.json +++ b/tests/reference/pass_loop_vectorise-vec_01-be9985e.json @@ -2,7 +2,7 @@ "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", 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]