Skip to content

Commit 2fabb67

Browse files
committed
Add note for faling test named_arg
1 parent 283b947 commit 2fabb67

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/failing_tests/named_arg.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
from ctypes import c_void_p, c_int64
66

7+
# NOTE: This example exposes the problems with our typing system.
8+
# We assign every variable the type i64* by default.
9+
# lookup() return type is ptr, which can't be loaded.
10+
# So we can't do steps on line 25 and 27.
11+
# To counter this, we should allocate vars by speculating their type.
12+
# And in the assign pass, we should have something like a
13+
# recursive_dereferencer() that dereferences a ptr until it hits a non-ptr type.
14+
# And a recursive_wrapper() that does the opposite.
715

816
@bpf
917
@map

0 commit comments

Comments
 (0)