Simplified; bug removed ; but instrumented
fold boundaries dectection bug fixed
Helper script to test ideal fold-expression results