@Test
public void testMakeInBoundsIntTernaryRemoved() throws Exception {

  final TranslationUnit tu = ParseHelper.parse("#version 100\n"
      + "void main() {\n"
      + "  float A[4];\n"
      + "  A[_GLF_MAKE_IN_BOUNDS_INT(A[_GLF_MAKE_IN_BOUNDS_INT(3, 4)], 4)] = 1.0;\n"
      + "}\n"
  );
  final String inner = "A[((3) < 0 ? 0 : ((3) >= 4 ? 4 - 1 : (3)))]";
  final String expected = "#version 100\n"
      + "void main() {\n"
      + "  float A[4];\n"
      + "  A[((" + inner + ") < 0 ? 0 : ((" + inner + ") >= 4 ? 4 - 1 : (" + inner + ")))] = 1"
      + ".0;\n"
      + "}\n";
  final TranslationUnit simplifiedTu = Simplify.simplify(tu);
  CompareAsts.assertEqualAsts(expected, simplifiedTu);
}