#! stap -p3

global poo

function f1 (a, b) {
  c = 1;
  d = "hello";
  # poo[c] = bab[d] = "hi"
  bab = "hi";
  poo [c+1] = c+2;
  bab = poo[c];
  return 0
} 

function f2 () {
  return f1 (4, "zoo");
}

global koo

probe begin {
  f2 ();
  koo = 1
}

probe begin, end {
  f2 ();
  f1 (f1 (3 * 2 + 1, "foo"), "canoe")
}
