Likelihood of an inflation bug

The likelihood of an inflation bug to happen is very small as it is in bitcoin. On one hand, due to the fact that the amounts are hidden in a transaction and verifying the equation 'Inputs = Outputs + Fees' is not straightforward then our brain naturally raise suspicion on that. On the other hand, with some efforts on understanding the equations behind it is possible for one to convince himself that this equation is really being obeyed.

Problem Consequences Solutions and how to avoid
Cryptographic hardness assumption breaks Everyone is screwed. Banking system collapses, internet crashes, total chaos. ?
Equations are wrong Monero users are screwed Audits, peer review, using secure cryptography, ...
Implementation flaws (focus of this work) Detectable inflation or Undetectable inflation Constant testing of the code, verification with other tools, more people using and exploiting, more works like this, patch the code , ...