1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-16 21:07:56 +00:00
kickc/src/test/ref/pointer-void-3.cfg

33 lines
899 B
INI
Raw Normal View History

2020-10-05 20:58:02 +00:00
void main()
2020-06-27 19:18:00 +00:00
main: scope:[main] from
[0] phi()
[1] call malloc
2020-10-05 20:58:02 +00:00
[2] malloc::return#0 = malloc::return#2
to:main::@1
main::@1: scope:[main] from main
2020-10-05 20:58:02 +00:00
[3] main::buf1#0 = malloc::return#0
2020-06-27 19:18:00 +00:00
[4] call malloc
2020-10-05 20:58:02 +00:00
[5] malloc::return#1 = malloc::return#2
to:main::@2
main::@2: scope:[main] from main::@1
2020-10-05 20:58:02 +00:00
[6] main::buf2#0 = malloc::return#1
[7] *((byte*)main::buf1#0) = 'a'
[8] *((byte*)main::buf2#0) = 'b'
[9] *SCREEN = *((byte*)main::buf1#0)
[10] *(SCREEN+1) = *((byte*)main::buf2#0)
to:main::@return
main::@return: scope:[main] from main::@2
2020-06-27 19:18:00 +00:00
[11] return
to:@return
2020-10-05 20:58:02 +00:00
void* malloc()
malloc: scope:[malloc] from main main::@1
2020-10-05 20:58:02 +00:00
[12] heap_head#11 = phi( main/(byte*) 49152, main::@1/heap_head#12 )
[13] heap_head#12 = ++ heap_head#11
[14] malloc::return#2 = (void*)heap_head#12
to:malloc::@return
malloc::@return: scope:[malloc] from malloc
2020-06-27 19:18:00 +00:00
[15] return
to:@return