Skip to content

Commit

Permalink
temp nil return
Browse files Browse the repository at this point in the history
  • Loading branch information
TAdev0 committed Sep 9, 2024
1 parent 9491562 commit d7381c3
Show file tree
Hide file tree
Showing 37 changed files with 51,023 additions and 1 deletion.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
217 changes: 217 additions & 0 deletions integration_tests/cairo_zero_hint_tests/alloc_compiled.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
{
"attributes": [],
"builtins": [],
"compiler_version": "0.13.1",
"data": [
"0x40780017fff7fff",
"0x0",
"0x1104800180018000",
"0x7",
"0x10780017fff7fff",
"0x0",
"0x40780017fff7fff",
"0x1",
"0x208b7fff7fff7ffe",
"0x40780017fff7fff",
"0x1",
"0x1104800180018000",
"0x800000000000010fffffffffffffffffffffffffffffffffffffffffffffffc",
"0x40137fff7fff8000",
"0x480680017fff8000",
"0x36",
"0x4002800080007fff",
"0x480680017fff8000",
"0x4d",
"0x4002800180007fff",
"0x208b7fff7fff7ffe"
],
"debug_info": null,
"hints": {
"6": [
{
"accessible_scopes": [
"starkware.cairo.common.alloc",
"starkware.cairo.common.alloc.alloc"
],
"code": "memory[ap] = segments.add()",
"flow_tracking_data": {
"ap_tracking": {
"group": 2,
"offset": 0
},
"reference_ids": {}
}
}
]
},
"identifiers": {
"__main__.Pair": {
"full_name": "__main__.Pair",
"members": {
"a": {
"cairo_type": "felt",
"offset": 0
},
"b": {
"cairo_type": "felt",
"offset": 1
}
},
"size": 2,
"type": "struct"
},
"__main__.__end__": {
"pc": 4,
"type": "label"
},
"__main__.__start__": {
"pc": 0,
"type": "label"
},
"__main__.alloc": {
"destination": "starkware.cairo.common.alloc.alloc",
"type": "alias"
},
"__main__.main": {
"decorators": [],
"pc": 9,
"type": "function"
},
"__main__.main.Args": {
"full_name": "__main__.main.Args",
"members": {},
"size": 0,
"type": "struct"
},
"__main__.main.ImplicitArgs": {
"full_name": "__main__.main.ImplicitArgs",
"members": {},
"size": 0,
"type": "struct"
},
"__main__.main.Return": {
"cairo_type": "()",
"type": "type_definition"
},
"__main__.main.SIZEOF_LOCALS": {
"type": "const",
"value": 1
},
"__main__.main.__temp0": {
"cairo_type": "felt",
"full_name": "__main__.main.__temp0",
"references": [
{
"ap_tracking_data": {
"group": 3,
"offset": 5
},
"pc": 16,
"value": "[cast(ap + (-1), felt*)]"
}
],
"type": "reference"
},
"__main__.main.__temp1": {
"cairo_type": "felt",
"full_name": "__main__.main.__temp1",
"references": [
{
"ap_tracking_data": {
"group": 3,
"offset": 6
},
"pc": 19,
"value": "[cast(ap + (-1), felt*)]"
}
],
"type": "reference"
},
"__main__.main.p": {
"cairo_type": "__main__.Pair*",
"full_name": "__main__.main.p",
"references": [
{
"ap_tracking_data": {
"group": 3,
"offset": 4
},
"pc": 13,
"value": "[cast(ap + (-1), __main__.Pair**)]"
},
{
"ap_tracking_data": {
"group": 3,
"offset": 4
},
"pc": 14,
"value": "[cast(fp, __main__.Pair**)]"
}
],
"type": "reference"
},
"starkware.cairo.common.alloc.alloc": {
"decorators": [],
"pc": 6,
"type": "function"
},
"starkware.cairo.common.alloc.alloc.Args": {
"full_name": "starkware.cairo.common.alloc.alloc.Args",
"members": {},
"size": 0,
"type": "struct"
},
"starkware.cairo.common.alloc.alloc.ImplicitArgs": {
"full_name": "starkware.cairo.common.alloc.alloc.ImplicitArgs",
"members": {},
"size": 0,
"type": "struct"
},
"starkware.cairo.common.alloc.alloc.Return": {
"cairo_type": "(ptr: felt*)",
"type": "type_definition"
},
"starkware.cairo.common.alloc.alloc.SIZEOF_LOCALS": {
"type": "const",
"value": 0
}
},
"main_scope": "__main__",
"prime": "0x800000000000011000000000000000000000000000000000000000000000001",
"reference_manager": {
"references": [
{
"ap_tracking_data": {
"group": 3,
"offset": 4
},
"pc": 13,
"value": "[cast(ap + (-1), __main__.Pair**)]"
},
{
"ap_tracking_data": {
"group": 3,
"offset": 4
},
"pc": 14,
"value": "[cast(fp, __main__.Pair**)]"
},
{
"ap_tracking_data": {
"group": 3,
"offset": 5
},
"pc": 16,
"value": "[cast(ap + (-1), felt*)]"
},
{
"ap_tracking_data": {
"group": 3,
"offset": 6
},
"pc": 19,
"value": "[cast(ap + (-1), felt*)]"
}
]
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit d7381c3

Please sign in to comment.