Static Contract Checking