be optimistic, even complex CFG may result in fast DFA

This commit is contained in:
peter
2012-03-16 19:29:43 +04:00
parent a24c4a1c89
commit efab68f1ca
3 changed files with 85 additions and 8 deletions
@@ -0,0 +1,56 @@
public abstract class DDD {
abstract boolean condition();
abstract Object foo();
abstract Object bar();
void test(Object o, DDD another) {
try {
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
System.out.println(condition() && equals(o) ? another.foo() : another.bar());
}
catch (Exception e) {
System.out.println(e);
}
}
}