September 8, 2025
DetectInfiniteLoop
to flag source code that will never terminate.while(True)
for i in range(10)
while True
, loops with constant conditions).while True
) but actually breaks out later.Example False Negative:
Looks like it will end, but runs forever.
Our program would incorrectly say: “No infinite loop detected.”
No runtime awareness: The analyzer only looks at code patterns — it does not execute the program.
Scope: Focuses only on simple patterns (while True
, infinite iterators) and may miss more subtle cases.
Proofgrammers