model: Implement getBasicBlocksFromInstructions

And unit test.