Skip to content

Commit

Permalink
chore: rename ltypes.py to lpython.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ADV1K committed Mar 24, 2023
1 parent 5a6e2d2 commit 642166f
Show file tree
Hide file tree
Showing 267 changed files with 293 additions and 293 deletions.
2 changes: 1 addition & 1 deletion integration_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/array_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32
from lpython import i32
from numpy import empty

def main0():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/array_01_decl.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/array_02.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32
from lpython import i32
from numpy import empty

def main0():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/array_02_decl.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/array_03_decl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32, f64, dataclass
from lpython import i32, f64, dataclass
from numpy import empty

@dataclass
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/array_expr_01.py
Original file line number Diff line number Diff line change
@@ -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():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/array_expr_02.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32, f32, TypeVar
from lpython import i32, f32, TypeVar
from numpy import empty, sqrt, float32

n: i32
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/bindc_01.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/bindc_02.py
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/bindc_03.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/bindc_04.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import pointer, i16, Pointer
from lpython import pointer, i16, Pointer

# Testing Global Pointers
x: Pointer[i16[:]]
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/bindc_05.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/bindc_06.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/bindc_07.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/bit_operations_i32.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32
from lpython import i32

def test_bitnot():
x: i32 = 5
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/bit_operations_i64.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i64
from lpython import i64

def test_bitnot():
x: i64 = i64(123)
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/comp_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32, f64
from lpython import i32, f64

def compI32(x: i32, y: i32):
print(x)
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/const_01.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/const_02.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/const_03.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/const_04.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_01.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_02.py
Original file line number Diff line number Diff line change
@@ -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():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_03.py
Original file line number Diff line number Diff line change
@@ -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():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_04.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_05.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_06.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_07.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_08.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_09.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_10.py
Original file line number Diff line number Diff line change
@@ -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():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_11.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/elemental_12.py
Original file line number Diff line number Diff line change
@@ -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():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/enum_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32
from lpython import i32
from enum import Enum

class Color(Enum):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/enum_02.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from enum import Enum
from ltypes import i32, f64
from lpython import i32, f64

class MolecularMass(Enum):
water: i32 = 18
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/enum_03.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from enum import Enum
from ltypes import i32
from lpython import i32

class NegativeNumbers(Enum):
a: i32 = -1
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/enum_04.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32
from lpython import i32
from enum import Enum, auto

class Color(Enum):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/enum_05.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32, ccall
from lpython import i32, ccall
from enum import Enum

@ccall
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/enum_06.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32, dataclass, f64
from lpython import i32, dataclass, f64
from numpy import empty
from enum import Enum

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import inline, i32
from lpython import inline, i32

@inline
def add(x: i32, y: i32) -> i32:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_04.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32, f32, f64, i64
from lpython import i32, f32, f64, i64
def main0():
i: i32
sum: i32
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_05.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_06.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32, f32, f64
from lpython import i32, f32, f64
from numpy import empty, cos, sin

def main0():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_07.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32
from lpython import i32

def g(x: i32):
print(x)
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_08.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import pointer, i16, Pointer
from lpython import pointer, i16, Pointer

# Testing Global Pointers
x: Pointer[i16[:]]
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_09.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32, f64, f32
from lpython import i32, f64, f32

def main0():
i1: i32 = 10
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_10.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32
from lpython import i32

def g() -> i32:
return 5
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_11.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32
from lpython import i32

def f():
i: i32
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_12.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_13.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_14.py
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_15.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i8, i16
from lpython import i8, i16

def test_issue_1586():
x4: i16
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/float_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import f64
from lpython import f64

def sqr(x: f64) -> f64:
return x * x
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/func_dep_03.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32, i64
from lpython import i32, i64

def casti32(x: i64) -> i32:
y: i32
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/func_dep_04.py
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/func_dep_04_module.py
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion integration_tests/func_inline_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i64
from lpython import i64

def fib(n: i64) -> i64:
if n < i64(2):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/func_inline_02.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i32, Const, inline
from lpython import i32, Const, inline

@inline
def f(x: i32) -> i32:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/func_static_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i64, static
from lpython import i64, static

@static
def fib(n: i64) -> i64:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/func_static_02.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import i64, static, inline
from lpython import i64, static, inline

@static
@inline
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/generics_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import TypeVar, restriction, i32
from lpython import TypeVar, restriction, i32

T = TypeVar('T')

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/generics_02.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import TypeVar
from lpython import TypeVar

T = TypeVar('T')

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/generics_array_01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import TypeVar, i32
from lpython import TypeVar, i32
from numpy import empty

T = TypeVar('T')
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/generics_array_02.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ltypes import TypeVar, restriction, i32, f32
from lpython import TypeVar, restriction, i32, f32
from numpy import empty

n: i32
Expand Down
Loading

0 comments on commit 642166f

Please sign in to comment.