skip __WDTCTL fake global
make foo() return a value in 1e5 sample
cherry-pick 1e5 testcase from adaptive branch
import some code simplifications from adaptive branch