Finds calls that hand a function a value its contract rules out, like combn(4, -1) for m >= 0, or that leave out an
argument it needs: such a call fails whenever it runs. The conditions of the guards of the callee are taken to the call
as the guard analysis takes them to a caller, and are only reported if they fail for every value the arguments may hold.
Readonlyinfo: { certainty:BestEffort; defaultConfig:()=>{}; description:"Finds calls that hand a function a value its contract rules out, or leave out an argument it needs, so they fail whenever they run."; name:"Call Contracts"; tags:readonly[Bug,Robustness]; }
Finds calls that hand a function a value its contract rules out, like
combn(4, -1)form >= 0, or that leave out an argument it needs: such a call fails whenever it runs. The conditions of the guards of the callee are taken to the call as the guard analysis takes them to a caller, and are only reported if they fail for every value the arguments may hold.