public static int f(int a, int b)
{
Z.h1(a, b); //// arbitrary code

if (Z.h2(a, b))
return Z.h3(a, b);

else
{
...