28 lines
445 B
Plaintext
28 lines
445 B
Plaintext
u64 array() {
|
|
if(__builtin_memory_size() == 0u64) {
|
|
__builtin_memory_grow(1u64);
|
|
}
|
|
|
|
raw(u32, 0x0u64) = 1u32;
|
|
raw(u64, 0x04u64) = 69u64;
|
|
|
|
u64[] array = raw(u64[], 0x0u64);
|
|
array[0] = 1u64;
|
|
array[1] = 2u64;
|
|
|
|
return array[0] + array[1];
|
|
}
|
|
|
|
void array2() {
|
|
u64[] array = raw(u64[], 0x0u64);
|
|
array[0] = 1u64;
|
|
}
|
|
|
|
u64[] arrayReturn() {
|
|
if(__builtin_memory_size() == 0u64) {
|
|
__builtin_memory_grow(1u64);
|
|
}
|
|
|
|
return raw(u64[], 0x0u64);
|
|
}
|