Files
aji/docs/design/contract-report-vector.json
T

76 lines
3.7 KiB
JSON

{
"rows": [
{
"site": {"function":"f","block":"entry","inst":0,"source":null},
"kind": "pre", "scope": "boundary", "predicate": "always_true", "callback": null,
"bindings": [], "status": "PROVEN_STATICALLY",
"proof": {"result":"proven","reason":"closed_scalar","cost":4,"limit":1048576},
"enforcement": "runtime",
"boundaries": [{"function":"f","block":"entry","inst":0,"source":null}]
},
{
"site": {"function":"f","block":"entry","inst":1,"source":null},
"kind": "pre", "scope": "boundary", "predicate": "positive", "callback": null,
"bindings": [{"kind":"parameter","name":"x","view":"value"}],
"status": "ASSUMED_UNSAFE",
"proof": {"result":"not_attempted","reason":"not_attempted","cost":null,"limit":1048576},
"enforcement": "assumed_unsafe",
"boundaries": [{"function":"f","block":"entry","inst":1,"source":null}]
},
{
"site": {"function":"f","block":"entry","inst":2,"source":null},
"kind": "pre", "scope": "boundary", "predicate": "positive", "callback": null,
"bindings": [{"kind":"parameter","name":"y","view":"value"}],
"status": "UNPROVEN",
"proof": {"result":"not_attempted","reason":"not_attempted","cost":null,"limit":1048576},
"enforcement": "documented",
"boundaries": [{"function":"f","block":"entry","inst":2,"source":null}]
},
{
"site": {"function":"f","block":"entry","inst":4,"source":null},
"kind": "post", "scope": "boundary", "predicate": "same", "callback": null,
"bindings": [{"kind":"snapshot","name":"old","view":"value"},{"kind":"result","name":null,"view":"value"}],
"status": "CHECKED_AT_RUNTIME",
"proof": {"result":"none","reason":"not_established","cost":16,"limit":1048576},
"enforcement": "runtime",
"boundaries": [{"function":"f","block":"left","inst":0,"source":null},{"function":"f","block":"right","inst":0,"source":null}]
},
{
"site": {"function":"g","block":"entry","inst":2,"source":null},
"kind": "modify", "scope": "value", "predicate": "valid_state", "callback": "update_state",
"bindings": [{"kind":"representation","name":"state","view":"ref"}],
"status": "CHECKED_AT_RUNTIME",
"proof": {"result":"none","reason":"update","cost":null,"limit":1048576},
"enforcement": "runtime",
"boundaries": [{"function":"g","block":"entry","inst":2,"source":null}]
},
{
"site": {"function":"h","block":"entry","inst":3,"source":null},
"kind": "make", "scope": "value", "predicate": "within", "callback": null,
"bindings": [{"kind":"representation","name":"raw","view":"ref"}],
"status": "PROVEN_STATICALLY",
"proof": {"result":"proven","reason":"closed_scalar","cost":28,"limit":1048576},
"enforcement": "runtime",
"boundaries": [{"function":"h","block":"entry","inst":3,"source":null}]
}
],
"totals": {"PROVEN_STATICALLY":2,"CHECKED_AT_RUNTIME":2,"ASSUMED_UNSAFE":1,"UNPROVEN":1},
"types": [
{
"type": "checked<@StateRep, @valid_state>", "predicate": "valid_state", "status": "CHECKED_AT_RUNTIME",
"proof": {"result":"none","reason":"unsupported_predicate","cost":null,"limit":1048576},
"enforcement": "construction_update", "declarations": []
},
{
"type": "checked<@Rep, @within>", "predicate": "within", "status": "CHECKED_AT_RUNTIME",
"proof": {"result":"none","reason":"not_established","cost":23,"limit":1048576},
"enforcement": "construction_update", "declarations": []
},
{
"type": "checked<u64, @always>", "predicate": "always", "status": "PROVEN_STATICALLY",
"proof": {"result":"proven","reason":"closed_scalar","cost":5,"limit":1048576},
"enforcement": "construction_update", "declarations": []
}
]
}