#! stap -p4

global a

function foo () {
  if (a[4] == "sayonara") { return 2 } else { log ("no sayonara") }
}


probe begin {
  a[1] = "hello"
  a[2] = "goodbye"
  foreach (k in a) {
    log (a[k])
    for (i=0; i<10; i++) {
      printf("k=%d i=%d\n", k, i)
      if (k % (i+1)) break else continue
    }
    if (k % 3) { foo() ; next }
  }
}
