forked from oracle/graal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagent-sum.test
More file actions
28 lines (28 loc) · 849 Bytes
/
agent-sum.test
File metadata and controls
28 lines (28 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
> js agent-sum.js
21
> js --insight=agent-summul.js agent-sum.js
720
> js --insight=agent-summul2.js agent-sum.js
720
> js --insight=agent-sumneg.js agent-sum.js
Original value was 21, but returning -21
-21
> js --insight=agent-summul2.js agent-fib.js
Three is the result 80
> js --insight=agent-summul3.js agent-sum.js
enter of plus with 1 * 1 * 2 = 2
enter of plus with 2 * 1 * 2 = 4
enter of plus with 3 * 1 * 2 = 6
enter of plus with 1 * 2 * 3 = 6
enter of plus with 2 * 2 * 3 = 12
enter of plus with 3 * 2 * 3 = 18
enter of plus with 1 * 6 * 4 = 24
enter of plus with 2 * 6 * 4 = 48
enter of plus with 3 * 6 * 4 = 72
enter of plus with 1 * 24 * 5 = 120
enter of plus with 2 * 24 * 5 = 240
enter of plus with 3 * 24 * 5 = 360
enter of plus with 1 * 120 * 6 = 720
enter of plus with 2 * 120 * 6 = 1440
enter of plus with 3 * 120 * 6 = 2160
720