This pass doesn't really test for nestedLoop. It only test if a node contains For.
May be you should change the name of this analysis? Or Test for at least 2 For?
Also, why you are not checking for While nodes?