English is not my primary language but I'm "forced" to write code and code's comments in English. I'm now trying to develop a PHP code (doesn't really matter this aspect) like this:
function divide($x, $y) {}
Which describes a function that divide $x / $y. Now I want to be able to add a comment related to that function listing few pre-conditions such as
@[A]: $x is an int
@[A]: $y is an int
@[A]: $y != 0
and a list of post-conditions (that are verified only if the pre-conditions are respected), such as:
@[B]: returns $x / $y
How should I call [A] and [B] using a contract metaphor?
Something like [A] = "law" and [B] = "assurance" (which is obliviously wrong). How should I better call them to make it appears that
If you follow all the [A]s I'll guarantee you that [B] will be verified.
?

