double calc_stuff(double x) { return 0 if x < 0; ... }