int my_proc(int x) { int y; if(x == 0) { y = foo(); if(y > 0) return 10; else return 20; } else { y = bar(); if(y < 0) return 30; else return 40; } }