Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/ternary_op_7.stp

raw
1 function test(a) {
2 printf("%d\n", a > 0 ? a > 1 ? 3 : 4 : a < -1 ? 5 : 6);
3 }
4
5 probe oneshot {
6 test(2);
7 test(1);
8 test(-1);
9 test(-2);
10 }