Changeset e2c181 in git for factory/variable.cc


Ignore:
Timestamp:
Feb 22, 2012, 4:26:12 PM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ff3a4f4a8e655885eb376e551f47339a6de25bf0
Parents:
43bbd6d912fd61156de899f0e8aa1e830a90b6d7
Message:
chg: enable assertions instead of being lazy
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/variable.cc

    r43bbd6 re2c181  
    151151#endif /* NOSTREAMIO */
    152152
    153 //static bool legal_mipo( const CanonicalForm & mipo )
    154 //{
    155 //    ASSERT( mipo.inPolyDomain(), "not a legal extension" );
    156 //    bool ok = true;
    157 //    for ( CFIterator i = mipo; ok && i.hasTerms(); i++ )
    158 //        ok = i.coeff().inBaseDomain();
    159 //    return ok;
    160 //}
    161 
    162153static CanonicalForm conv2mipo ( const CanonicalForm & mipo, const Variable alpha )
    163154{
     
    170161Variable rootOf( const CanonicalForm & mipo, char name )
    171162{
    172     //ASSERT( legal_mipo( mipo ), "not a legal extension" );
     163    ASSERT (mipo.inPolyDomain() && mipo.isUnivariate(), "not a legal extension");
    173164
    174165    int l;
Note: See TracChangeset for help on using the changeset viewer.