// IDEA-191876 class Test { void test(String s) { int x = s.indexOf("foo")+"foo".length(); if (x == -1) { System.out.println("Impossible"); } } void test2() { for(int i=0; i<3; i++){ // loop is unrolled String s = String.valueOf(i); if(s.length() > 1) { System.out.println("Impossible"); } } } void test3(boolean b) { String s = b ? "Hello" : "World"; if(s.indexOf('o') == 1 && b) { System.out.println("Impossible"); } } }