First cut of basicBlocks looks good

Not rigorously tested.