add bycontracts.cc and invarients.cc