>>652

int val1;
Integer val2;
int[] val3 = new int[10];
val2 = malloc(...);
foo1(Integer.valueOf(val1));
foo2(val2);
foo3(val3);