You are viewing a single comment's thread from:
RE: Formal Verification of Smart Contracts and Wren
Your question reveals how difficult it is to write correct programs and I found this video:
The video seems to illustrates what your question leads to. So we can never fully know certain things and the video mentions reachability and Rice's Theorem.
Reference