How would you find all the bugs from a piece of code and verify your fixes?
Write a function that analyzes a function as text, detects likely bugs, and returns a corrected version plus a test report. Focus on common logic errors, off-by-one mistakes, unsafe mutation, and missing return paths. The input is a single string containing code, and the output should be a tuple of (fixed_code, verification_notes).
def find_and_fix_bugs(code):