次の選択肢のどれを使用するかについてのコンセンサスはありますか(ここではC言語で例示されています)?
すべてのパラメーターに対して1つのアサーション:
int f(int m, int n) { assert((m >= 0) && (m <= mmax) && (n >= 0) && (n <= nmax)); ... }
パラメータごとに1つのアサーション:
int f(int m, int n) { assert((m >= 0) && (m <= mmax)); assert((n >= 0) && (n <= nmax)); ... }
原子条件によるアサーション:
int f(int m, int n) { assert(m >= 0); assert(m <= mmax); assert(n >= 0); assert(n <= nmax); ... }