{ "type": "Program", "statements": [ { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "MathPartialSums", "decorators": [], "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 16, "column": 29 } } }, "superClass": null, "implements": [], "body": [ { "type": "ClassProperty", "key": { "type": "Identifier", "name": "n1", "decorators": [], "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 21 } } }, "value": { "type": "NumberLiteral", "value": 1024, "loc": { "start": { "line": 17, "column": 29 }, "end": { "line": 17, "column": 33 } } }, "accessibility": "public", "static": true, "readonly": true, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 26 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 17, "column": 19 }, "end": { "line": 17, "column": 33 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "n2", "decorators": [], "loc": { "start": { "line": 18, "column": 19 }, "end": { "line": 18, "column": 21 } } }, "value": { "type": "NumberLiteral", "value": 16384, "loc": { "start": { "line": 18, "column": 29 }, "end": { "line": 18, "column": 34 } } }, "accessibility": "public", "static": true, "readonly": true, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 18, "column": 23 }, "end": { "line": 18, "column": 26 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 18, "column": 19 }, "end": { "line": 18, "column": 34 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "expected", "decorators": [], "loc": { "start": { "line": 19, "column": 19 }, "end": { "line": 19, "column": 27 } } }, "value": { "type": "NumberLiteral", "value": 60.0899, "loc": { "start": { "line": 19, "column": 38 }, "end": { "line": 19, "column": 55 } } }, "accessibility": "public", "static": true, "readonly": true, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 19, "column": 29 }, "end": { "line": 19, "column": 35 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 19, "column": 19 }, "end": { "line": 19, "column": 55 } } }, { "type": "ClassProperty", "key": { "type": "Identifier", "name": "g_flag", "decorators": [], "loc": { "start": { "line": 20, "column": 10 }, "end": { "line": 20, "column": 16 } } }, "value": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 20, "column": 24 }, "end": { "line": 20, "column": 25 } } }, "accessibility": "public", "static": true, "readonly": false, "declare": false, "optional": false, "computed": false, "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 21 } } }, "definite": false, "decorators": [], "loc": { "start": { "line": 20, "column": 10 }, "end": { "line": 20, "column": 25 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "partial", "decorators": [], "loc": { "start": { "line": 22, "column": 18 }, "end": { "line": 22, "column": 25 } } }, "kind": "method", "accessibility": "private", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "partial", "decorators": [], "loc": { "start": { "line": 22, "column": 18 }, "end": { "line": 22, "column": 25 } } }, "generator": false, "async": false, "expression": false, "params": [ { "type": "ETSParameterExpression", "name": { "type": "Identifier", "name": "n", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 22, "column": 29 }, "end": { "line": 22, "column": 32 } } }, "decorators": [], "loc": { "start": { "line": 22, "column": 26 }, "end": { "line": 22, "column": 32 } } }, "loc": { "start": { "line": 22, "column": 26 }, "end": { "line": 22, "column": 32 } } } ], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 22, "column": 35 }, "end": { "line": 22, "column": 41 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a1", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 23, "column": 22 }, "end": { "line": 23, "column": 25 } } }, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 23, "column": 5 }, "end": { "line": 23, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a2", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 24, "column": 13 }, "end": { "line": 24, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 24, "column": 9 }, "end": { "line": 24, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 24, "column": 22 }, "end": { "line": 24, "column": 25 } } }, "loc": { "start": { "line": 24, "column": 9 }, "end": { "line": 24, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 24, "column": 5 }, "end": { "line": 24, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a3", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 25, "column": 13 }, "end": { "line": 25, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 25, "column": 22 }, "end": { "line": 25, "column": 25 } } }, "loc": { "start": { "line": 25, "column": 9 }, "end": { "line": 25, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 25, "column": 5 }, "end": { "line": 25, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a4", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 26, "column": 22 }, "end": { "line": 26, "column": 25 } } }, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 26, "column": 5 }, "end": { "line": 26, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a5", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 27, "column": 22 }, "end": { "line": 27, "column": 25 } } }, "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 27, "column": 5 }, "end": { "line": 27, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a6", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 28, "column": 13 }, "end": { "line": 28, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 28, "column": 9 }, "end": { "line": 28, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 28, "column": 22 }, "end": { "line": 28, "column": 25 } } }, "loc": { "start": { "line": 28, "column": 9 }, "end": { "line": 28, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 28, "column": 5 }, "end": { "line": 28, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a7", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 29, "column": 13 }, "end": { "line": 29, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 29, "column": 9 }, "end": { "line": 29, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 29, "column": 22 }, "end": { "line": 29, "column": 25 } } }, "loc": { "start": { "line": 29, "column": 9 }, "end": { "line": 29, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 29, "column": 5 }, "end": { "line": 29, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a8", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 30, "column": 13 }, "end": { "line": 30, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 30, "column": 9 }, "end": { "line": 30, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 30, "column": 22 }, "end": { "line": 30, "column": 25 } } }, "loc": { "start": { "line": 30, "column": 9 }, "end": { "line": 30, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a9", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 31, "column": 13 }, "end": { "line": 31, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 31, "column": 22 }, "end": { "line": 31, "column": 25 } } }, "loc": { "start": { "line": 31, "column": 9 }, "end": { "line": 31, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 31, "column": 5 }, "end": { "line": 31, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "twothirds", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 33, "column": 20 }, "end": { "line": 33, "column": 26 } } }, "decorators": [], "loc": { "start": { "line": 33, "column": 9 }, "end": { "line": 33, "column": 18 } } }, "init": { "type": "BinaryExpression", "operator": "/", "left": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 33, "column": 29 }, "end": { "line": 33, "column": 32 } } }, "right": { "type": "NumberLiteral", "value": 3, "loc": { "start": { "line": 33, "column": 35 }, "end": { "line": 33, "column": 38 } } }, "loc": { "start": { "line": 33, "column": 29 }, "end": { "line": 33, "column": 38 } } }, "loc": { "start": { "line": 33, "column": 9 }, "end": { "line": 33, "column": 38 } } } ], "kind": "let", "loc": { "start": { "line": 33, "column": 5 }, "end": { "line": 33, "column": 39 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "alt", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 34, "column": 14 }, "end": { "line": 34, "column": 20 } } }, "decorators": [], "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 34, "column": 12 } } }, "init": { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 34, "column": 24 }, "end": { "line": 34, "column": 27 } } }, "loc": { "start": { "line": 34, "column": 23 }, "end": { "line": 34, "column": 27 } } }, "loc": { "start": { "line": 34, "column": 9 }, "end": { "line": 34, "column": 27 } } } ], "kind": "let", "loc": { "start": { "line": 34, "column": 5 }, "end": { "line": 34, "column": 28 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "k2", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 35, "column": 13 }, "end": { "line": 35, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 35, "column": 9 }, "end": { "line": 35, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 35, "column": 22 }, "end": { "line": 35, "column": 25 } } }, "loc": { "start": { "line": 35, "column": 9 }, "end": { "line": 35, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 35, "column": 5 }, "end": { "line": 35, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "k3", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 36, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 36, "column": 9 }, "end": { "line": 36, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 36, "column": 22 }, "end": { "line": 36, "column": 25 } } }, "loc": { "start": { "line": 36, "column": 9 }, "end": { "line": 36, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 36, "column": 5 }, "end": { "line": 36, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "sk", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 37, "column": 13 }, "end": { "line": 37, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 37, "column": 9 }, "end": { "line": 37, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 37, "column": 22 }, "end": { "line": 37, "column": 25 } } }, "loc": { "start": { "line": 37, "column": 9 }, "end": { "line": 37, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 37, "column": 5 }, "end": { "line": 37, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "ck", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 19 } } }, "decorators": [], "loc": { "start": { "line": 38, "column": 9 }, "end": { "line": 38, "column": 11 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 38, "column": 22 }, "end": { "line": 38, "column": 25 } } }, "loc": { "start": { "line": 38, "column": 9 }, "end": { "line": 38, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 38, "column": 5 }, "end": { "line": 38, "column": 26 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "res", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 39, "column": 14 }, "end": { "line": 39, "column": 20 } } }, "decorators": [], "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 12 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 39, "column": 23 }, "end": { "line": 39, "column": 26 } } }, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 26 } } } ], "kind": "let", "loc": { "start": { "line": 39, "column": 5 }, "end": { "line": 39, "column": 27 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "k", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 41, "column": 17 }, "end": { "line": 41, "column": 21 } } }, "decorators": [], "loc": { "start": { "line": 41, "column": 14 }, "end": { "line": 41, "column": 15 } } }, "init": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 41, "column": 24 }, "end": { "line": 41, "column": 25 } } }, "loc": { "start": { "line": 41, "column": 14 }, "end": { "line": 41, "column": 25 } } } ], "kind": "let", "loc": { "start": { "line": 41, "column": 10 }, "end": { "line": 41, "column": 25 } } }, "test": { "type": "BinaryExpression", "operator": "<=", "left": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 41, "column": 27 }, "end": { "line": 41, "column": 28 } } }, "right": { "type": "Identifier", "name": "n", "decorators": [], "loc": { "start": { "line": 41, "column": 32 }, "end": { "line": 41, "column": 33 } } }, "loc": { "start": { "line": 41, "column": 27 }, "end": { "line": 41, "column": 33 } } }, "update": { "type": "UpdateExpression", "operator": "++", "prefix": false, "argument": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 41, "column": 35 }, "end": { "line": 41, "column": 36 } } }, "loc": { "start": { "line": 41, "column": 35 }, "end": { "line": 41, "column": 38 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "k2", "decorators": [], "loc": { "start": { "line": 42, "column": 7 }, "end": { "line": 42, "column": 9 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 42, "column": 12 }, "end": { "line": 42, "column": 13 } } }, "right": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 42, "column": 16 }, "end": { "line": 42, "column": 17 } } }, "loc": { "start": { "line": 42, "column": 12 }, "end": { "line": 42, "column": 17 } } }, "loc": { "start": { "line": 42, "column": 7 }, "end": { "line": 42, "column": 17 } } }, "loc": { "start": { "line": 42, "column": 7 }, "end": { "line": 42, "column": 18 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "k3", "decorators": [], "loc": { "start": { "line": 43, "column": 7 }, "end": { "line": 43, "column": 9 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "k2", "decorators": [], "loc": { "start": { "line": 43, "column": 12 }, "end": { "line": 43, "column": 14 } } }, "right": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 43, "column": 17 }, "end": { "line": 43, "column": 18 } } }, "loc": { "start": { "line": 43, "column": 12 }, "end": { "line": 43, "column": 18 } } }, "loc": { "start": { "line": 43, "column": 7 }, "end": { "line": 43, "column": 18 } } }, "loc": { "start": { "line": 43, "column": 7 }, "end": { "line": 43, "column": 19 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "sk", "decorators": [], "loc": { "start": { "line": 44, "column": 7 }, "end": { "line": 44, "column": 9 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "sin", "decorators": [], "loc": { "start": { "line": 44, "column": 12 }, "end": { "line": 44, "column": 15 } } }, "arguments": [ { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 44, "column": 16 }, "end": { "line": 44, "column": 17 } } } ], "optional": false, "loc": { "start": { "line": 44, "column": 12 }, "end": { "line": 44, "column": 18 } } }, "loc": { "start": { "line": 44, "column": 7 }, "end": { "line": 44, "column": 18 } } }, "loc": { "start": { "line": 44, "column": 7 }, "end": { "line": 44, "column": 19 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "ck", "decorators": [], "loc": { "start": { "line": 45, "column": 7 }, "end": { "line": 45, "column": 9 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "cos", "decorators": [], "loc": { "start": { "line": 45, "column": 12 }, "end": { "line": 45, "column": 15 } } }, "arguments": [ { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 45, "column": 16 }, "end": { "line": 45, "column": 17 } } } ], "optional": false, "loc": { "start": { "line": 45, "column": 12 }, "end": { "line": 45, "column": 18 } } }, "loc": { "start": { "line": 45, "column": 7 }, "end": { "line": 45, "column": 18 } } }, "loc": { "start": { "line": 45, "column": 7 }, "end": { "line": 45, "column": 19 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "alt", "decorators": [], "loc": { "start": { "line": 46, "column": 7 }, "end": { "line": 46, "column": 10 } } }, "right": { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "Identifier", "name": "alt", "decorators": [], "loc": { "start": { "line": 46, "column": 14 }, "end": { "line": 46, "column": 17 } } }, "loc": { "start": { "line": 46, "column": 13 }, "end": { "line": 46, "column": 17 } } }, "loc": { "start": { "line": 46, "column": 7 }, "end": { "line": 46, "column": 17 } } }, "loc": { "start": { "line": 46, "column": 7 }, "end": { "line": 46, "column": 18 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "a1", "decorators": [], "loc": { "start": { "line": 48, "column": 7 }, "end": { "line": 48, "column": 9 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "power", "decorators": [], "loc": { "start": { "line": 48, "column": 13 }, "end": { "line": 48, "column": 18 } } }, "arguments": [ { "type": "Identifier", "name": "twothirds", "decorators": [], "loc": { "start": { "line": 48, "column": 19 }, "end": { "line": 48, "column": 28 } } }, { "type": "BinaryExpression", "operator": "-", "left": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 48, "column": 30 }, "end": { "line": 48, "column": 31 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 48, "column": 34 }, "end": { "line": 48, "column": 35 } } }, "loc": { "start": { "line": 48, "column": 30 }, "end": { "line": 48, "column": 35 } } } ], "optional": false, "loc": { "start": { "line": 48, "column": 13 }, "end": { "line": 48, "column": 36 } } }, "loc": { "start": { "line": 48, "column": 7 }, "end": { "line": 48, "column": 36 } } }, "loc": { "start": { "line": 48, "column": 7 }, "end": { "line": 48, "column": 37 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "a2", "decorators": [], "loc": { "start": { "line": 49, "column": 7 }, "end": { "line": 49, "column": 9 } } }, "right": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "power", "decorators": [], "loc": { "start": { "line": 49, "column": 13 }, "end": { "line": 49, "column": 18 } } }, "arguments": [ { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 49, "column": 19 }, "end": { "line": 49, "column": 20 } } }, { "type": "UnaryExpression", "operator": "-", "prefix": true, "argument": { "type": "NumberLiteral", "value": 0.5, "loc": { "start": { "line": 49, "column": 23 }, "end": { "line": 49, "column": 26 } } }, "loc": { "start": { "line": 49, "column": 22 }, "end": { "line": 49, "column": 26 } } } ], "optional": false, "loc": { "start": { "line": 49, "column": 13 }, "end": { "line": 49, "column": 27 } } }, "loc": { "start": { "line": 49, "column": 7 }, "end": { "line": 49, "column": 27 } } }, "loc": { "start": { "line": 49, "column": 7 }, "end": { "line": 49, "column": 28 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "a3", "decorators": [], "loc": { "start": { "line": 50, "column": 7 }, "end": { "line": 50, "column": 9 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 50, "column": 13 }, "end": { "line": 50, "column": 16 } } }, "right": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 50, "column": 20 }, "end": { "line": 50, "column": 21 } } }, "right": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 50, "column": 24 }, "end": { "line": 50, "column": 25 } } }, "loc": { "start": { "line": 50, "column": 20 }, "end": { "line": 50, "column": 25 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 50, "column": 28 }, "end": { "line": 50, "column": 31 } } }, "loc": { "start": { "line": 50, "column": 19 }, "end": { "line": 50, "column": 32 } } }, "loc": { "start": { "line": 50, "column": 13 }, "end": { "line": 50, "column": 32 } } }, "loc": { "start": { "line": 50, "column": 7 }, "end": { "line": 50, "column": 32 } } }, "loc": { "start": { "line": 50, "column": 7 }, "end": { "line": 50, "column": 33 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "a4", "decorators": [], "loc": { "start": { "line": 51, "column": 7 }, "end": { "line": 51, "column": 9 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 51, "column": 13 }, "end": { "line": 51, "column": 16 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "k3", "decorators": [], "loc": { "start": { "line": 51, "column": 20 }, "end": { "line": 51, "column": 22 } } }, "right": { "type": "Identifier", "name": "sk", "decorators": [], "loc": { "start": { "line": 51, "column": 25 }, "end": { "line": 51, "column": 27 } } }, "loc": { "start": { "line": 51, "column": 20 }, "end": { "line": 51, "column": 27 } } }, "right": { "type": "Identifier", "name": "sk", "decorators": [], "loc": { "start": { "line": 51, "column": 30 }, "end": { "line": 51, "column": 32 } } }, "loc": { "start": { "line": 51, "column": 19 }, "end": { "line": 51, "column": 33 } } }, "loc": { "start": { "line": 51, "column": 13 }, "end": { "line": 51, "column": 33 } } }, "loc": { "start": { "line": 51, "column": 7 }, "end": { "line": 51, "column": 33 } } }, "loc": { "start": { "line": 51, "column": 7 }, "end": { "line": 51, "column": 34 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "a5", "decorators": [], "loc": { "start": { "line": 52, "column": 7 }, "end": { "line": 52, "column": 9 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 52, "column": 13 }, "end": { "line": 52, "column": 16 } } }, "right": { "type": "BinaryExpression", "operator": "*", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "Identifier", "name": "k3", "decorators": [], "loc": { "start": { "line": 52, "column": 20 }, "end": { "line": 52, "column": 22 } } }, "right": { "type": "Identifier", "name": "ck", "decorators": [], "loc": { "start": { "line": 52, "column": 25 }, "end": { "line": 52, "column": 27 } } }, "loc": { "start": { "line": 52, "column": 20 }, "end": { "line": 52, "column": 27 } } }, "right": { "type": "Identifier", "name": "ck", "decorators": [], "loc": { "start": { "line": 52, "column": 30 }, "end": { "line": 52, "column": 32 } } }, "loc": { "start": { "line": 52, "column": 19 }, "end": { "line": 52, "column": 33 } } }, "loc": { "start": { "line": 52, "column": 13 }, "end": { "line": 52, "column": 33 } } }, "loc": { "start": { "line": 52, "column": 7 }, "end": { "line": 52, "column": 33 } } }, "loc": { "start": { "line": 52, "column": 7 }, "end": { "line": 52, "column": 34 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "a6", "decorators": [], "loc": { "start": { "line": 53, "column": 7 }, "end": { "line": 53, "column": 9 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 53, "column": 13 }, "end": { "line": 53, "column": 16 } } }, "right": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 53, "column": 19 }, "end": { "line": 53, "column": 20 } } }, "loc": { "start": { "line": 53, "column": 13 }, "end": { "line": 53, "column": 20 } } }, "loc": { "start": { "line": 53, "column": 7 }, "end": { "line": 53, "column": 20 } } }, "loc": { "start": { "line": 53, "column": 7 }, "end": { "line": 53, "column": 21 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "a7", "decorators": [], "loc": { "start": { "line": 54, "column": 7 }, "end": { "line": 54, "column": 9 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 54, "column": 13 }, "end": { "line": 54, "column": 16 } } }, "right": { "type": "Identifier", "name": "k2", "decorators": [], "loc": { "start": { "line": 54, "column": 19 }, "end": { "line": 54, "column": 21 } } }, "loc": { "start": { "line": 54, "column": 13 }, "end": { "line": 54, "column": 21 } } }, "loc": { "start": { "line": 54, "column": 7 }, "end": { "line": 54, "column": 21 } } }, "loc": { "start": { "line": 54, "column": 7 }, "end": { "line": 54, "column": 22 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "a8", "decorators": [], "loc": { "start": { "line": 55, "column": 7 }, "end": { "line": 55, "column": 9 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "Identifier", "name": "alt", "decorators": [], "loc": { "start": { "line": 55, "column": 13 }, "end": { "line": 55, "column": 16 } } }, "right": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 55, "column": 19 }, "end": { "line": 55, "column": 20 } } }, "loc": { "start": { "line": 55, "column": 13 }, "end": { "line": 55, "column": 20 } } }, "loc": { "start": { "line": 55, "column": 7 }, "end": { "line": 55, "column": 20 } } }, "loc": { "start": { "line": 55, "column": 7 }, "end": { "line": 55, "column": 21 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "a9", "decorators": [], "loc": { "start": { "line": 56, "column": 7 }, "end": { "line": 56, "column": 9 } } }, "right": { "type": "BinaryExpression", "operator": "/", "left": { "type": "Identifier", "name": "alt", "decorators": [], "loc": { "start": { "line": 56, "column": 13 }, "end": { "line": 56, "column": 16 } } }, "right": { "type": "BinaryExpression", "operator": "-", "left": { "type": "BinaryExpression", "operator": "*", "left": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 56, "column": 20 }, "end": { "line": 56, "column": 21 } } }, "right": { "type": "Identifier", "name": "k", "decorators": [], "loc": { "start": { "line": 56, "column": 24 }, "end": { "line": 56, "column": 25 } } }, "loc": { "start": { "line": 56, "column": 20 }, "end": { "line": 56, "column": 25 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 56, "column": 28 }, "end": { "line": 56, "column": 29 } } }, "loc": { "start": { "line": 56, "column": 19 }, "end": { "line": 56, "column": 30 } } }, "loc": { "start": { "line": 56, "column": 13 }, "end": { "line": 56, "column": 30 } } }, "loc": { "start": { "line": 56, "column": 7 }, "end": { "line": 56, "column": 30 } } }, "loc": { "start": { "line": 56, "column": 7 }, "end": { "line": 56, "column": 31 } } } ], "loc": { "start": { "line": 41, "column": 40 }, "end": { "line": 57, "column": 6 } } }, "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 57, "column": 6 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 59, "column": 5 }, "end": { "line": 59, "column": 8 } } }, "right": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "a1", "decorators": [], "loc": { "start": { "line": 59, "column": 11 }, "end": { "line": 59, "column": 13 } } }, "right": { "type": "Identifier", "name": "a2", "decorators": [], "loc": { "start": { "line": 59, "column": 16 }, "end": { "line": 59, "column": 18 } } }, "loc": { "start": { "line": 59, "column": 11 }, "end": { "line": 59, "column": 18 } } }, "right": { "type": "Identifier", "name": "a3", "decorators": [], "loc": { "start": { "line": 59, "column": 21 }, "end": { "line": 59, "column": 23 } } }, "loc": { "start": { "line": 59, "column": 11 }, "end": { "line": 59, "column": 23 } } }, "right": { "type": "Identifier", "name": "a4", "decorators": [], "loc": { "start": { "line": 59, "column": 26 }, "end": { "line": 59, "column": 28 } } }, "loc": { "start": { "line": 59, "column": 11 }, "end": { "line": 59, "column": 28 } } }, "right": { "type": "Identifier", "name": "a5", "decorators": [], "loc": { "start": { "line": 59, "column": 31 }, "end": { "line": 59, "column": 33 } } }, "loc": { "start": { "line": 59, "column": 11 }, "end": { "line": 59, "column": 33 } } }, "loc": { "start": { "line": 59, "column": 5 }, "end": { "line": 59, "column": 33 } } }, "loc": { "start": { "line": 59, "column": 5 }, "end": { "line": 59, "column": 34 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": ">", "left": { "type": "Identifier", "name": "res", "decorators": [], "loc": { "start": { "line": 61, "column": 9 }, "end": { "line": 61, "column": 12 } } }, "right": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 61, "column": 15 }, "end": { "line": 61, "column": 16 } } }, "loc": { "start": { "line": 61, "column": 9 }, "end": { "line": 61, "column": 16 } } }, "consequent": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "MathPartialSums", "decorators": [], "loc": { "start": { "line": 62, "column": 7 }, "end": { "line": 62, "column": 22 } } }, "property": { "type": "Identifier", "name": "g_flag", "decorators": [], "loc": { "start": { "line": 62, "column": 23 }, "end": { "line": 62, "column": 29 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 62, "column": 7 }, "end": { "line": 62, "column": 29 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 62, "column": 32 }, "end": { "line": 62, "column": 33 } } }, "loc": { "start": { "line": 62, "column": 7 }, "end": { "line": 62, "column": 33 } } }, "loc": { "start": { "line": 62, "column": 7 }, "end": { "line": 62, "column": 34 } } } ], "loc": { "start": { "line": 61, "column": 18 }, "end": { "line": 63, "column": 6 } } }, "alternate": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "MathPartialSums", "decorators": [], "loc": { "start": { "line": 64, "column": 7 }, "end": { "line": 64, "column": 22 } } }, "property": { "type": "Identifier", "name": "g_flag", "decorators": [], "loc": { "start": { "line": 64, "column": 23 }, "end": { "line": 64, "column": 29 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 64, "column": 7 }, "end": { "line": 64, "column": 29 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 64, "column": 32 }, "end": { "line": 64, "column": 33 } } }, "loc": { "start": { "line": 64, "column": 7 }, "end": { "line": 64, "column": 33 } } }, "loc": { "start": { "line": 64, "column": 7 }, "end": { "line": 64, "column": 34 } } } ], "loc": { "start": { "line": 63, "column": 12 }, "end": { "line": 65, "column": 6 } } }, "loc": { "start": { "line": 61, "column": 5 }, "end": { "line": 65, "column": 6 } } }, { "type": "ReturnStatement", "argument": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "a6", "decorators": [], "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 14 } } }, "right": { "type": "Identifier", "name": "a7", "decorators": [], "loc": { "start": { "line": 69, "column": 17 }, "end": { "line": 69, "column": 19 } } }, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 19 } } }, "right": { "type": "Identifier", "name": "a8", "decorators": [], "loc": { "start": { "line": 69, "column": 22 }, "end": { "line": 69, "column": 24 } } }, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 24 } } }, "right": { "type": "Identifier", "name": "a9", "decorators": [], "loc": { "start": { "line": 69, "column": 27 }, "end": { "line": 69, "column": 29 } } }, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 29 } } }, "loc": { "start": { "line": 69, "column": 5 }, "end": { "line": 69, "column": 30 } } } ], "loc": { "start": { "line": 22, "column": 42 }, "end": { "line": 70, "column": 4 } } }, "loc": { "start": { "line": 22, "column": 25 }, "end": { "line": 70, "column": 4 } } }, "loc": { "start": { "line": 22, "column": 25 }, "end": { "line": 70, "column": 4 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 22, "column": 3 }, "end": { "line": 70, "column": 4 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "run", "decorators": [], "loc": { "start": { "line": 72, "column": 17 }, "end": { "line": 72, "column": 20 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "run", "decorators": [], "loc": { "start": { "line": 72, "column": 17 }, "end": { "line": 72, "column": 20 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 72, "column": 24 }, "end": { "line": 72, "column": 28 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "sum", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 73, "column": 14 }, "end": { "line": 73, "column": 20 } } }, "decorators": [], "loc": { "start": { "line": 73, "column": 9 }, "end": { "line": 73, "column": 12 } } }, "init": { "type": "NumberLiteral", "value": 0, "loc": { "start": { "line": 73, "column": 23 }, "end": { "line": 73, "column": 24 } } }, "loc": { "start": { "line": 73, "column": 9 }, "end": { "line": 73, "column": 24 } } } ], "kind": "let", "loc": { "start": { "line": 73, "column": 5 }, "end": { "line": 73, "column": 25 } } }, { "type": "ForUpdateStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "j", "typeAnnotation": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 74, "column": 17 }, "end": { "line": 74, "column": 20 } } }, "decorators": [], "loc": { "start": { "line": 74, "column": 14 }, "end": { "line": 74, "column": 15 } } }, "init": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "MathPartialSums", "decorators": [], "loc": { "start": { "line": 74, "column": 23 }, "end": { "line": 74, "column": 38 } } }, "property": { "type": "Identifier", "name": "n1", "decorators": [], "loc": { "start": { "line": 74, "column": 39 }, "end": { "line": 74, "column": 41 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 74, "column": 23 }, "end": { "line": 74, "column": 41 } } }, "loc": { "start": { "line": 74, "column": 14 }, "end": { "line": 74, "column": 41 } } } ], "kind": "let", "loc": { "start": { "line": 74, "column": 10 }, "end": { "line": 74, "column": 41 } } }, "test": { "type": "BinaryExpression", "operator": "<=", "left": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 74, "column": 43 }, "end": { "line": 74, "column": 44 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "MathPartialSums", "decorators": [], "loc": { "start": { "line": 74, "column": 48 }, "end": { "line": 74, "column": 63 } } }, "property": { "type": "Identifier", "name": "n2", "decorators": [], "loc": { "start": { "line": 74, "column": 64 }, "end": { "line": 74, "column": 66 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 74, "column": 48 }, "end": { "line": 74, "column": 66 } } }, "loc": { "start": { "line": 74, "column": 43 }, "end": { "line": 74, "column": 66 } } }, "update": { "type": "AssignmentExpression", "operator": "*=", "left": { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 74, "column": 68 }, "end": { "line": 74, "column": 69 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 74, "column": 73 }, "end": { "line": 74, "column": 74 } } }, "loc": { "start": { "line": 74, "column": 68 }, "end": { "line": 74, "column": 74 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "+=", "left": { "type": "Identifier", "name": "sum", "decorators": [], "loc": { "start": { "line": 75, "column": 7 }, "end": { "line": 75, "column": 10 } } }, "right": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "MathPartialSums", "decorators": [], "loc": { "start": { "line": 75, "column": 14 }, "end": { "line": 75, "column": 29 } } }, "property": { "type": "Identifier", "name": "partial", "decorators": [], "loc": { "start": { "line": 75, "column": 30 }, "end": { "line": 75, "column": 37 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 75, "column": 14 }, "end": { "line": 75, "column": 37 } } }, "arguments": [ { "type": "Identifier", "name": "j", "decorators": [], "loc": { "start": { "line": 75, "column": 38 }, "end": { "line": 75, "column": 39 } } } ], "optional": false, "loc": { "start": { "line": 75, "column": 14 }, "end": { "line": 75, "column": 40 } } }, "loc": { "start": { "line": 75, "column": 7 }, "end": { "line": 75, "column": 40 } } }, "loc": { "start": { "line": 75, "column": 7 }, "end": { "line": 75, "column": 41 } } } ], "loc": { "start": { "line": 74, "column": 76 }, "end": { "line": 76, "column": 6 } } }, "loc": { "start": { "line": 74, "column": 5 }, "end": { "line": 76, "column": 6 } } }, { "type": "AssertStatement", "test": { "type": "BinaryExpression", "operator": "==", "left": { "type": "Identifier", "name": "sum", "decorators": [], "loc": { "start": { "line": 78, "column": 12 }, "end": { "line": 78, "column": 15 } } }, "right": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "MathPartialSums", "decorators": [], "loc": { "start": { "line": 78, "column": 19 }, "end": { "line": 78, "column": 34 } } }, "property": { "type": "Identifier", "name": "expected", "decorators": [], "loc": { "start": { "line": 78, "column": 35 }, "end": { "line": 78, "column": 43 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 78, "column": 19 }, "end": { "line": 78, "column": 43 } } }, "loc": { "start": { "line": 78, "column": 12 }, "end": { "line": 78, "column": 43 } } }, "second": { "type": "StringLiteral", "value": "Incorrect result", "loc": { "start": { "line": 78, "column": 45 }, "end": { "line": 78, "column": 63 } } }, "loc": { "start": { "line": 78, "column": 5 }, "end": { "line": 78, "column": 63 } } }, { "type": "AssertStatement", "test": { "type": "LogicalExpression", "operator": "||", "left": { "type": "BinaryExpression", "operator": "==", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "MathPartialSums", "decorators": [], "loc": { "start": { "line": 79, "column": 12 }, "end": { "line": 79, "column": 27 } } }, "property": { "type": "Identifier", "name": "g_flag", "decorators": [], "loc": { "start": { "line": 79, "column": 28 }, "end": { "line": 79, "column": 34 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 79, "column": 12 }, "end": { "line": 79, "column": 34 } } }, "right": { "type": "NumberLiteral", "value": 1, "loc": { "start": { "line": 79, "column": 38 }, "end": { "line": 79, "column": 39 } } }, "loc": { "start": { "line": 79, "column": 12 }, "end": { "line": 79, "column": 39 } } }, "right": { "type": "BinaryExpression", "operator": "==", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "MathPartialSums", "decorators": [], "loc": { "start": { "line": 79, "column": 43 }, "end": { "line": 79, "column": 58 } } }, "property": { "type": "Identifier", "name": "g_flag", "decorators": [], "loc": { "start": { "line": 79, "column": 59 }, "end": { "line": 79, "column": 65 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 79, "column": 43 }, "end": { "line": 79, "column": 65 } } }, "right": { "type": "NumberLiteral", "value": 2, "loc": { "start": { "line": 79, "column": 69 }, "end": { "line": 79, "column": 70 } } }, "loc": { "start": { "line": 79, "column": 43 }, "end": { "line": 79, "column": 70 } } }, "loc": { "start": { "line": 79, "column": 12 }, "end": { "line": 79, "column": 70 } } }, "second": { "type": "StringLiteral", "value": "Incorrect g_flag", "loc": { "start": { "line": 79, "column": 72 }, "end": { "line": 79, "column": 90 } } }, "loc": { "start": { "line": 79, "column": 5 }, "end": { "line": 79, "column": 91 } } } ], "loc": { "start": { "line": 72, "column": 29 }, "end": { "line": 80, "column": 4 } } }, "loc": { "start": { "line": 72, "column": 20 }, "end": { "line": 80, "column": 4 } } }, "loc": { "start": { "line": 72, "column": 20 }, "end": { "line": 80, "column": 4 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 72, "column": 3 }, "end": { "line": 80, "column": 4 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "constructor", "static": false, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "constructor", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 81, "column": 2 }, "end": { "line": 81, "column": 2 } } } ], "loc": { "start": { "line": 16, "column": 30 }, "end": { "line": 81, "column": 2 } } }, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 81, "column": 2 } } }, { "type": "ClassDeclaration", "definition": { "id": { "type": "Identifier", "name": "ETSGLOBAL", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "superClass": null, "implements": [], "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "_$init$_", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "_$init$_", "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "generator": false, "async": false, "expression": false, "params": [], "body": { "type": "BlockStatement", "statements": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "main", "decorators": [], "loc": { "start": { "line": 83, "column": 10 }, "end": { "line": 83, "column": 14 } } }, "kind": "method", "accessibility": "public", "static": true, "optional": false, "computed": false, "value": { "type": "FunctionExpression", "function": { "type": "ScriptFunction", "id": { "type": "Identifier", "name": "main", "decorators": [], "loc": { "start": { "line": 83, "column": 10 }, "end": { "line": 83, "column": 14 } } }, "generator": false, "async": false, "expression": false, "params": [], "returnType": { "type": "ETSPrimitiveType", "loc": { "start": { "line": 83, "column": 18 }, "end": { "line": 83, "column": 22 } } }, "body": { "type": "BlockStatement", "statements": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "MathPartialSums", "decorators": [], "loc": { "start": { "line": 84, "column": 3 }, "end": { "line": 84, "column": 18 } } }, "property": { "type": "Identifier", "name": "run", "decorators": [], "loc": { "start": { "line": 84, "column": 19 }, "end": { "line": 84, "column": 22 } } }, "computed": false, "optional": false, "loc": { "start": { "line": 84, "column": 3 }, "end": { "line": 84, "column": 22 } } }, "arguments": [], "optional": false, "loc": { "start": { "line": 84, "column": 3 }, "end": { "line": 84, "column": 24 } } }, "loc": { "start": { "line": 84, "column": 3 }, "end": { "line": 84, "column": 25 } } } ], "loc": { "start": { "line": 83, "column": 23 }, "end": { "line": 85, "column": 2 } } }, "loc": { "start": { "line": 83, "column": 14 }, "end": { "line": 85, "column": 2 } } }, "loc": { "start": { "line": 83, "column": 14 }, "end": { "line": 85, "column": 2 } } }, "overloads": [], "decorators": [], "loc": { "start": { "line": 83, "column": 1 }, "end": { "line": 85, "column": 2 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } }, "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 1, "column": 1 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 86, "column": 1 } } }