added test script
[IRC.git] / Robust / src / Runtime / runtime.c
index 5b6afb19355366ad8164abaedf637dd802311006..bb933db3cf89a4361a8362f4ee0395741ef936f6 100644 (file)
@@ -13,7 +13,7 @@ int ___Object______hashcode____(struct ___Object___ * ___this___) {
 }
 
 void ___System______printInt____I(int x) {
-  printf("%d\n",x);
+  printf("%d",x);
 }
 
 void ___System______printString____L___String___(struct ___String___ * s) {
@@ -48,3 +48,13 @@ struct ___String___ * NewString(char *str,int length) {
     ((short *)(((char *)& chararray->___length___)+sizeof(int)))[i]=(short)str[i];  }
   return strobj;
 }
+
+void failedboundschk() {
+  printf("Array out of bounds\n");
+  exit(-1);
+}
+
+void failednullptr() {
+  printf("Dereferenced a null pointer\n");
+  exit(-1);
+}