INFO: No output directory specified (--dir) INFO: Using directory: "ISIS_OSIRIS_20250813_210500" INFO: Regenerating c-file: ISIS_OSIRIS.c DEBUG: CMD: /home/willend/micromamba/bin/mcstas -t -o ./ISIS_OSIRIS.c ISIS_OSIRIS.instr Info: 'ISIS_moderator' is a contributed component. Info: 'Guide_curved' is a contributed component. CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /home/willend/micromamba/bin/mcstas finished INFO: Linting generated code: ./ISIS_OSIRIS.c DEBUG: CMD: cppcheck ./ISIS_OSIRIS.c --check-level=exhaustive --force -DMCDEFAULT_NCOUNT=1000000 -UMC_PORTABLE -DND_BUFFER=10000000 -UNOABSORB_INF_NAN -UOMPI_MPI_H -DSIGABRT -DSIGBREAK -DSIGBUS -DSIGPE -DSIGHUP -DSIGILL -DSIGINT -DSIGKILL -DSIGUSR1 -DSIGUSR2 -DSIGPIPE -DSIGQUIT -DSIGSEGV -DSIGTRAP -DSIGURG -DSIGFPE -DSIGKILL -DSIGTERM -UTEST -UUSE_OPENCL -UWIN32 -UOPENACC -UGCCOFFLOAD -U_MSC_VER -U_MSC_EXTENSIONS -U_WIN32 -UWIN32 -D__unix__ -UDANSE -UFUNNEL -UMC_ANCIENT_COMPATIBILITY -UMC_POL_COMPAT -UNEUTRONICS -Uisnan -Uisinf Checking ISIS_OSIRIS.c ... Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1... ISIS_OSIRIS.c:7080:3: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] C[0]=Y[0]; ^ ISIS_OSIRIS.c:7070:21: note: Assuming allocation function fails double *C = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7070:21: note: Assignment 'C=malloc(Psize*sizeof(double))', assigned value is 0 double *C = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7080:3: note: Null pointer dereference C[0]=Y[0]; ^ ISIS_OSIRIS.c:7081:3: warning: If memory allocation fails, then there is a possible null pointer dereference: D [nullPointerOutOfMemory] D[0]=Y[0]; ^ ISIS_OSIRIS.c:7071:21: note: Assuming allocation function fails double *D = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7071:21: note: Assignment 'D=malloc(Psize*sizeof(double))', assigned value is 0 double *D = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7081:3: note: Null pointer dereference D[0]=Y[0]; ^ ISIS_OSIRIS.c:7090:7: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] C[i]=Y[i]; ^ ISIS_OSIRIS.c:7070:21: note: Assuming allocation function fails double *C = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7070:21: note: Assignment 'C=malloc(Psize*sizeof(double))', assigned value is 0 double *C = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7090:7: note: Null pointer dereference C[i]=Y[i]; ^ ISIS_OSIRIS.c:7091:7: warning: If memory allocation fails, then there is a possible null pointer dereference: D [nullPointerOutOfMemory] D[i]=Y[i]; ^ ISIS_OSIRIS.c:7071:21: note: Assuming allocation function fails double *D = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7071:21: note: Assignment 'D=malloc(Psize*sizeof(double))', assigned value is 0 double *D = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7091:7: note: Null pointer dereference D[i]=Y[i]; ^ ISIS_OSIRIS.c:7103:6: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] w=C[i+1]-D[i]; ^ ISIS_OSIRIS.c:7070:21: note: Assuming allocation function fails double *C = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7070:21: note: Assignment 'C=malloc(Psize*sizeof(double))', assigned value is 0 double *C = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7103:6: note: Null pointer dereference w=C[i+1]-D[i]; ^ ISIS_OSIRIS.c:7103:13: warning: If memory allocation fails, then there is a possible null pointer dereference: D [nullPointerOutOfMemory] w=C[i+1]-D[i]; ^ ISIS_OSIRIS.c:7071:21: note: Assuming allocation function fails double *D = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7071:21: note: Assignment 'D=malloc(Psize*sizeof(double))', assigned value is 0 double *D = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7103:13: note: Null pointer dereference w=C[i+1]-D[i]; ^ ISIS_OSIRIS.c:7106:4: warning: If memory allocation fails, then there is a possible null pointer dereference: D [nullPointerOutOfMemory] D[i]=hp*den; ^ ISIS_OSIRIS.c:7071:21: note: Assuming allocation function fails double *D = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7071:21: note: Assignment 'D=malloc(Psize*sizeof(double))', assigned value is 0 double *D = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7106:4: note: Null pointer dereference D[i]=hp*den; ^ ISIS_OSIRIS.c:7107:4: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] C[i]=ho*den; ^ ISIS_OSIRIS.c:7070:21: note: Assuming allocation function fails double *C = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7070:21: note: Assignment 'C=malloc(Psize*sizeof(double))', assigned value is 0 double *C = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7107:4: note: Null pointer dereference C[i]=ho*den; ^ ISIS_OSIRIS.c:7110:38: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] errOut= (2*(ns+1)<(Psize-m)) ? C[ns+1] : D[ns--]; ^ ISIS_OSIRIS.c:7070:21: note: Assuming allocation function fails double *C = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7070:21: note: Assignment 'C=malloc(Psize*sizeof(double))', assigned value is 0 double *C = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7110:38: note: Null pointer dereference errOut= (2*(ns+1)<(Psize-m)) ? C[ns+1] : D[ns--]; ^ ISIS_OSIRIS.c:7110:48: warning: If memory allocation fails, then there is a possible null pointer dereference: D [nullPointerOutOfMemory] errOut= (2*(ns+1)<(Psize-m)) ? C[ns+1] : D[ns--]; ^ ISIS_OSIRIS.c:7071:21: note: Assuming allocation function fails double *D = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7071:21: note: Assignment 'D=malloc(Psize*sizeof(double))', assigned value is 0 double *D = malloc(Psize*sizeof(double)); ^ ISIS_OSIRIS.c:7110:48: note: Null pointer dereference errOut= (2*(ns+1)<(Psize-m)) ? C[ns+1] : D[ns--]; ^ ISIS_OSIRIS.c:7174:7: warning: If memory allocation fails, then there is a possible null pointer dereference: ss [nullPointerOutOfMemory] ss[j]=mc[i]; ^ ISIS_OSIRIS.c:7169:12: note: Assuming allocation function fails ss=malloc(sizeof(char)*(len+1)); ^ ISIS_OSIRIS.c:7169:12: note: Assignment 'ss=malloc(sizeof(char)*(len+1))', assigned value is 0 ss=malloc(sizeof(char)*(len+1)); ^ ISIS_OSIRIS.c:7174:7: note: Null pointer dereference ss[j]=mc[i]; ^ ISIS_OSIRIS.c:7642:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ss [nullPointerOutOfMemory] ss[j]=mc[i]; ^ ISIS_OSIRIS.c:7637:16: note: Assuming allocation function fails ss=malloc(sizeof(char)*(len+1)); ^ ISIS_OSIRIS.c:7637:16: note: Assignment 'ss=malloc(sizeof(char)*(len+1))', assigned value is 0 ss=malloc(sizeof(char)*(len+1)); ^ ISIS_OSIRIS.c:7642:4: note: Null pointer dereference ss[j]=mc[i]; ^ ISIS_OSIRIS.c:11686:3: warning: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] node->depth = depth; ^ ISIS_OSIRIS.c:11685:26: note: Assuming allocation function fails treeNode *node = malloc(sizeof(treeNode)); ^ ISIS_OSIRIS.c:11685:26: note: Assignment 'node=malloc(sizeof(struct treeNode))', assigned value is 0 treeNode *node = malloc(sizeof(treeNode)); ^ ISIS_OSIRIS.c:11686:3: note: Null pointer dereference node->depth = depth; ^ ISIS_OSIRIS.c:11689:3: warning: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] node->point = points[med]; ^ ISIS_OSIRIS.c:11685:26: note: Assuming allocation function fails treeNode *node = malloc(sizeof(treeNode)); ^ ISIS_OSIRIS.c:11685:26: note: Assignment 'node=malloc(sizeof(struct treeNode))', assigned value is 0 treeNode *node = malloc(sizeof(treeNode)); ^ ISIS_OSIRIS.c:11689:3: note: Null pointer dereference node->point = points[med]; ^ ISIS_OSIRIS.c:11691:3: warning: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] node->lChild = kdtree_addToTree(points, left, med-1, depth + 1); ^ ISIS_OSIRIS.c:11685:26: note: Assuming allocation function fails treeNode *node = malloc(sizeof(treeNode)); ^ ISIS_OSIRIS.c:11685:26: note: Assignment 'node=malloc(sizeof(struct treeNode))', assigned value is 0 treeNode *node = malloc(sizeof(treeNode)); ^ ISIS_OSIRIS.c:11691:3: note: Null pointer dereference node->lChild = kdtree_addToTree(points, left, med-1, depth + 1); ^ ISIS_OSIRIS.c:11692:3: warning: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] node->rChild = kdtree_addToTree(points, med+1, right, depth + 1); ^ ISIS_OSIRIS.c:11685:26: note: Assuming allocation function fails treeNode *node = malloc(sizeof(treeNode)); ^ ISIS_OSIRIS.c:11685:26: note: Assignment 'node=malloc(sizeof(struct treeNode))', assigned value is 0 treeNode *node = malloc(sizeof(treeNode)); ^ ISIS_OSIRIS.c:11692:3: note: Null pointer dereference node->rChild = kdtree_addToTree(points, med+1, right, depth + 1); ^ ISIS_OSIRIS.c:11818:9: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] if (indices[i] < 0) indices[i]=0; ^ ISIS_OSIRIS.c:12100:27: note: Assuming allocation function fails long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ ISIS_OSIRIS.c:12100:27: note: Assignment 'indices=malloc((int)interpolator->space_dimensionality*sizeof(double))', assigned value is 0 long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ ISIS_OSIRIS.c:12104:60: note: Calling function 'interpolator_offset', 3rd argument 'indices' value is 0 long index = interpolator_offset(3, interpolator->bin, indices); ^ ISIS_OSIRIS.c:11818:9: note: Null pointer dereference if (indices[i] < 0) indices[i]=0; ^ ISIS_OSIRIS.c:11819:9: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] if (indices[i] >= dimInfo[i]) indices[i]=dimInfo[i]-1; ^ ISIS_OSIRIS.c:12100:27: note: Assuming allocation function fails long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ ISIS_OSIRIS.c:12100:27: note: Assignment 'indices=malloc((int)interpolator->space_dimensionality*sizeof(double))', assigned value is 0 long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ ISIS_OSIRIS.c:12104:60: note: Calling function 'interpolator_offset', 3rd argument 'indices' value is 0 long index = interpolator_offset(3, interpolator->bin, indices); ^ ISIS_OSIRIS.c:11819:9: note: Null pointer dereference if (indices[i] >= dimInfo[i]) indices[i]=dimInfo[i]-1; ^ ISIS_OSIRIS.c:11823:23: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] result = i == 0 ? indices[0] ^ ISIS_OSIRIS.c:12100:27: note: Assuming allocation function fails long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ ISIS_OSIRIS.c:12100:27: note: Assignment 'indices=malloc((int)interpolator->space_dimensionality*sizeof(double))', assigned value is 0 long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ ISIS_OSIRIS.c:12104:60: note: Calling function 'interpolator_offset', 3rd argument 'indices' value is 0 long index = interpolator_offset(3, interpolator->bin, indices); ^ ISIS_OSIRIS.c:11823:23: note: Null pointer dereference result = i == 0 ? indices[0] ^ ISIS_OSIRIS.c:11824:45: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] : result * dimInfo[i] + indices[i]; ^ ISIS_OSIRIS.c:12100:27: note: Assuming allocation function fails long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ ISIS_OSIRIS.c:12100:27: note: Assignment 'indices=malloc((int)interpolator->space_dimensionality*sizeof(double))', assigned value is 0 long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ ISIS_OSIRIS.c:12104:60: note: Calling function 'interpolator_offset', 3rd argument 'indices' value is 0 long index = interpolator_offset(3, interpolator->bin, indices); ^ ISIS_OSIRIS.c:11824:45: note: Null pointer dereference : result * dimInfo[i] + indices[i]; ^ ISIS_OSIRIS.c:11917:7: warning: If memory allocation fails, then there is a possible null pointer dereference: vector [nullPointerOutOfMemory] vector[index] = x; ^ ISIS_OSIRIS.c:11909:38: note: Assuming allocation function fails double* vector = (double*) calloc(sizeof(double), table.rows); ^ ISIS_OSIRIS.c:11909:22: note: Assignment 'vector=(double*)calloc(sizeof(double),table.rows)', assigned value is 0 double* vector = (double*) calloc(sizeof(double), table.rows); ^ ISIS_OSIRIS.c:11917:7: note: Null pointer dereference vector[index] = x; ^ ISIS_OSIRIS.c:11920:11: warning: If memory allocation fails, then there is a possible null pointer dereference: vector [nullPointerOutOfMemory] qsort(vector, table.rows, sizeof(double), interpolator_double_vector_compare); ^ ISIS_OSIRIS.c:11909:38: note: Assuming allocation function fails double* vector = (double*) calloc(sizeof(double), table.rows); ^ ISIS_OSIRIS.c:11909:22: note: Assignment 'vector=(double*)calloc(sizeof(double),table.rows)', assigned value is 0 double* vector = (double*) calloc(sizeof(double), table.rows); ^ ISIS_OSIRIS.c:11920:11: note: Null pointer dereference qsort(vector, table.rows, sizeof(double), interpolator_double_vector_compare); ^ ISIS_OSIRIS.c:11924:18: warning: If memory allocation fails, then there is a possible null pointer dereference: vector [nullPointerOutOfMemory] double x = vector[index]; ^ ISIS_OSIRIS.c:11909:38: note: Assuming allocation function fails double* vector = (double*) calloc(sizeof(double), table.rows); ^ ISIS_OSIRIS.c:11909:22: note: Assignment 'vector=(double*)calloc(sizeof(double),table.rows)', assigned value is 0 double* vector = (double*) calloc(sizeof(double), table.rows); ^ ISIS_OSIRIS.c:11924:18: note: Null pointer dereference double x = vector[index]; ^ ISIS_OSIRIS.c:12000:11: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] indices[axis] = round((x - interpolator->min[axis])/interpolator->step[axis]); ^ ISIS_OSIRIS.c:11993:31: note: Assuming allocation function fails long *indices = malloc(interpolator->space_dimensionality*sizeof(long)); ^ ISIS_OSIRIS.c:11993:31: note: Assignment 'indices=malloc(interpolator->space_dimensionality*sizeof(long))', assigned value is 0 long *indices = malloc(interpolator->space_dimensionality*sizeof(long)); ^ ISIS_OSIRIS.c:12000:11: note: Null pointer dereference indices[axis] = round((x - interpolator->min[axis])/interpolator->step[axis]); ^ ISIS_OSIRIS.c:12102:7: warning: If memory allocation fails, then there is a possible null pointer dereference: indices [nullPointerOutOfMemory] indices[axis] = round((space[axis]-interpolator->min[axis])/interpolator->step[axis]); ^ ISIS_OSIRIS.c:12100:27: note: Assuming allocation function fails long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ ISIS_OSIRIS.c:12100:27: note: Assignment 'indices=malloc((int)interpolator->space_dimensionality*sizeof(double))', assigned value is 0 long *indices = malloc((int)interpolator->space_dimensionality*sizeof(double)); ^ ISIS_OSIRIS.c:12102:7: note: Null pointer dereference indices[axis] = round((space[axis]-interpolator->min[axis])/interpolator->step[axis]); ^ ISIS_OSIRIS.c:12288:5: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] stack[i+1]=stack[i]; ^ ISIS_OSIRIS.c:12280:31: note: Assuming allocation function fails _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ ISIS_OSIRIS.c:12280:31: note: Assignment '_particle->mcMagnet=calloc(12,sizeof(struct mcmagnet_field_info*))', assigned value is 0 _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ ISIS_OSIRIS.c:12283:30: note: stack is assigned '(struct mcmagnet_field_info**)_particle->mcMagnet' here. mcmagnet_field_info **stack=((mcmagnet_field_info **) _particle->mcMagnet); ^ ISIS_OSIRIS.c:12288:5: note: Null pointer dereference stack[i+1]=stack[i]; ^ ISIS_OSIRIS.c:12288:16: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] stack[i+1]=stack[i]; ^ ISIS_OSIRIS.c:12280:31: note: Assuming allocation function fails _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ ISIS_OSIRIS.c:12280:31: note: Assignment '_particle->mcMagnet=calloc(12,sizeof(struct mcmagnet_field_info*))', assigned value is 0 _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ ISIS_OSIRIS.c:12283:30: note: stack is assigned '(struct mcmagnet_field_info**)_particle->mcMagnet' here. mcmagnet_field_info **stack=((mcmagnet_field_info **) _particle->mcMagnet); ^ ISIS_OSIRIS.c:12288:16: note: Null pointer dereference stack[i+1]=stack[i]; ^ ISIS_OSIRIS.c:12294:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] stack[0]=calloc(1, sizeof(mcmagnet_field_info)); ^ ISIS_OSIRIS.c:12280:31: note: Assuming allocation function fails _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ ISIS_OSIRIS.c:12280:31: note: Assignment '_particle->mcMagnet=calloc(12,sizeof(struct mcmagnet_field_info*))', assigned value is 0 _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ ISIS_OSIRIS.c:12283:30: note: stack is assigned '(struct mcmagnet_field_info**)_particle->mcMagnet' here. mcmagnet_field_info **stack=((mcmagnet_field_info **) _particle->mcMagnet); ^ ISIS_OSIRIS.c:12294:3: note: Null pointer dereference stack[0]=calloc(1, sizeof(mcmagnet_field_info)); ^ ISIS_OSIRIS.c:12297:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] mcmagnet_pack(stack[0],func_id,magnet_rot,magnet_pos,stopbit,prms); ^ ISIS_OSIRIS.c:12280:31: note: Assuming allocation function fails _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ ISIS_OSIRIS.c:12280:31: note: Assignment '_particle->mcMagnet=calloc(12,sizeof(struct mcmagnet_field_info*))', assigned value is 0 _particle->mcMagnet=calloc(MCMAGNET_STACKSIZE,sizeof(mcmagnet_field_info *)); ^ ISIS_OSIRIS.c:12283:30: note: stack is assigned '(struct mcmagnet_field_info**)_particle->mcMagnet' here. mcmagnet_field_info **stack=((mcmagnet_field_info **) _particle->mcMagnet); ^ ISIS_OSIRIS.c:12297:3: note: Null pointer dereference mcmagnet_pack(stack[0],func_id,magnet_rot,magnet_pos,stopbit,prms); ^ ISIS_OSIRIS.c:12297:3: warning: If memory allocation fails, then there is a possible null pointer dereference: mctmp_p [nullPointerOutOfMemory] mcmagnet_pack(stack[0],func_id,magnet_rot,magnet_pos,stopbit,prms); ^ ISIS_OSIRIS.c:12294:18: note: Assuming allocation function fails stack[0]=calloc(1, sizeof(mcmagnet_field_info)); ^ ISIS_OSIRIS.c:12294:18: note: Assignment 'stack[0]=calloc(1,sizeof(struct mcmagnet_field_info))', assigned value is 0 stack[0]=calloc(1, sizeof(mcmagnet_field_info)); ^ ISIS_OSIRIS.c:12297:3: note: mctmp_p is assigned 'stack[0]' here. mcmagnet_pack(stack[0],func_id,magnet_rot,magnet_pos,stopbit,prms); ^ ISIS_OSIRIS.c:12297:3: note: Null pointer dereference mcmagnet_pack(stack[0],func_id,magnet_rot,magnet_pos,stopbit,prms); ^ ISIS_OSIRIS.c:11826:10: warning: Uninitialized variable: result [uninitvar] return result; ^ ISIS_OSIRIS.c:11822:15: note: Assuming condition is false for (i=0; i < dim; i++) { ^ ISIS_OSIRIS.c:11826:10: note: Uninitialized variable: result return result; ^ ISIS_OSIRIS.c:11824:23: error: Uninitialized variable: result [legacyUninitvar] : result * dimInfo[i] + indices[i]; ^ Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;OFF_LEGACY... Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;SIGKILL;SIGUSR1;SIGUSR2... Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;USE_MPI... Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;USE_MPI;USE_NEXUS... Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;USE_NEXUS... Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__APPLE__;__GNUC__... Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__APPLE__;__unix__... Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__FreeBSD__... Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__GNUC__... Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__GNUC__;__clang__... Checking ISIS_OSIRIS.c: MCDEFAULT_NCOUNT=1000000;ND_BUFFER=10000000;SIGABRT=1;SIGBREAK=1;SIGBUS=1;SIGPE=1;SIGHUP=1;SIGILL=1;SIGINT=1;SIGKILL=1;SIGUSR1=1;SIGUSR2=1;SIGPIPE=1;SIGQUIT=1;SIGSEGV=1;SIGTRAP=1;SIGURG=1;SIGFPE=1;SIGKILL=1;SIGTERM=1;__unix__=1;__dest_os... DEBUG: CMD: cppcheck finished INFO: End of linting ./ISIS_OSIRIS.c