stack allocation detector (initial)