Hi Ayush,
> Attached is v3, with simplified tests and 0001 remains the same.
v3 applies cleanly, the tests pass. 0001 looks correct to me. 0002
catches the bug reliably: reverting just the recheck block makes it
fail.
Looks good to me.
--
Best regards,
Aleksander Alekseev