@Test
public void testMakeInBoundsIntClampRemoved() throws Exception {

  final TranslationUnit tu = ParseHelper.parse("#version 310 es\n"
      + "void main() {\n"
      + "  float A[4];\n"
      + "  A[_GLF_MAKE_IN_BOUNDS_INT(A[_GLF_MAKE_IN_BOUNDS_INT(3, 4)], 4)] =\n"
      + "      A[_GLF_MAKE_IN_BOUNDS_INT(1 + 2, 4)];\n"
      + "}\n"
  );
  final String expected = "#version 310 es\n"
      + "void main() {\n"
      + "  float A[4];\n"
      + "  A[clamp(A[clamp(3, 0, 4 - 1)], 0, 4 - 1)] =\n"
      + "      A[clamp(1 + 2, 0, 4 - 1)];\n"
      + "}\n";
  final TranslationUnit simplifiedTu = Simplify.simplify(tu);
  CompareAsts.assertEqualAsts(expected, simplifiedTu);
}