-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2453 from anutosh491/certik/dont_load_cptr
Don't load CPtr if the variable under consideration is an argument
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from lpython import S | ||
from sympy import Symbol | ||
|
||
def mmrv(x: S) -> list[S]: | ||
l1: list[S] = [x] | ||
return l1 | ||
|
||
def test_mrv1(): | ||
x: S = Symbol("x") | ||
ans: list[S] = mmrv(x) | ||
element_1: S = ans[0] | ||
print(element_1) | ||
assert element_1 == x | ||
|
||
test_mrv1() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters