leo/parser/tests/serialization/expected_leo_ast/linear_regression.json

2368 lines
137 KiB
JSON

{
"name": "",
"expected_input": [],
"imports": [],
"circuits": {
"{\"name\":\"Point\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":14,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\"circuit Point {\\\"}\"}": {
"circuit_name": "{\"name\":\"Point\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":14,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\"circuit Point {\\\"}\"}",
"members": [
{
"CircuitVariable": [
"{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":2,\\\"line_stop\\\":2,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x: i32,\\\"}\"}",
{
"IntegerType": "I32"
}
]
},
{
"CircuitVariable": [
"{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" y: i32,\\\"}\"}",
{
"IntegerType": "I32"
}
]
},
{
"CircuitFunction": {
"annotations": [],
"identifier": "{\"name\":\"new\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":14,\\\"col_stop\\\":17,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" function new(x: i32, y: i32) -> Self { \\\"}\"}",
"input": [
{
"Variable": {
"identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":18,\\\"col_stop\\\":19,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" function new(x: i32, y: i32) -> Self { \\\"}\"}",
"const_": false,
"mutable": true,
"type_": {
"IntegerType": "I32"
},
"span": {
"line_start": 5,
"line_stop": 5,
"col_start": 18,
"col_stop": 19,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function new(x: i32, y: i32) -> Self { "
}
}
},
{
"Variable": {
"identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":26,\\\"col_stop\\\":27,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" function new(x: i32, y: i32) -> Self { \\\"}\"}",
"const_": false,
"mutable": true,
"type_": {
"IntegerType": "I32"
},
"span": {
"line_start": 5,
"line_stop": 5,
"col_start": 26,
"col_stop": 27,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function new(x: i32, y: i32) -> Self { "
}
}
}
],
"output": "SelfType",
"block": {
"statements": [
{
"Return": {
"expression": {
"CircuitInit": {
"name": "{\"name\":\"Self\",\"span\":\"{\\\"line_start\\\":6,\\\"line_stop\\\":6,\\\"col_start\\\":16,\\\"col_stop\\\":20,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return Self { x, y };\\\"}\"}",
"members": [
{
"identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":6,\\\"line_stop\\\":6,\\\"col_start\\\":23,\\\"col_stop\\\":24,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return Self { x, y };\\\"}\"}",
"expression": null
},
{
"identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":6,\\\"line_stop\\\":6,\\\"col_start\\\":26,\\\"col_stop\\\":27,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return Self { x, y };\\\"}\"}",
"expression": null
}
],
"span": {
"line_start": 6,
"line_stop": 6,
"col_start": 16,
"col_stop": 29,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " return Self { x, y };"
}
}
},
"span": {
"line_start": 6,
"line_stop": 6,
"col_start": 9,
"col_stop": 29,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " return Self { x, y };"
}
}
}
],
"span": {
"line_start": 5,
"line_stop": 7,
"col_start": 42,
"col_stop": 6,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function new(x: i32, y: i32) -> Self { \n...\n }"
}
},
"span": {
"line_start": 5,
"line_stop": 7,
"col_start": 5,
"col_stop": 6,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function new(x: i32, y: i32) -> Self { \n...\n }"
}
}
}
]
},
"{\"name\":\"LinearRegression\",\"span\":\"{\\\"line_start\\\":10,\\\"line_stop\\\":10,\\\"col_start\\\":9,\\\"col_stop\\\":25,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\"circuit LinearRegression {\\\"}\"}": {
"circuit_name": "{\"name\":\"LinearRegression\",\"span\":\"{\\\"line_start\\\":10,\\\"line_stop\\\":10,\\\"col_start\\\":9,\\\"col_stop\\\":25,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\"circuit LinearRegression {\\\"}\"}",
"members": [
{
"CircuitVariable": [
"{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":11,\\\"line_stop\\\":11,\\\"col_start\\\":5,\\\"col_stop\\\":11,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" points: [Point; 5],\\\"}\"}",
{
"Array": [
{
"Circuit": "{\"name\":\"Point\",\"span\":\"{\\\"line_start\\\":11,\\\"line_stop\\\":11,\\\"col_start\\\":14,\\\"col_stop\\\":19,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" points: [Point; 5],\\\"}\"}"
},
[
{
"value": "5"
}
]
]
}
]
},
{
"CircuitFunction": {
"annotations": [],
"identifier": "{\"name\":\"new\",\"span\":\"{\\\"line_start\\\":14,\\\"line_stop\\\":14,\\\"col_start\\\":14,\\\"col_stop\\\":17,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" function new(points: [Point; 5]) -> Self { \\\"}\"}",
"input": [
{
"Variable": {
"identifier": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":14,\\\"line_stop\\\":14,\\\"col_start\\\":18,\\\"col_stop\\\":24,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" function new(points: [Point; 5]) -> Self { \\\"}\"}",
"const_": false,
"mutable": true,
"type_": {
"Array": [
{
"Circuit": "{\"name\":\"Point\",\"span\":\"{\\\"line_start\\\":14,\\\"line_stop\\\":14,\\\"col_start\\\":27,\\\"col_stop\\\":32,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" function new(points: [Point; 5]) -> Self { \\\"}\"}"
},
[
{
"value": "5"
}
]
]
},
"span": {
"line_start": 14,
"line_stop": 14,
"col_start": 18,
"col_stop": 24,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function new(points: [Point; 5]) -> Self { "
}
}
}
],
"output": "SelfType",
"block": {
"statements": [
{
"Return": {
"expression": {
"CircuitInit": {
"name": "{\"name\":\"Self\",\"span\":\"{\\\"line_start\\\":15,\\\"line_stop\\\":15,\\\"col_start\\\":16,\\\"col_stop\\\":20,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return Self { points };\\\"}\"}",
"members": [
{
"identifier": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":15,\\\"line_stop\\\":15,\\\"col_start\\\":23,\\\"col_stop\\\":29,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return Self { points };\\\"}\"}",
"expression": null
}
],
"span": {
"line_start": 15,
"line_stop": 15,
"col_start": 16,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " return Self { points };"
}
}
},
"span": {
"line_start": 15,
"line_stop": 15,
"col_start": 9,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " return Self { points };"
}
}
}
],
"span": {
"line_start": 14,
"line_stop": 16,
"col_start": 46,
"col_stop": 6,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function new(points: [Point; 5]) -> Self { \n...\n }"
}
},
"span": {
"line_start": 14,
"line_stop": 16,
"col_start": 5,
"col_stop": 6,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function new(points: [Point; 5]) -> Self { \n...\n }"
}
}
},
{
"CircuitFunction": {
"annotations": [],
"identifier": "{\"name\":\"slope\",\"span\":\"{\\\"line_start\\\":19,\\\"line_stop\\\":19,\\\"col_start\\\":14,\\\"col_stop\\\":19,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" function slope(self) -> i32 { \\\"}\"}",
"input": [
{
"SelfKeyword": "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":19,\\\"line_stop\\\":19,\\\"col_start\\\":20,\\\"col_stop\\\":24,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" function slope(self) -> i32 { \\\"}\"}"
}
],
"output": {
"IntegerType": "I32"
},
"block": {
"statements": [
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"num_points\",\"span\":\"{\\\"line_start\\\":21,\\\"line_stop\\\":21,\\\"col_start\\\":13,\\\"col_stop\\\":23,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let num_points = 5i32;\\\"}\"}",
"span": {
"line_start": 21,
"line_stop": 21,
"col_start": 13,
"col_stop": 23,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let num_points = 5i32;"
}
}
],
"type_": null,
"value": {
"Value": {
"Integer": [
"I32",
"5",
{
"line_start": 21,
"line_stop": 21,
"col_start": 26,
"col_stop": 30,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let num_points = 5i32;"
}
]
}
},
"span": {
"line_start": 21,
"line_stop": 21,
"col_start": 9,
"col_stop": 30,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let num_points = 5i32;"
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"x_sum\",\"span\":\"{\\\"line_start\\\":23,\\\"line_stop\\\":23,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let x_sum = 0i32; \\\"}\"}",
"span": {
"line_start": 23,
"line_stop": 23,
"col_start": 13,
"col_stop": 18,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let x_sum = 0i32; "
}
}
],
"type_": null,
"value": {
"Value": {
"Integer": [
"I32",
"0",
{
"line_start": 23,
"line_stop": 23,
"col_start": 21,
"col_stop": 25,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let x_sum = 0i32; "
}
]
}
},
"span": {
"line_start": 23,
"line_stop": 23,
"col_start": 9,
"col_stop": 25,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let x_sum = 0i32; "
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"y_sum\",\"span\":\"{\\\"line_start\\\":24,\\\"line_stop\\\":24,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let y_sum = 0i32; \\\"}\"}",
"span": {
"line_start": 24,
"line_stop": 24,
"col_start": 13,
"col_stop": 18,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let y_sum = 0i32; "
}
}
],
"type_": null,
"value": {
"Value": {
"Integer": [
"I32",
"0",
{
"line_start": 24,
"line_stop": 24,
"col_start": 21,
"col_stop": 25,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let y_sum = 0i32; "
}
]
}
},
"span": {
"line_start": 24,
"line_stop": 24,
"col_start": 9,
"col_stop": 25,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let y_sum = 0i32; "
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"xy_sum\",\"span\":\"{\\\"line_start\\\":25,\\\"line_stop\\\":25,\\\"col_start\\\":13,\\\"col_stop\\\":19,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let xy_sum = 0i32; \\\"}\"}",
"span": {
"line_start": 25,
"line_stop": 25,
"col_start": 13,
"col_stop": 19,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let xy_sum = 0i32; "
}
}
],
"type_": null,
"value": {
"Value": {
"Integer": [
"I32",
"0",
{
"line_start": 25,
"line_stop": 25,
"col_start": 22,
"col_stop": 26,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let xy_sum = 0i32; "
}
]
}
},
"span": {
"line_start": 25,
"line_stop": 25,
"col_start": 9,
"col_stop": 26,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let xy_sum = 0i32; "
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"x2_sum\",\"span\":\"{\\\"line_start\\\":26,\\\"line_stop\\\":26,\\\"col_start\\\":13,\\\"col_stop\\\":19,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let x2_sum = 0i32; \\\"}\"}",
"span": {
"line_start": 26,
"line_stop": 26,
"col_start": 13,
"col_stop": 19,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let x2_sum = 0i32; "
}
}
],
"type_": null,
"value": {
"Value": {
"Integer": [
"I32",
"0",
{
"line_start": 26,
"line_stop": 26,
"col_start": 22,
"col_stop": 26,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let x2_sum = 0i32; "
}
]
}
},
"span": {
"line_start": 26,
"line_stop": 26,
"col_start": 9,
"col_stop": 26,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let x2_sum = 0i32; "
}
}
},
{
"Iteration": {
"variable": "{\"name\":\"i\",\"span\":\"{\\\"line_start\\\":27,\\\"line_stop\\\":27,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" for i in 0..5 {\\\"}\"}",
"start": {
"Value": {
"Implicit": [
"0",
{
"line_start": 27,
"line_stop": 27,
"col_start": 18,
"col_stop": 19,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " for i in 0..5 {"
}
]
}
},
"stop": {
"Value": {
"Implicit": [
"5",
{
"line_start": 27,
"line_stop": 27,
"col_start": 21,
"col_stop": 22,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " for i in 0..5 {"
}
]
}
},
"inclusive": false,
"block": {
"statements": [
{
"Assign": {
"operation": "Add",
"assignee": {
"identifier": "{\"name\":\"x_sum\",\"span\":\"{\\\"line_start\\\":28,\\\"line_stop\\\":28,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x_sum += self.points[i].x;\\\"}\"}",
"accesses": [],
"span": {
"line_start": 28,
"line_stop": 28,
"col_start": 13,
"col_stop": 18,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x_sum += self.points[i].x;"
}
},
"value": {
"CircuitMemberAccess": {
"circuit": {
"ArrayAccess": {
"array": {
"CircuitMemberAccess": {
"circuit": {
"Identifier": "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":28,\\\"line_stop\\\":28,\\\"col_start\\\":22,\\\"col_stop\\\":26,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x_sum += self.points[i].x;\\\"}\"}"
},
"name": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":28,\\\"line_stop\\\":28,\\\"col_start\\\":27,\\\"col_stop\\\":33,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x_sum += self.points[i].x;\\\"}\"}",
"span": {
"line_start": 28,
"line_stop": 28,
"col_start": 22,
"col_stop": 33,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x_sum += self.points[i].x;"
}
}
},
"index": {
"Identifier": "{\"name\":\"i\",\"span\":\"{\\\"line_start\\\":28,\\\"line_stop\\\":28,\\\"col_start\\\":34,\\\"col_stop\\\":35,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x_sum += self.points[i].x;\\\"}\"}"
},
"span": {
"line_start": 28,
"line_stop": 28,
"col_start": 22,
"col_stop": 36,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x_sum += self.points[i].x;"
}
}
},
"name": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":28,\\\"line_stop\\\":28,\\\"col_start\\\":37,\\\"col_stop\\\":38,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x_sum += self.points[i].x;\\\"}\"}",
"span": {
"line_start": 28,
"line_stop": 28,
"col_start": 22,
"col_stop": 38,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x_sum += self.points[i].x;"
}
}
},
"span": {
"line_start": 28,
"line_stop": 28,
"col_start": 13,
"col_stop": 38,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x_sum += self.points[i].x;"
}
}
},
{
"Assign": {
"operation": "Add",
"assignee": {
"identifier": "{\"name\":\"y_sum\",\"span\":\"{\\\"line_start\\\":29,\\\"line_stop\\\":29,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" y_sum += self.points[i].y;\\\"}\"}",
"accesses": [],
"span": {
"line_start": 29,
"line_stop": 29,
"col_start": 13,
"col_stop": 18,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " y_sum += self.points[i].y;"
}
},
"value": {
"CircuitMemberAccess": {
"circuit": {
"ArrayAccess": {
"array": {
"CircuitMemberAccess": {
"circuit": {
"Identifier": "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":29,\\\"line_stop\\\":29,\\\"col_start\\\":22,\\\"col_stop\\\":26,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" y_sum += self.points[i].y;\\\"}\"}"
},
"name": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":29,\\\"line_stop\\\":29,\\\"col_start\\\":27,\\\"col_stop\\\":33,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" y_sum += self.points[i].y;\\\"}\"}",
"span": {
"line_start": 29,
"line_stop": 29,
"col_start": 22,
"col_stop": 33,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " y_sum += self.points[i].y;"
}
}
},
"index": {
"Identifier": "{\"name\":\"i\",\"span\":\"{\\\"line_start\\\":29,\\\"line_stop\\\":29,\\\"col_start\\\":34,\\\"col_stop\\\":35,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" y_sum += self.points[i].y;\\\"}\"}"
},
"span": {
"line_start": 29,
"line_stop": 29,
"col_start": 22,
"col_stop": 36,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " y_sum += self.points[i].y;"
}
}
},
"name": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":29,\\\"line_stop\\\":29,\\\"col_start\\\":37,\\\"col_stop\\\":38,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" y_sum += self.points[i].y;\\\"}\"}",
"span": {
"line_start": 29,
"line_stop": 29,
"col_start": 22,
"col_stop": 38,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " y_sum += self.points[i].y;"
}
}
},
"span": {
"line_start": 29,
"line_stop": 29,
"col_start": 13,
"col_stop": 38,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " y_sum += self.points[i].y;"
}
}
},
{
"Assign": {
"operation": "Add",
"assignee": {
"identifier": "{\"name\":\"xy_sum\",\"span\":\"{\\\"line_start\\\":30,\\\"line_stop\\\":30,\\\"col_start\\\":13,\\\"col_stop\\\":19,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" xy_sum += self.points[i].x * self.points[i].y;\\\"}\"}",
"accesses": [],
"span": {
"line_start": 30,
"line_stop": 30,
"col_start": 13,
"col_stop": 19,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " xy_sum += self.points[i].x * self.points[i].y;"
}
},
"value": {
"Binary": {
"left": {
"CircuitMemberAccess": {
"circuit": {
"ArrayAccess": {
"array": {
"CircuitMemberAccess": {
"circuit": {
"Identifier": "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":30,\\\"line_stop\\\":30,\\\"col_start\\\":23,\\\"col_stop\\\":27,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" xy_sum += self.points[i].x * self.points[i].y;\\\"}\"}"
},
"name": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":30,\\\"line_stop\\\":30,\\\"col_start\\\":28,\\\"col_stop\\\":34,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" xy_sum += self.points[i].x * self.points[i].y;\\\"}\"}",
"span": {
"line_start": 30,
"line_stop": 30,
"col_start": 23,
"col_stop": 34,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " xy_sum += self.points[i].x * self.points[i].y;"
}
}
},
"index": {
"Identifier": "{\"name\":\"i\",\"span\":\"{\\\"line_start\\\":30,\\\"line_stop\\\":30,\\\"col_start\\\":35,\\\"col_stop\\\":36,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" xy_sum += self.points[i].x * self.points[i].y;\\\"}\"}"
},
"span": {
"line_start": 30,
"line_stop": 30,
"col_start": 23,
"col_stop": 37,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " xy_sum += self.points[i].x * self.points[i].y;"
}
}
},
"name": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":30,\\\"line_stop\\\":30,\\\"col_start\\\":38,\\\"col_stop\\\":39,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" xy_sum += self.points[i].x * self.points[i].y;\\\"}\"}",
"span": {
"line_start": 30,
"line_stop": 30,
"col_start": 23,
"col_stop": 39,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " xy_sum += self.points[i].x * self.points[i].y;"
}
}
},
"right": {
"CircuitMemberAccess": {
"circuit": {
"ArrayAccess": {
"array": {
"CircuitMemberAccess": {
"circuit": {
"Identifier": "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":30,\\\"line_stop\\\":30,\\\"col_start\\\":42,\\\"col_stop\\\":46,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" xy_sum += self.points[i].x * self.points[i].y;\\\"}\"}"
},
"name": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":30,\\\"line_stop\\\":30,\\\"col_start\\\":47,\\\"col_stop\\\":53,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" xy_sum += self.points[i].x * self.points[i].y;\\\"}\"}",
"span": {
"line_start": 30,
"line_stop": 30,
"col_start": 42,
"col_stop": 53,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " xy_sum += self.points[i].x * self.points[i].y;"
}
}
},
"index": {
"Identifier": "{\"name\":\"i\",\"span\":\"{\\\"line_start\\\":30,\\\"line_stop\\\":30,\\\"col_start\\\":54,\\\"col_stop\\\":55,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" xy_sum += self.points[i].x * self.points[i].y;\\\"}\"}"
},
"span": {
"line_start": 30,
"line_stop": 30,
"col_start": 42,
"col_stop": 56,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " xy_sum += self.points[i].x * self.points[i].y;"
}
}
},
"name": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":30,\\\"line_stop\\\":30,\\\"col_start\\\":57,\\\"col_stop\\\":58,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" xy_sum += self.points[i].x * self.points[i].y;\\\"}\"}",
"span": {
"line_start": 30,
"line_stop": 30,
"col_start": 42,
"col_stop": 58,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " xy_sum += self.points[i].x * self.points[i].y;"
}
}
},
"op": "Mul",
"span": {
"line_start": 30,
"line_stop": 30,
"col_start": 23,
"col_stop": 58,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " xy_sum += self.points[i].x * self.points[i].y;"
}
}
},
"span": {
"line_start": 30,
"line_stop": 30,
"col_start": 13,
"col_stop": 58,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " xy_sum += self.points[i].x * self.points[i].y;"
}
}
},
{
"Assign": {
"operation": "Add",
"assignee": {
"identifier": "{\"name\":\"x2_sum\",\"span\":\"{\\\"line_start\\\":31,\\\"line_stop\\\":31,\\\"col_start\\\":13,\\\"col_stop\\\":19,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x2_sum += self.points[i].x * self.points[i].x;\\\"}\"}",
"accesses": [],
"span": {
"line_start": 31,
"line_stop": 31,
"col_start": 13,
"col_stop": 19,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x2_sum += self.points[i].x * self.points[i].x;"
}
},
"value": {
"Binary": {
"left": {
"CircuitMemberAccess": {
"circuit": {
"ArrayAccess": {
"array": {
"CircuitMemberAccess": {
"circuit": {
"Identifier": "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":31,\\\"line_stop\\\":31,\\\"col_start\\\":23,\\\"col_stop\\\":27,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x2_sum += self.points[i].x * self.points[i].x;\\\"}\"}"
},
"name": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":31,\\\"line_stop\\\":31,\\\"col_start\\\":28,\\\"col_stop\\\":34,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x2_sum += self.points[i].x * self.points[i].x;\\\"}\"}",
"span": {
"line_start": 31,
"line_stop": 31,
"col_start": 23,
"col_stop": 34,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x2_sum += self.points[i].x * self.points[i].x;"
}
}
},
"index": {
"Identifier": "{\"name\":\"i\",\"span\":\"{\\\"line_start\\\":31,\\\"line_stop\\\":31,\\\"col_start\\\":35,\\\"col_stop\\\":36,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x2_sum += self.points[i].x * self.points[i].x;\\\"}\"}"
},
"span": {
"line_start": 31,
"line_stop": 31,
"col_start": 23,
"col_stop": 37,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x2_sum += self.points[i].x * self.points[i].x;"
}
}
},
"name": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":31,\\\"line_stop\\\":31,\\\"col_start\\\":38,\\\"col_stop\\\":39,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x2_sum += self.points[i].x * self.points[i].x;\\\"}\"}",
"span": {
"line_start": 31,
"line_stop": 31,
"col_start": 23,
"col_stop": 39,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x2_sum += self.points[i].x * self.points[i].x;"
}
}
},
"right": {
"CircuitMemberAccess": {
"circuit": {
"ArrayAccess": {
"array": {
"CircuitMemberAccess": {
"circuit": {
"Identifier": "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":31,\\\"line_stop\\\":31,\\\"col_start\\\":42,\\\"col_stop\\\":46,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x2_sum += self.points[i].x * self.points[i].x;\\\"}\"}"
},
"name": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":31,\\\"line_stop\\\":31,\\\"col_start\\\":47,\\\"col_stop\\\":53,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x2_sum += self.points[i].x * self.points[i].x;\\\"}\"}",
"span": {
"line_start": 31,
"line_stop": 31,
"col_start": 42,
"col_stop": 53,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x2_sum += self.points[i].x * self.points[i].x;"
}
}
},
"index": {
"Identifier": "{\"name\":\"i\",\"span\":\"{\\\"line_start\\\":31,\\\"line_stop\\\":31,\\\"col_start\\\":54,\\\"col_stop\\\":55,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x2_sum += self.points[i].x * self.points[i].x;\\\"}\"}"
},
"span": {
"line_start": 31,
"line_stop": 31,
"col_start": 42,
"col_stop": 56,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x2_sum += self.points[i].x * self.points[i].x;"
}
}
},
"name": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":31,\\\"line_stop\\\":31,\\\"col_start\\\":57,\\\"col_stop\\\":58,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x2_sum += self.points[i].x * self.points[i].x;\\\"}\"}",
"span": {
"line_start": 31,
"line_stop": 31,
"col_start": 42,
"col_stop": 58,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x2_sum += self.points[i].x * self.points[i].x;"
}
}
},
"op": "Mul",
"span": {
"line_start": 31,
"line_stop": 31,
"col_start": 23,
"col_stop": 58,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x2_sum += self.points[i].x * self.points[i].x;"
}
}
},
"span": {
"line_start": 31,
"line_stop": 31,
"col_start": 13,
"col_stop": 58,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x2_sum += self.points[i].x * self.points[i].x;"
}
}
}
],
"span": {
"line_start": 27,
"line_stop": 32,
"col_start": 23,
"col_stop": 10,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " for i in 0..5 {\n...\n }"
}
},
"span": {
"line_start": 27,
"line_stop": 32,
"col_start": 9,
"col_stop": 10,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " for i in 0..5 {\n...\n }\n\n\n"
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"numerator\",\"span\":\"{\\\"line_start\\\":33,\\\"line_stop\\\":33,\\\"col_start\\\":13,\\\"col_stop\\\":22,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let numerator = (num_points * xy_sum) - (x_sum * y_sum); \\\"}\"}",
"span": {
"line_start": 33,
"line_stop": 33,
"col_start": 13,
"col_stop": 22,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let numerator = (num_points * xy_sum) - (x_sum * y_sum); "
}
}
],
"type_": null,
"value": {
"Binary": {
"left": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"num_points\",\"span\":\"{\\\"line_start\\\":33,\\\"line_stop\\\":33,\\\"col_start\\\":26,\\\"col_stop\\\":36,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let numerator = (num_points * xy_sum) - (x_sum * y_sum); \\\"}\"}"
},
"right": {
"Identifier": "{\"name\":\"xy_sum\",\"span\":\"{\\\"line_start\\\":33,\\\"line_stop\\\":33,\\\"col_start\\\":39,\\\"col_stop\\\":45,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let numerator = (num_points * xy_sum) - (x_sum * y_sum); \\\"}\"}"
},
"op": "Mul",
"span": {
"line_start": 33,
"line_stop": 33,
"col_start": 26,
"col_stop": 45,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let numerator = (num_points * xy_sum) - (x_sum * y_sum); "
}
}
},
"right": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"x_sum\",\"span\":\"{\\\"line_start\\\":33,\\\"line_stop\\\":33,\\\"col_start\\\":50,\\\"col_stop\\\":55,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let numerator = (num_points * xy_sum) - (x_sum * y_sum); \\\"}\"}"
},
"right": {
"Identifier": "{\"name\":\"y_sum\",\"span\":\"{\\\"line_start\\\":33,\\\"line_stop\\\":33,\\\"col_start\\\":58,\\\"col_stop\\\":63,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let numerator = (num_points * xy_sum) - (x_sum * y_sum); \\\"}\"}"
},
"op": "Mul",
"span": {
"line_start": 33,
"line_stop": 33,
"col_start": 50,
"col_stop": 63,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let numerator = (num_points * xy_sum) - (x_sum * y_sum); "
}
}
},
"op": "Sub",
"span": {
"line_start": 33,
"line_stop": 33,
"col_start": 26,
"col_stop": 63,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let numerator = (num_points * xy_sum) - (x_sum * y_sum); "
}
}
},
"span": {
"line_start": 33,
"line_stop": 33,
"col_start": 9,
"col_stop": 63,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let numerator = (num_points * xy_sum) - (x_sum * y_sum); "
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"denominator\",\"span\":\"{\\\"line_start\\\":34,\\\"line_stop\\\":34,\\\"col_start\\\":13,\\\"col_stop\\\":24,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let denominator = (num_points * x2_sum) - (x_sum * x_sum);\\\"}\"}",
"span": {
"line_start": 34,
"line_stop": 34,
"col_start": 13,
"col_stop": 24,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let denominator = (num_points * x2_sum) - (x_sum * x_sum);"
}
}
],
"type_": null,
"value": {
"Binary": {
"left": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"num_points\",\"span\":\"{\\\"line_start\\\":34,\\\"line_stop\\\":34,\\\"col_start\\\":28,\\\"col_stop\\\":38,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let denominator = (num_points * x2_sum) - (x_sum * x_sum);\\\"}\"}"
},
"right": {
"Identifier": "{\"name\":\"x2_sum\",\"span\":\"{\\\"line_start\\\":34,\\\"line_stop\\\":34,\\\"col_start\\\":41,\\\"col_stop\\\":47,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let denominator = (num_points * x2_sum) - (x_sum * x_sum);\\\"}\"}"
},
"op": "Mul",
"span": {
"line_start": 34,
"line_stop": 34,
"col_start": 28,
"col_stop": 47,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let denominator = (num_points * x2_sum) - (x_sum * x_sum);"
}
}
},
"right": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"x_sum\",\"span\":\"{\\\"line_start\\\":34,\\\"line_stop\\\":34,\\\"col_start\\\":52,\\\"col_stop\\\":57,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let denominator = (num_points * x2_sum) - (x_sum * x_sum);\\\"}\"}"
},
"right": {
"Identifier": "{\"name\":\"x_sum\",\"span\":\"{\\\"line_start\\\":34,\\\"line_stop\\\":34,\\\"col_start\\\":60,\\\"col_stop\\\":65,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let denominator = (num_points * x2_sum) - (x_sum * x_sum);\\\"}\"}"
},
"op": "Mul",
"span": {
"line_start": 34,
"line_stop": 34,
"col_start": 52,
"col_stop": 65,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let denominator = (num_points * x2_sum) - (x_sum * x_sum);"
}
}
},
"op": "Sub",
"span": {
"line_start": 34,
"line_stop": 34,
"col_start": 28,
"col_stop": 65,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let denominator = (num_points * x2_sum) - (x_sum * x_sum);"
}
}
},
"span": {
"line_start": 34,
"line_stop": 34,
"col_start": 9,
"col_stop": 65,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let denominator = (num_points * x2_sum) - (x_sum * x_sum);"
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"slope\",\"span\":\"{\\\"line_start\\\":35,\\\"line_stop\\\":35,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let slope = numerator / denominator;\\\"}\"}",
"span": {
"line_start": 35,
"line_stop": 35,
"col_start": 13,
"col_stop": 18,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let slope = numerator / denominator;"
}
}
],
"type_": null,
"value": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"numerator\",\"span\":\"{\\\"line_start\\\":35,\\\"line_stop\\\":35,\\\"col_start\\\":21,\\\"col_stop\\\":30,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let slope = numerator / denominator;\\\"}\"}"
},
"right": {
"Identifier": "{\"name\":\"denominator\",\"span\":\"{\\\"line_start\\\":35,\\\"line_stop\\\":35,\\\"col_start\\\":33,\\\"col_stop\\\":44,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let slope = numerator / denominator;\\\"}\"}"
},
"op": "Div",
"span": {
"line_start": 35,
"line_stop": 35,
"col_start": 21,
"col_stop": 44,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let slope = numerator / denominator;"
}
}
},
"span": {
"line_start": 35,
"line_stop": 35,
"col_start": 9,
"col_stop": 44,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let slope = numerator / denominator;"
}
}
},
{
"Return": {
"expression": {
"Identifier": "{\"name\":\"slope\",\"span\":\"{\\\"line_start\\\":36,\\\"line_stop\\\":36,\\\"col_start\\\":16,\\\"col_stop\\\":21,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return slope;\\\"}\"}"
},
"span": {
"line_start": 36,
"line_stop": 36,
"col_start": 9,
"col_stop": 21,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " return slope;"
}
}
}
],
"span": {
"line_start": 19,
"line_stop": 37,
"col_start": 33,
"col_stop": 6,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function slope(self) -> i32 { \n...\n }"
}
},
"span": {
"line_start": 19,
"line_stop": 37,
"col_start": 5,
"col_stop": 6,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function slope(self) -> i32 { \n...\n }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
}
}
},
{
"CircuitFunction": {
"annotations": [],
"identifier": "{\"name\":\"offset\",\"span\":\"{\\\"line_start\\\":39,\\\"line_stop\\\":39,\\\"col_start\\\":14,\\\"col_stop\\\":20,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" function offset(self, slope: i32) -> i32 {\\\"}\"}",
"input": [
{
"SelfKeyword": "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":39,\\\"line_stop\\\":39,\\\"col_start\\\":21,\\\"col_stop\\\":25,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" function offset(self, slope: i32) -> i32 {\\\"}\"}"
},
{
"Variable": {
"identifier": "{\"name\":\"slope\",\"span\":\"{\\\"line_start\\\":39,\\\"line_stop\\\":39,\\\"col_start\\\":27,\\\"col_stop\\\":32,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" function offset(self, slope: i32) -> i32 {\\\"}\"}",
"const_": false,
"mutable": true,
"type_": {
"IntegerType": "I32"
},
"span": {
"line_start": 39,
"line_stop": 39,
"col_start": 27,
"col_stop": 32,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function offset(self, slope: i32) -> i32 {"
}
}
}
],
"output": {
"IntegerType": "I32"
},
"block": {
"statements": [
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"num_points\",\"span\":\"{\\\"line_start\\\":40,\\\"line_stop\\\":40,\\\"col_start\\\":13,\\\"col_stop\\\":23,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let num_points = 5i32; \\\"}\"}",
"span": {
"line_start": 40,
"line_stop": 40,
"col_start": 13,
"col_stop": 23,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let num_points = 5i32; "
}
}
],
"type_": null,
"value": {
"Value": {
"Integer": [
"I32",
"5",
{
"line_start": 40,
"line_stop": 40,
"col_start": 26,
"col_stop": 30,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let num_points = 5i32; "
}
]
}
},
"span": {
"line_start": 40,
"line_stop": 40,
"col_start": 9,
"col_stop": 30,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let num_points = 5i32; "
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"x_sum\",\"span\":\"{\\\"line_start\\\":42,\\\"line_stop\\\":42,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let x_sum = 0i32;\\\"}\"}",
"span": {
"line_start": 42,
"line_stop": 42,
"col_start": 13,
"col_stop": 18,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let x_sum = 0i32;"
}
}
],
"type_": null,
"value": {
"Value": {
"Integer": [
"I32",
"0",
{
"line_start": 42,
"line_stop": 42,
"col_start": 21,
"col_stop": 25,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let x_sum = 0i32;"
}
]
}
},
"span": {
"line_start": 42,
"line_stop": 42,
"col_start": 9,
"col_stop": 25,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let x_sum = 0i32;"
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"y_sum\",\"span\":\"{\\\"line_start\\\":43,\\\"line_stop\\\":43,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let y_sum = 0i32;\\\"}\"}",
"span": {
"line_start": 43,
"line_stop": 43,
"col_start": 13,
"col_stop": 18,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let y_sum = 0i32;"
}
}
],
"type_": null,
"value": {
"Value": {
"Integer": [
"I32",
"0",
{
"line_start": 43,
"line_stop": 43,
"col_start": 21,
"col_stop": 25,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let y_sum = 0i32;"
}
]
}
},
"span": {
"line_start": 43,
"line_stop": 43,
"col_start": 9,
"col_stop": 25,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let y_sum = 0i32;"
}
}
},
{
"Iteration": {
"variable": "{\"name\":\"i\",\"span\":\"{\\\"line_start\\\":44,\\\"line_stop\\\":44,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" for i in 0..5 {\\\"}\"}",
"start": {
"Value": {
"Implicit": [
"0",
{
"line_start": 44,
"line_stop": 44,
"col_start": 18,
"col_stop": 19,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " for i in 0..5 {"
}
]
}
},
"stop": {
"Value": {
"Implicit": [
"5",
{
"line_start": 44,
"line_stop": 44,
"col_start": 21,
"col_stop": 22,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " for i in 0..5 {"
}
]
}
},
"inclusive": false,
"block": {
"statements": [
{
"Assign": {
"operation": "Add",
"assignee": {
"identifier": "{\"name\":\"x_sum\",\"span\":\"{\\\"line_start\\\":45,\\\"line_stop\\\":45,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x_sum += self.points[i].x;\\\"}\"}",
"accesses": [],
"span": {
"line_start": 45,
"line_stop": 45,
"col_start": 13,
"col_stop": 18,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x_sum += self.points[i].x;"
}
},
"value": {
"CircuitMemberAccess": {
"circuit": {
"ArrayAccess": {
"array": {
"CircuitMemberAccess": {
"circuit": {
"Identifier": "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":45,\\\"line_stop\\\":45,\\\"col_start\\\":22,\\\"col_stop\\\":26,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x_sum += self.points[i].x;\\\"}\"}"
},
"name": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":45,\\\"line_stop\\\":45,\\\"col_start\\\":27,\\\"col_stop\\\":33,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x_sum += self.points[i].x;\\\"}\"}",
"span": {
"line_start": 45,
"line_stop": 45,
"col_start": 22,
"col_stop": 33,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x_sum += self.points[i].x;"
}
}
},
"index": {
"Identifier": "{\"name\":\"i\",\"span\":\"{\\\"line_start\\\":45,\\\"line_stop\\\":45,\\\"col_start\\\":34,\\\"col_stop\\\":35,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x_sum += self.points[i].x;\\\"}\"}"
},
"span": {
"line_start": 45,
"line_stop": 45,
"col_start": 22,
"col_stop": 36,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x_sum += self.points[i].x;"
}
}
},
"name": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":45,\\\"line_stop\\\":45,\\\"col_start\\\":37,\\\"col_stop\\\":38,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" x_sum += self.points[i].x;\\\"}\"}",
"span": {
"line_start": 45,
"line_stop": 45,
"col_start": 22,
"col_stop": 38,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x_sum += self.points[i].x;"
}
}
},
"span": {
"line_start": 45,
"line_stop": 45,
"col_start": 13,
"col_stop": 38,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " x_sum += self.points[i].x;"
}
}
},
{
"Assign": {
"operation": "Add",
"assignee": {
"identifier": "{\"name\":\"y_sum\",\"span\":\"{\\\"line_start\\\":46,\\\"line_stop\\\":46,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" y_sum += self.points[i].y; \\\"}\"}",
"accesses": [],
"span": {
"line_start": 46,
"line_stop": 46,
"col_start": 13,
"col_stop": 18,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " y_sum += self.points[i].y; "
}
},
"value": {
"CircuitMemberAccess": {
"circuit": {
"ArrayAccess": {
"array": {
"CircuitMemberAccess": {
"circuit": {
"Identifier": "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":46,\\\"line_stop\\\":46,\\\"col_start\\\":22,\\\"col_stop\\\":26,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" y_sum += self.points[i].y; \\\"}\"}"
},
"name": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":46,\\\"line_stop\\\":46,\\\"col_start\\\":27,\\\"col_stop\\\":33,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" y_sum += self.points[i].y; \\\"}\"}",
"span": {
"line_start": 46,
"line_stop": 46,
"col_start": 22,
"col_stop": 33,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " y_sum += self.points[i].y; "
}
}
},
"index": {
"Identifier": "{\"name\":\"i\",\"span\":\"{\\\"line_start\\\":46,\\\"line_stop\\\":46,\\\"col_start\\\":34,\\\"col_stop\\\":35,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" y_sum += self.points[i].y; \\\"}\"}"
},
"span": {
"line_start": 46,
"line_stop": 46,
"col_start": 22,
"col_stop": 36,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " y_sum += self.points[i].y; "
}
}
},
"name": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":46,\\\"line_stop\\\":46,\\\"col_start\\\":37,\\\"col_stop\\\":38,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" y_sum += self.points[i].y; \\\"}\"}",
"span": {
"line_start": 46,
"line_stop": 46,
"col_start": 22,
"col_stop": 38,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " y_sum += self.points[i].y; "
}
}
},
"span": {
"line_start": 46,
"line_stop": 46,
"col_start": 13,
"col_stop": 38,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " y_sum += self.points[i].y; "
}
}
}
],
"span": {
"line_start": 44,
"line_stop": 47,
"col_start": 23,
"col_stop": 10,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " for i in 0..5 {\n...\n }"
}
},
"span": {
"line_start": 44,
"line_stop": 47,
"col_start": 9,
"col_stop": 10,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " for i in 0..5 {\n...\n }\n"
}
}
},
{
"Return": {
"expression": {
"Binary": {
"left": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"y_sum\",\"span\":\"{\\\"line_start\\\":48,\\\"line_stop\\\":48,\\\"col_start\\\":17,\\\"col_stop\\\":22,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return (y_sum - slope * x_sum) / num_points;\\\"}\"}"
},
"right": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"slope\",\"span\":\"{\\\"line_start\\\":48,\\\"line_stop\\\":48,\\\"col_start\\\":25,\\\"col_stop\\\":30,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return (y_sum - slope * x_sum) / num_points;\\\"}\"}"
},
"right": {
"Identifier": "{\"name\":\"x_sum\",\"span\":\"{\\\"line_start\\\":48,\\\"line_stop\\\":48,\\\"col_start\\\":33,\\\"col_stop\\\":38,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return (y_sum - slope * x_sum) / num_points;\\\"}\"}"
},
"op": "Mul",
"span": {
"line_start": 48,
"line_stop": 48,
"col_start": 25,
"col_stop": 38,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " return (y_sum - slope * x_sum) / num_points;"
}
}
},
"op": "Sub",
"span": {
"line_start": 48,
"line_stop": 48,
"col_start": 17,
"col_stop": 38,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " return (y_sum - slope * x_sum) / num_points;"
}
}
},
"right": {
"Identifier": "{\"name\":\"num_points\",\"span\":\"{\\\"line_start\\\":48,\\\"line_stop\\\":48,\\\"col_start\\\":42,\\\"col_stop\\\":52,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return (y_sum - slope * x_sum) / num_points;\\\"}\"}"
},
"op": "Div",
"span": {
"line_start": 48,
"line_stop": 48,
"col_start": 17,
"col_stop": 52,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " return (y_sum - slope * x_sum) / num_points;"
}
}
},
"span": {
"line_start": 48,
"line_stop": 48,
"col_start": 9,
"col_stop": 52,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " return (y_sum - slope * x_sum) / num_points;"
}
}
}
],
"span": {
"line_start": 39,
"line_stop": 49,
"col_start": 46,
"col_stop": 6,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function offset(self, slope: i32) -> i32 {\n...\n }"
}
},
"span": {
"line_start": 39,
"line_stop": 49,
"col_start": 5,
"col_stop": 6,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " function offset(self, slope: i32) -> i32 {\n...\n }\n\n\n\n\n\n\n\n"
}
}
}
]
}
},
"global_consts": {},
"functions": {
"{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":53,\\\"line_stop\\\":53,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\"function main (x: i32, y: i32) -> [i32; 2] {\\\"}\"}": {
"annotations": [],
"identifier": "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":53,\\\"line_stop\\\":53,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\"function main (x: i32, y: i32) -> [i32; 2] {\\\"}\"}",
"input": [
{
"Variable": {
"identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":53,\\\"line_stop\\\":53,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\"function main (x: i32, y: i32) -> [i32; 2] {\\\"}\"}",
"const_": false,
"mutable": true,
"type_": {
"IntegerType": "I32"
},
"span": {
"line_start": 53,
"line_stop": 53,
"col_start": 16,
"col_stop": 17,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": "function main (x: i32, y: i32) -> [i32; 2] {"
}
}
},
{
"Variable": {
"identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":53,\\\"line_stop\\\":53,\\\"col_start\\\":24,\\\"col_stop\\\":25,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\"function main (x: i32, y: i32) -> [i32; 2] {\\\"}\"}",
"const_": false,
"mutable": true,
"type_": {
"IntegerType": "I32"
},
"span": {
"line_start": 53,
"line_stop": 53,
"col_start": 24,
"col_stop": 25,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": "function main (x: i32, y: i32) -> [i32; 2] {"
}
}
}
],
"output": {
"Array": [
{
"IntegerType": "I32"
},
[
{
"value": "2"
}
]
]
},
"block": {
"statements": [
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":54,\\\"line_stop\\\":54,\\\"col_start\\\":7,\\\"col_stop\\\":13,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let points: [Point; 5] = [\\\"}\"}",
"span": {
"line_start": 54,
"line_stop": 54,
"col_start": 7,
"col_stop": 13,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let points: [Point; 5] = ["
}
}
],
"type_": {
"Array": [
{
"Circuit": "{\"name\":\"Point\",\"span\":\"{\\\"line_start\\\":54,\\\"line_stop\\\":54,\\\"col_start\\\":16,\\\"col_stop\\\":21,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let points: [Point; 5] = [\\\"}\"}"
},
[
{
"value": "5"
}
]
]
},
"value": {
"ArrayInline": {
"elements": [
{
"Expression": {
"CircuitInit": {
"name": "{\"name\":\"Point\",\"span\":\"{\\\"line_start\\\":55,\\\"line_stop\\\":55,\\\"col_start\\\":7,\\\"col_stop\\\":12,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 1, y: y + 1},\\\"}\"}",
"members": [
{
"identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":55,\\\"line_stop\\\":55,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 1, y: y + 1},\\\"}\"}",
"expression": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":55,\\\"line_stop\\\":55,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 1, y: y + 1},\\\"}\"}"
},
"right": {
"Value": {
"Implicit": [
"1",
{
"line_start": 55,
"line_stop": 55,
"col_start": 20,
"col_stop": 21,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 1, y: y + 1},"
}
]
}
},
"op": "Add",
"span": {
"line_start": 55,
"line_stop": 55,
"col_start": 16,
"col_stop": 21,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 1, y: y + 1},"
}
}
}
},
{
"identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":55,\\\"line_stop\\\":55,\\\"col_start\\\":23,\\\"col_stop\\\":24,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 1, y: y + 1},\\\"}\"}",
"expression": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":55,\\\"line_stop\\\":55,\\\"col_start\\\":26,\\\"col_stop\\\":27,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 1, y: y + 1},\\\"}\"}"
},
"right": {
"Value": {
"Implicit": [
"1",
{
"line_start": 55,
"line_stop": 55,
"col_start": 30,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 1, y: y + 1},"
}
]
}
},
"op": "Add",
"span": {
"line_start": 55,
"line_stop": 55,
"col_start": 26,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 1, y: y + 1},"
}
}
}
}
],
"span": {
"line_start": 55,
"line_stop": 55,
"col_start": 7,
"col_stop": 32,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 1, y: y + 1},"
}
}
}
},
{
"Expression": {
"CircuitInit": {
"name": "{\"name\":\"Point\",\"span\":\"{\\\"line_start\\\":56,\\\"line_stop\\\":56,\\\"col_start\\\":7,\\\"col_stop\\\":12,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 2, y: y + 2},\\\"}\"}",
"members": [
{
"identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":56,\\\"line_stop\\\":56,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 2, y: y + 2},\\\"}\"}",
"expression": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":56,\\\"line_stop\\\":56,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 2, y: y + 2},\\\"}\"}"
},
"right": {
"Value": {
"Implicit": [
"2",
{
"line_start": 56,
"line_stop": 56,
"col_start": 20,
"col_stop": 21,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 2, y: y + 2},"
}
]
}
},
"op": "Add",
"span": {
"line_start": 56,
"line_stop": 56,
"col_start": 16,
"col_stop": 21,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 2, y: y + 2},"
}
}
}
},
{
"identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":56,\\\"line_stop\\\":56,\\\"col_start\\\":23,\\\"col_stop\\\":24,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 2, y: y + 2},\\\"}\"}",
"expression": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":56,\\\"line_stop\\\":56,\\\"col_start\\\":26,\\\"col_stop\\\":27,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 2, y: y + 2},\\\"}\"}"
},
"right": {
"Value": {
"Implicit": [
"2",
{
"line_start": 56,
"line_stop": 56,
"col_start": 30,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 2, y: y + 2},"
}
]
}
},
"op": "Add",
"span": {
"line_start": 56,
"line_stop": 56,
"col_start": 26,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 2, y: y + 2},"
}
}
}
}
],
"span": {
"line_start": 56,
"line_stop": 56,
"col_start": 7,
"col_stop": 32,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 2, y: y + 2},"
}
}
}
},
{
"Expression": {
"CircuitInit": {
"name": "{\"name\":\"Point\",\"span\":\"{\\\"line_start\\\":57,\\\"line_stop\\\":57,\\\"col_start\\\":7,\\\"col_stop\\\":12,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 3, y: y + 3},\\\"}\"}",
"members": [
{
"identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":57,\\\"line_stop\\\":57,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 3, y: y + 3},\\\"}\"}",
"expression": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":57,\\\"line_stop\\\":57,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 3, y: y + 3},\\\"}\"}"
},
"right": {
"Value": {
"Implicit": [
"3",
{
"line_start": 57,
"line_stop": 57,
"col_start": 20,
"col_stop": 21,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 3, y: y + 3},"
}
]
}
},
"op": "Add",
"span": {
"line_start": 57,
"line_stop": 57,
"col_start": 16,
"col_stop": 21,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 3, y: y + 3},"
}
}
}
},
{
"identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":57,\\\"line_stop\\\":57,\\\"col_start\\\":23,\\\"col_stop\\\":24,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 3, y: y + 3},\\\"}\"}",
"expression": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":57,\\\"line_stop\\\":57,\\\"col_start\\\":26,\\\"col_stop\\\":27,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 3, y: y + 3},\\\"}\"}"
},
"right": {
"Value": {
"Implicit": [
"3",
{
"line_start": 57,
"line_stop": 57,
"col_start": 30,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 3, y: y + 3},"
}
]
}
},
"op": "Add",
"span": {
"line_start": 57,
"line_stop": 57,
"col_start": 26,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 3, y: y + 3},"
}
}
}
}
],
"span": {
"line_start": 57,
"line_stop": 57,
"col_start": 7,
"col_stop": 32,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 3, y: y + 3},"
}
}
}
},
{
"Expression": {
"CircuitInit": {
"name": "{\"name\":\"Point\",\"span\":\"{\\\"line_start\\\":58,\\\"line_stop\\\":58,\\\"col_start\\\":7,\\\"col_stop\\\":12,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 4, y: y + 4},\\\"}\"}",
"members": [
{
"identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":58,\\\"line_stop\\\":58,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 4, y: y + 4},\\\"}\"}",
"expression": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":58,\\\"line_stop\\\":58,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 4, y: y + 4},\\\"}\"}"
},
"right": {
"Value": {
"Implicit": [
"4",
{
"line_start": 58,
"line_stop": 58,
"col_start": 20,
"col_stop": 21,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 4, y: y + 4},"
}
]
}
},
"op": "Add",
"span": {
"line_start": 58,
"line_stop": 58,
"col_start": 16,
"col_stop": 21,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 4, y: y + 4},"
}
}
}
},
{
"identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":58,\\\"line_stop\\\":58,\\\"col_start\\\":23,\\\"col_stop\\\":24,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 4, y: y + 4},\\\"}\"}",
"expression": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":58,\\\"line_stop\\\":58,\\\"col_start\\\":26,\\\"col_stop\\\":27,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 4, y: y + 4},\\\"}\"}"
},
"right": {
"Value": {
"Implicit": [
"4",
{
"line_start": 58,
"line_stop": 58,
"col_start": 30,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 4, y: y + 4},"
}
]
}
},
"op": "Add",
"span": {
"line_start": 58,
"line_stop": 58,
"col_start": 26,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 4, y: y + 4},"
}
}
}
}
],
"span": {
"line_start": 58,
"line_stop": 58,
"col_start": 7,
"col_stop": 32,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 4, y: y + 4},"
}
}
}
},
{
"Expression": {
"CircuitInit": {
"name": "{\"name\":\"Point\",\"span\":\"{\\\"line_start\\\":59,\\\"line_stop\\\":59,\\\"col_start\\\":7,\\\"col_stop\\\":12,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 5, y: y + 5}\\\"}\"}",
"members": [
{
"identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":59,\\\"line_stop\\\":59,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 5, y: y + 5}\\\"}\"}",
"expression": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":59,\\\"line_stop\\\":59,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 5, y: y + 5}\\\"}\"}"
},
"right": {
"Value": {
"Implicit": [
"5",
{
"line_start": 59,
"line_stop": 59,
"col_start": 20,
"col_stop": 21,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 5, y: y + 5}"
}
]
}
},
"op": "Add",
"span": {
"line_start": 59,
"line_stop": 59,
"col_start": 16,
"col_stop": 21,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 5, y: y + 5}"
}
}
}
},
{
"identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":59,\\\"line_stop\\\":59,\\\"col_start\\\":23,\\\"col_stop\\\":24,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 5, y: y + 5}\\\"}\"}",
"expression": {
"Binary": {
"left": {
"Identifier": "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":59,\\\"line_stop\\\":59,\\\"col_start\\\":26,\\\"col_stop\\\":27,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" Point{x: x + 5, y: y + 5}\\\"}\"}"
},
"right": {
"Value": {
"Implicit": [
"5",
{
"line_start": 59,
"line_stop": 59,
"col_start": 30,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 5, y: y + 5}"
}
]
}
},
"op": "Add",
"span": {
"line_start": 59,
"line_stop": 59,
"col_start": 26,
"col_stop": 31,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 5, y: y + 5}"
}
}
}
}
],
"span": {
"line_start": 59,
"line_stop": 59,
"col_start": 7,
"col_stop": 32,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " Point{x: x + 5, y: y + 5}"
}
}
}
}
],
"span": {
"line_start": 54,
"line_stop": 60,
"col_start": 28,
"col_stop": 4,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let points: [Point; 5] = [\n...\n ];"
}
}
},
"span": {
"line_start": 54,
"line_stop": 60,
"col_start": 3,
"col_stop": 4,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let points: [Point; 5] = [\n...\n ];\n\n\n\n"
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"reg\",\"span\":\"{\\\"line_start\\\":61,\\\"line_stop\\\":61,\\\"col_start\\\":7,\\\"col_stop\\\":10,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let reg = LinearRegression::new(points);\\\"}\"}",
"span": {
"line_start": 61,
"line_stop": 61,
"col_start": 7,
"col_stop": 10,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let reg = LinearRegression::new(points);"
}
}
],
"type_": null,
"value": {
"Call": {
"function": {
"CircuitStaticFunctionAccess": {
"circuit": {
"Identifier": "{\"name\":\"LinearRegression\",\"span\":\"{\\\"line_start\\\":61,\\\"line_stop\\\":61,\\\"col_start\\\":13,\\\"col_stop\\\":29,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let reg = LinearRegression::new(points);\\\"}\"}"
},
"name": "{\"name\":\"new\",\"span\":\"{\\\"line_start\\\":61,\\\"line_stop\\\":61,\\\"col_start\\\":31,\\\"col_stop\\\":34,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let reg = LinearRegression::new(points);\\\"}\"}",
"span": {
"line_start": 61,
"line_stop": 61,
"col_start": 13,
"col_stop": 34,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let reg = LinearRegression::new(points);"
}
}
},
"arguments": [
{
"Identifier": "{\"name\":\"points\",\"span\":\"{\\\"line_start\\\":61,\\\"line_stop\\\":61,\\\"col_start\\\":35,\\\"col_stop\\\":41,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let reg = LinearRegression::new(points);\\\"}\"}"
}
],
"span": {
"line_start": 61,
"line_stop": 61,
"col_start": 13,
"col_stop": 42,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let reg = LinearRegression::new(points);"
}
}
},
"span": {
"line_start": 61,
"line_stop": 61,
"col_start": 3,
"col_stop": 42,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let reg = LinearRegression::new(points);"
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"slope\",\"span\":\"{\\\"line_start\\\":62,\\\"line_stop\\\":62,\\\"col_start\\\":7,\\\"col_stop\\\":12,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let slope = reg.slope();\\\"}\"}",
"span": {
"line_start": 62,
"line_stop": 62,
"col_start": 7,
"col_stop": 12,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let slope = reg.slope();"
}
}
],
"type_": null,
"value": {
"Call": {
"function": {
"CircuitMemberAccess": {
"circuit": {
"Identifier": "{\"name\":\"reg\",\"span\":\"{\\\"line_start\\\":62,\\\"line_stop\\\":62,\\\"col_start\\\":15,\\\"col_stop\\\":18,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let slope = reg.slope();\\\"}\"}"
},
"name": "{\"name\":\"slope\",\"span\":\"{\\\"line_start\\\":62,\\\"line_stop\\\":62,\\\"col_start\\\":19,\\\"col_stop\\\":24,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let slope = reg.slope();\\\"}\"}",
"span": {
"line_start": 62,
"line_stop": 62,
"col_start": 15,
"col_stop": 24,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let slope = reg.slope();"
}
}
},
"arguments": [],
"span": {
"line_start": 62,
"line_stop": 62,
"col_start": 15,
"col_stop": 26,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let slope = reg.slope();"
}
}
},
"span": {
"line_start": 62,
"line_stop": 62,
"col_start": 3,
"col_stop": 26,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let slope = reg.slope();"
}
}
},
{
"Definition": {
"declaration_type": "Let",
"variable_names": [
{
"mutable": true,
"identifier": "{\"name\":\"offset\",\"span\":\"{\\\"line_start\\\":63,\\\"line_stop\\\":63,\\\"col_start\\\":7,\\\"col_stop\\\":13,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let offset = reg.offset(slope);\\\"}\"}",
"span": {
"line_start": 63,
"line_stop": 63,
"col_start": 7,
"col_stop": 13,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let offset = reg.offset(slope);"
}
}
],
"type_": null,
"value": {
"Call": {
"function": {
"CircuitMemberAccess": {
"circuit": {
"Identifier": "{\"name\":\"reg\",\"span\":\"{\\\"line_start\\\":63,\\\"line_stop\\\":63,\\\"col_start\\\":16,\\\"col_stop\\\":19,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let offset = reg.offset(slope);\\\"}\"}"
},
"name": "{\"name\":\"offset\",\"span\":\"{\\\"line_start\\\":63,\\\"line_stop\\\":63,\\\"col_start\\\":20,\\\"col_stop\\\":26,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let offset = reg.offset(slope);\\\"}\"}",
"span": {
"line_start": 63,
"line_stop": 63,
"col_start": 16,
"col_stop": 26,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let offset = reg.offset(slope);"
}
}
},
"arguments": [
{
"Identifier": "{\"name\":\"slope\",\"span\":\"{\\\"line_start\\\":63,\\\"line_stop\\\":63,\\\"col_start\\\":27,\\\"col_stop\\\":32,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" let offset = reg.offset(slope);\\\"}\"}"
}
],
"span": {
"line_start": 63,
"line_stop": 63,
"col_start": 16,
"col_stop": 33,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let offset = reg.offset(slope);"
}
}
},
"span": {
"line_start": 63,
"line_stop": 63,
"col_start": 3,
"col_stop": 33,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " let offset = reg.offset(slope);"
}
}
},
{
"Return": {
"expression": {
"ArrayInline": {
"elements": [
{
"Expression": {
"Identifier": "{\"name\":\"slope\",\"span\":\"{\\\"line_start\\\":64,\\\"line_stop\\\":64,\\\"col_start\\\":11,\\\"col_stop\\\":16,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return [slope, offset];\\\"}\"}"
}
},
{
"Expression": {
"Identifier": "{\"name\":\"offset\",\"span\":\"{\\\"line_start\\\":64,\\\"line_stop\\\":64,\\\"col_start\\\":18,\\\"col_stop\\\":24,\\\"path\\\":\\\"/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo\\\",\\\"content\\\":\\\" return [slope, offset];\\\"}\"}"
}
}
],
"span": {
"line_start": 64,
"line_stop": 64,
"col_start": 10,
"col_stop": 25,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " return [slope, offset];"
}
}
},
"span": {
"line_start": 64,
"line_stop": 64,
"col_start": 3,
"col_stop": 25,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": " return [slope, offset];"
}
}
}
],
"span": {
"line_start": 53,
"line_stop": 65,
"col_start": 44,
"col_stop": 2,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": "function main (x: i32, y: i32) -> [i32; 2] {\n...\n}"
}
},
"span": {
"line_start": 53,
"line_stop": 65,
"col_start": 1,
"col_stop": 2,
"path": "/Users/pranav/work/Aleo/leo/examples/linear-regression/src/main.leo",
"content": "function main (x: i32, y: i32) -> [i32; 2] {\n...\n}\n\n\n\n\n\n\n\n\n\n"
}
}
}
}