OBR*(M+L)*NOBR + (N+L)*(N+M) +
                     MAX( LDW1, LDW2 ),
                     (N+L)*(N+M) + N + N*N + 2 + N*(N+M+L) +
                     MAX( 5*N, 2, MIN( LDW3, LDW4 ), LDW5, LDW6 ),
              where,
              LDW1 &gt;= MAX( 2*(L*NOBR-L)*N+2*N, (L*NOBR-L)*N+N*N+7*N,
                           L*NOBR*N +
                           MAX( (L*NOBR-L)*N+2*N + (2*M+L)*NOBR+L,
                                2*(L*NOBR-L)*N+N*N+8*N,
                                N+4*(M*NOBR+N)+1, M*NOBR+3*