Ada Pre and Post Conditions
Ada preconditions and post-conditions are implemented using aspect clauses. While aspect clauses can include many other terms used to specify program behavior, this posting will focus on preconditions and post-conditions. A thorough discussion of preconditions and post-conditions can be found at http://www.ada-auth.org/standards/12rat/html/Rat12-2-3.html Since its first official version in 1983 the Ada language has always allowed the programmer to define data types and subtypes with specific ranges. For example: type Byte is range -2**7..2**7 – 1; -- signed integer type type Unsigned_Byte is mod 2**8; -- modular type type Normalized is digits 5 range 0.0..1.0; -- floating point type type Money is digits 10 delta 0.01; -- decimal fixed point type subtype Uppers is Character...