Lines Matching refs:n
41 static void deadSingleLoopN(int n) { in deadSingleLoopN() argument
42 for (int i = 0; i < n; i++) { in deadSingleLoopN()
51 static void potentialInfiniteLoop(int n) { in potentialInfiniteLoop() argument
52 for (int i = 0; i <= n; i++) { // loops forever when n = MAX_INT in potentialInfiniteLoop()
102 public static void deadConditional(int n) { in deadConditional() argument
105 for (int i = 0; i < n; i++) { in deadConditional()
122 public static void deadConditionalCycle(int n) { in deadConditionalCycle() argument
125 for (int i = 0; i < n; i++) { in deadConditionalCycle()
335 static int closedFormInductionUpN(int n) { in closedFormInductionUpN() argument
337 for (int i = 0; i < n; i++) { in closedFormInductionUpN()
344 static int closedFormInductionInAndDownN(int closed, int n) { in closedFormInductionInAndDownN() argument
345 for (int i = 0; i < n; i++) { in closedFormInductionInAndDownN()
352 static int closedFormNestedN(int n) { in closedFormNestedN() argument
354 for (int i = 0; i < n; i++) { in closedFormNestedN()
363 static int closedFormNestedNAlt(int n) { in closedFormNestedNAlt() argument
365 for (int i = 0; i < n; i++) { in closedFormNestedNAlt()
374 static int closedFormNestedMN(int m, int n) { in closedFormNestedMN() argument
377 for (int j = 0; j < n; j++) { in closedFormNestedMN()
385 static int closedFormNestedMNAlt(int m, int n) { in closedFormNestedMNAlt() argument
388 for (int j = 0; j < n; j++) { in closedFormNestedMNAlt()
485 static int mainIndexReturnedN(int n) { in mainIndexReturnedN() argument
487 for (i = 0; i < n; i++); in mainIndexReturnedN()
512 static int periodicReturnedN(int n) { in periodicReturnedN() argument
514 for (int i = 0; i < n; i++) { in periodicReturnedN()
521 private static int getSumN(int n) { in getSumN() argument
524 for (int i = 0; i < n; i++) { in getSumN()
698 private static boolean periodicBoolIdiom1N(boolean x, int n) { in periodicBoolIdiom1N() argument
699 for (int i = 0; i < n; i++) { in periodicBoolIdiom1N()
712 private static boolean periodicBoolIdiom2N(boolean x, int n) { in periodicBoolIdiom2N() argument
713 for (int i = 0; i < n; i++) { in periodicBoolIdiom2N()
726 private static boolean periodicBoolIdiom3N(boolean x, int n) { in periodicBoolIdiom3N() argument
727 for (int i = 0; i < n; i++) { in periodicBoolIdiom3N()
871 for (int n = -4; n < 10; n++) { in main()
872 int tc = (n <= 0) ? 0 : n; in main()
873 expectEquals(12345 + tc * 5, closedFormInductionUpN(n)); in main()
874 expectEquals(12345 - tc * 5, closedFormInductionInAndDownN(12345, n)); in main()
875 expectEquals(tc * 10, closedFormNestedN(n)); in main()
876 expectEquals(12345 + tc * 23 * 7, closedFormNestedNAlt(n)); in main()
877 expectEquals(tc * (tc + 1), closedFormNestedMN(n, n + 1)); in main()
878 expectEquals(12345 + tc * (tc + 1) * 7, closedFormNestedMNAlt(n, n + 1)); in main()
886 for (int n = -4; n < 4; n++) { in main()
887 int tc = (n <= 0) ? 0 : n; in main()
888 expectEquals(tc, mainIndexReturnedN(n)); in main()
889 expectEquals(tc, mainIndexShort1((short) n)); in main()
890 expectEquals(tc, mainIndexShort2((short) n)); in main()
891 expectEquals(tc & 1, periodicReturnedN(n)); in main()
892 expectEquals((tc * (tc + 1)) / 2, getSumN(n)); in main()
904 for (int n = -4; n < 10; n++) { in main()
905 int tc = (n <= 0) ? 0 : n; in main()
907 expectEquals(even, periodicBoolIdiom1N(true, n)); in main()
908 expectEquals(!even, periodicBoolIdiom1N(false, n)); in main()
909 expectEquals(even, periodicBoolIdiom2N(true, n)); in main()
910 expectEquals(!even, periodicBoolIdiom2N(false, n)); in main()
911 expectEquals(even, periodicBoolIdiom3N(true, n)); in main()
912 expectEquals(!even, periodicBoolIdiom3N(false, n)); in main()