Synomni Interpreter

Source

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
29
30
31
32
33
34
35
36
37
38
38
lines
6
functions
1.7
avg complexity
5
findings
entryfunctionarrow fnclassmethodcontains
▶ program starttop-level codeCartclass · L21–33Cart.constructor() · L22Complexity 1 · 0 loop(s) · depth 0Cart.add(item) · L25Complexity 2 · 0 loop(s) · depth 0Cart.total(coupon) · L30Complexity 1 · 0 loop(s) · depth 0calculateTotal(items, taxRate, coupon) · …Complexity 2 · 1 loop(s) · depth 1applyDiscount(amount, coupon) · L13Complexity 3 · 0 loop(s) · depth 0applyTax(amount, rate) · L19Complexity 1 · 0 loop(s) · depth 0

Arrows point from caller to callee. Bars show branching complexity. Click a node to highlight its code.