This procedure (algorithm) is ill-defined (is not realisable by a TM) as it would require verifying two things:
a) the code you are about to write has a bug (ie. has a specific property)
b) the code you wrote does not have a bug (ie. has a specific property)
Rice's theorem says both are impossible.