Compiler-Embedded Model Checker Catches Escrow Double-Payout Bug at Build Time
A developer built an escrow contract with five actions and wanted to catch bugs that unit tests miss, so the Fe compiler runs a breadth-first search over every reachable state during compilation. The search checks five invariants on every state and transition and fails the build if any is violated. When a Refund guard condition was removed, the build failed and named the broken 'paid once' invariant, and a second search returned the shortest attack sequence: Deposit, Deposit, Lock, Release, Refund. Replaying that sequence on the EVM confirmed the patched contract accepts it while the original rejects the Refund. The search must finish within Fe 26.6.0's fixed limit of 1,000,000 evaluator steps per assertion, which the author measured indirectly, since the evaluator does not report usage.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in