MCPcopy Create free account
hub / github.com/Singular/Singular / iiCheckTypes

Function iiCheckTypes

Singular/ipshell.cc:6565–6592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6563}
6564
6565BOOLEAN iiCheckTypes(leftv args, const short *type_list, int report)
6566{
6567 int l=0;
6568 if (args==NULL)
6569 {
6570 if (type_list[0]==0) return TRUE;
6571 }
6572 else l=args->listLength();
6573 if (l!=(int)type_list[0])
6574 {
6575 if (report) iiReportTypes(0,l,type_list);
6576 return FALSE;
6577 }
6578 for(int i=1;i<=l;i++,args=args->next)
6579 {
6580 short t=type_list[i];
6581 if (t!=ANY_TYPE)
6582 {
6583 if (((t==IDHDL)&&(args->rtyp!=IDHDL))
6584 || (t!=args->Typ()))
6585 {
6586 if (report) iiReportTypes(i,args->Typ(),type_list);
6587 return FALSE;
6588 }
6589 }
6590 }
6591 return TRUE;
6592}
6593
6594#if 0
6595void iiReportMethods(int args, int iiOp, char* cmd)

Callers 15

jjSYSTEMFunction · 0.85
jjEXTENDED_SYSTEMFunction · 0.85
evSwapFunction · 0.85
evRowElimFunction · 0.85
evColElimFunction · 0.85
jjCOEF_MFunction · 0.85
jjLU_INVERSEFunction · 0.85
jjLU_SOLVEFunction · 0.85
jjJET4Function · 0.85
jjLIFT_4Function · 0.85
jjLIFTSTD_MFunction · 0.85
jjMODULO4Function · 0.85

Calls 3

iiReportTypesFunction · 0.85
listLengthMethod · 0.80
TypMethod · 0.45

Tested by

no test coverage detected