Changeset f115489 in git


Ignore:
Timestamp:
Apr 4, 2011, 5:33:01 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
411e00284c145360dd10ef3b78b69b0e3f3d5e0f
Parents:
8047af8c8db1aff17222fa052c81d384e6e62769
Message:
ADD: bugtest for ntIntDiv & p_Content using syzextra

From: Oleksandr Motsak <motsak@mathematik.uni-kl.de>

git-svn-id: file:///usr/local/Singular/svn/trunk@14091 2c84dea3-7e68-4137-9b89-c4e89433aadc
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • dyn_modules/syzextra/mod_main.cc

    r8047af8 rf115489  
    88#include <kernel/longrat.h>
    99#include <kernel/kstd1.h>
     10
     11#include <kernel/polys.h>
    1012
    1113#include <Singular/tok.h>
     
    760762  return FALSE;
    761763}
    762      
     764
     765/// Get raw syzygies (idPrepare)
     766static BOOLEAN _p_Content(leftv res, leftv h)
     767{
     768  if ( !( (h!=NULL) && (h->Typ()==POLY_CMD) && (h->Data() != NULL) ) )
     769  {
     770    WerrorS("`system(\"p_Content\",<poly-var>)` expected");
     771    return TRUE;
     772  }
     773
     774
     775  const poly p = reinterpret_cast<poly>(h->Data());
     776
     777 
     778  pTest(p);  pWrite(p); PrintLn();
     779
     780 
     781  p_Content( p, currRing);     
     782
     783  pTest(p);
     784  pWrite(p); PrintLn();
     785 
     786  NoReturn(res);
     787}
     788
    763789END_NAMESPACE
    764790
     
    787813  psModulFunctions->iiAddCproc(currPack->libname,(char*)"reduce_syz",FALSE, reduce_syz);
    788814
    789 //  psModulFunctions->iiAddCproc(currPack->libname,(char*)"",FALSE, );
     815  psModulFunctions->iiAddCproc(currPack->libname,(char*)"p_Content",FALSE, _p_Content);
     816
     817  //  psModulFunctions->iiAddCproc(currPack->libname,(char*)"",FALSE, );
    790818 
    791819  return 0;
  • kernel/longtrans.cc

    r8047af8 rf115489  
    13721372number ntIntDiv(number la, number lb)
    13731373{
     1374  ntTest(la);
     1375  ntTest(lb);
    13741376  lnumber res;
    13751377  lnumber a = (lnumber)la;
     
    13841386    return NULL;
    13851387  }
     1388#ifdef LDEBUG
     1389  omCheckAddrSize(a,sizeof(snumber));
     1390  omCheckAddrSize(b,sizeof(snumber));
     1391#endif
    13861392  assume(a->z!=NULL && b->z!=NULL);
    13871393  assume(a->n==NULL && b->n==NULL);
Note: See TracChangeset for help on using the changeset viewer.