Ignore:
Timestamp:
Feb 1, 2018, 3:15:38 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
68395808f4180002f73bcf7dd2f2447899b0d865
Parents:
6777f2415ca33645c59e3d8e9bd5210e5f2b3ff4
Message:
removed more debug stuff from syzextra
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/dyn_modules/syzextra/syzextra.h

    r6777f2 r349ee0c  
    7171  private:
    7272    typedef std::stack <sBucket_pt> Base;
    73 //    typedef std::vector<Bucket> Memory;
    74 //    typedef std::deque <Bucket> Memory;
    75 //    typedef std::stack <Bucket, Memory > Base;
    7673
    7774  public:
     
    7976
    8077    SBucketFactory(const ring r)
    81 #ifndef SING_NDEBUG
    82         : m_ring(r)
    83 #endif
    8478    {
    8579      push ( _CreateBucket(r) ); // start with at least one sBucket...?
     
    9892    Bucket getBucket(const ring r, const bool remove = true)
    9993    {
    100       assume( r == m_ring );
    101 
    10294      Bucket bt = NULL;
    10395
     
    121113
    122114      assume( bt != NULL );
    123       assume( _IsBucketEmpty(bt) );
    124       assume( r == _GetBucketRing(bt) );
    125115
    126116      return bt;
     
    131121    {
    132122      assume( bt != NULL );
    133       assume( _IsBucketEmpty(bt) );
    134       assume( m_ring == _GetBucketRing(bt) );
    135123
    136124      if( empty() )
     
    151139
    152140  private:
    153 
    154 #ifndef SING_NDEBUG
    155     const ring m_ring; ///< For debugging: all buckets are over the same ring... right?!
    156 
    157     /// get bucket ring
    158     static ring _GetBucketRing(const Bucket& bt);
    159 
    160     static bool  _IsBucketEmpty(const Bucket& bt);
    161 #endif
    162 
    163141    /// inital allocation for new buckets
    164142    static Bucket _CreateBucket(const ring r);
     
    258236    CLeadingTerm(unsigned int label,  const poly lt, const ring);
    259237
    260 #ifndef SING_NDEBUG
    261     ~CLeadingTerm();
    262 #endif
    263 
    264238#if NOPRODUCT
    265239    bool DivisibilityCheck(const poly multiplier, const poly t, const unsigned long not_sev, const ring r) const;
     
    269243    bool CheckLT( const ideal & L ) const;
    270244
    271 #ifndef SING_NDEBUG
    272     poly lt() const;
    273     unsigned long sev() const;
    274     unsigned int label() const;
    275 #else
    276245    inline poly lt() const { return m_lt; };
    277246    inline unsigned long sev() const { return m_sev; };
    278247    inline unsigned int label() const { return m_label; };
    279 #endif
    280 
    281248  private:
    282249    const unsigned long m_sev; ///< not short exp. vector
     
    286253
    287254    const poly          m_lt; ///< the leading term itself L[label-1]
    288 
    289 #ifndef SING_NDEBUG
    290     const ring _R;
    291 
    292     const poly          m_lt_copy; ///< original copy of LEAD(lt) (only for debug!!!)
    293 #endif
    294255
    295256    // disable the following:
     
    340301    /// is the term to be "preprocessed" as lower order term or lead to only reducible syzygies...
    341302    int PreProcessTerm(const poly t, CReducerFinder& syzChecker) const;
    342 
    343 #ifndef SING_NDEBUG
    344     void DebugPrint() const;
    345     void Verify() const;
    346 #endif
    347303
    348304  private:
     
    525481    CReducerFinder m_checker;
    526482
    527     /*
    528     // need more data here:
    529     // (m_idLeads : m_tailterm) = (m, pos, compl), s.th: compl * m_tailterm divides m_idLeads[pos]
    530     // but resulting sysygy compl * gen(pos) should not be in
    531     // Idea: extend CReducerFinder??!!
    532     struct CTailTerm
    533     {
    534       const poly m_tailterm;
    535 
    536       const CReducerFinder m_reducers; // positions are labels (in m_idLeads)...
    537       // compl - to be computed if needed?
    538 
    539       CTailTerm(const poly tt, const CReducerFinder reds): m_tailterm(tt), m_reducers(reds) {}
    540     };
    541 
    542     typedef std::vector<const CTailTerm*> TTail;
    543     typedef std::vector<TTail> TTailTerms;
    544 
    545     TTailTerms m_idTailTerms;
    546     */
    547 
    548483    mutable TCache m_cache; // cacher comp + poly -> poly! // mutable???
    549 
    550 /// TODO: look into m_idTailTerms!!!!!!!!!!!!!!!!!!!!!!!! map? heaps???
    551     // NOTE/TODO: the following globally shared buckets violate reentrance - they should rather belong to TLS!
    552484
    553485    /// used for simple summing up
Note: See TracChangeset for help on using the changeset viewer.