@Test public void testMakeInBoundsUintTernaryRemoved() throws Exception { final TranslationUnit tu = ParseHelper.parse("#version 100\n" + "void main() {\n" + " float A[4];\n" + " A[_GLF_MAKE_IN_BOUNDS_UINT(A[_GLF_MAKE_IN_BOUNDS_UINT(3u, 4u)], 4u)] = 1.0;\n" + "}\n" ); final String inner = "A[((3u) >= 4u ? 4u - 1u : (3u))]"; final String expected = "#version 100\n" + "void main() {\n" + " float A[4];\n" + " A[((" + inner + ") >= 4u ? 4u - 1u : (" + inner + "))] = 1.0;\n" + "}\n"; final TranslationUnit simplifiedTu = Simplify.simplify(tu); CompareAsts.assertEqualAsts(expected, simplifiedTu); }
public static TranslationUnit simplify(TranslationUnit tu) { return AddBraces.transform(EliminateGraphicsFuzzDefines.transform(tu)); }
Simplify { public static TranslationUnit simplify(TranslationUnit tu) { return AddBraces.transform(EliminateGraphicsFuzzDefines.transform(tu)); } }
Simplify { public static TranslationUnit simplify(TranslationUnit tu) { return AddBraces.transform(EliminateGraphicsFuzzDefines.transform(tu)); }  }
Simplify { public static TranslationUnit simplify(TranslationUnit tu) { return AddBraces.transform(EliminateGraphicsFuzzDefines.transform(tu)); }  static TranslationUnit simplify(TranslationUnit tu); }
Simplify { public static TranslationUnit simplify(TranslationUnit tu) { return AddBraces.transform(EliminateGraphicsFuzzDefines.transform(tu)); }  static TranslationUnit simplify(TranslationUnit tu);  }