MCPcopy Create free account
hub / github.com/LFYSec/MScan / switchCase

Method switchCase

src/test/resources/controlflow/CFG.java:51–82  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

49 }
50
51 int switchCase(int n) {
52 int x;
53 switch (n) {
54 case 1:
55 x = 1;
56 break;
57 case 2:
58 x = 2;
59 break;
60 case 3:
61 x = 3;
62 break;
63 default:
64 x = 100;
65 }
66 int y = x * x;
67 int z;
68 switch (y) {
69 case 1:
70 z = 1;
71 break;
72 case 100:
73 z = 100;
74 break;
75 case 1000:
76 z = 1000;
77 break;
78 default:
79 z = 10000;
80 }
81 return z;
82 }
83
84 int multiReturn(int n) {
85 if (n > 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected