Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LFYSec/MScan
/ returnLMostLoopTwice
Method
returnLMostLoopTwice
src/test/resources/sideeffect/Loops.java:32–36 ·
view source on GitHub ↗
(Tree x)
Source
from the content-addressed store, hash-verified
30
}
31
32
public
static
Tree returnLMostLoopTwice(Tree x) {
33
while
(x.l != null) x = x.l;
34
while
(x.l != null) x = x.l;
35
return
x;
36
}
37
38
public
static
Tree returnLMostThenRMostLoop(Tree x) {
39
while
(x.l != null) x = x.l;
Callers
1
main
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected