INFO: No output directory specified (--dir) INFO: Using directory: "TOF_Reflectometer_20250814_162230" INFO: Regenerating c-file: TOF_Reflectometer.c DEBUG: CMD: /home/willend/micromamba/bin/mcstas -t -o ./TOF_Reflectometer.c TOF_Reflectometer.instr 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: ./TOF_Reflectometer.c DEBUG: CMD: cppcheck ./TOF_Reflectometer.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 TOF_Reflectometer.c ... Checking TOF_Reflectometer.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... TOF_Reflectometer.c:7682:21: error: Array 'AngleList[6]' accessed at index -1, which is out of bounds. [negativeIndex] return AngleList[jmin]; ^ TOF_Reflectometer.c:7674:15: note: Assignment 'jmin=-1', assigned value is -1 int jmin=-1; ^ TOF_Reflectometer.c:7677:36: note: Assuming condition is false if (fabs(AngleList[j]-angle) < diff) { ^ TOF_Reflectometer.c:7682:21: note: Negative array index return AngleList[jmin]; ^ TOF_Reflectometer.c:15773:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] xplus[i] = tempx + guideInfo.ellipseMinorOffset[RightSide]; ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15773:3: note: Null pointer dereference xplus[i] = tempx + guideInfo.ellipseMinorOffset[RightSide]; ^ TOF_Reflectometer.c:15774:3: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] xminus[i]= -tempx + guideInfo.ellipseMinorOffset[RightSide]; ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15774:3: note: Null pointer dereference xminus[i]= -tempx + guideInfo.ellipseMinorOffset[RightSide]; ^ TOF_Reflectometer.c:15787:3: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] yplus[i] = tempy + guideInfo.ellipseMinorOffset[TopSide]; ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15787:3: note: Null pointer dereference yplus[i] = tempy + guideInfo.ellipseMinorOffset[TopSide]; ^ TOF_Reflectometer.c:15788:3: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] yminus[i]= -tempy + guideInfo.ellipseMinorOffset[TopSide]; ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15788:3: note: Null pointer dereference yminus[i]= -tempy + guideInfo.ellipseMinorOffset[TopSide]; ^ TOF_Reflectometer.c:15800:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15800:8: note: Null pointer dereference line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15800:18: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15800:18: note: Null pointer dereference line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15800:51: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15800:51: note: Null pointer dereference line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15801:16: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15801:16: note: Null pointer dereference line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15801:42: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15801:42: note: Null pointer dereference line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15801:53: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15801:53: note: Null pointer dereference line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15802:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15802:8: note: Null pointer dereference line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15802:19: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15802:19: note: Null pointer dereference line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15802:54: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15802:54: note: Null pointer dereference line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15803:13: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( 0, yminus[j], zvalue+j*zdelta,xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15803:13: note: Null pointer dereference line( 0, yminus[j], zvalue+j*zdelta,xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15803:40: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( 0, yminus[j], zvalue+j*zdelta,xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15803:40: note: Null pointer dereference line( 0, yminus[j], zvalue+j*zdelta,xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15803:50: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( 0, yminus[j], zvalue+j*zdelta,xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15803:50: note: Null pointer dereference line( 0, yminus[j], zvalue+j*zdelta,xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15804:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15804:8: note: Null pointer dereference line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15804:18: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15804:18: note: Null pointer dereference line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15804:45: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15804:45: note: Null pointer dereference line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15805:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15805:8: note: Null pointer dereference line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15805:41: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15805:41: note: Null pointer dereference line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15805:51: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15805:51: note: Null pointer dereference line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15806:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15806:8: note: Null pointer dereference line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15806:42: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15806:42: note: Null pointer dereference line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15806:52: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15806:52: note: Null pointer dereference line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15807:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15807:8: note: Null pointer dereference line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15807:18: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15807:18: note: Null pointer dereference line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15807:45: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15807:45: note: Null pointer dereference line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15811:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15811:8: note: Null pointer dereference line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15811:18: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15811:18: note: Null pointer dereference line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15811:50: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15811:50: note: Null pointer dereference line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15812:16: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( 0 , yplus[j],zvalue+j*zdelta,xminus[j] , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15812:16: note: Null pointer dereference line( 0 , yplus[j],zvalue+j*zdelta,xminus[j] , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15812:41: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( 0 , yplus[j],zvalue+j*zdelta,xminus[j] , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15812:41: note: Null pointer dereference line( 0 , yplus[j],zvalue+j*zdelta,xminus[j] , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15812:53: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( 0 , yplus[j],zvalue+j*zdelta,xminus[j] , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15812:53: note: Null pointer dereference line( 0 , yplus[j],zvalue+j*zdelta,xminus[j] , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15813:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15813:8: note: Null pointer dereference line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15813:19: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15813:19: note: Null pointer dereference line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15813:55: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15813:55: note: Null pointer dereference line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15814:13: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15814:13: note: Null pointer dereference line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15814:41: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15814:41: note: Null pointer dereference line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15814:51: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15814:51: note: Null pointer dereference line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15815:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15815:8: note: Null pointer dereference line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15815:18: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15815:18: note: Null pointer dereference line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15815:45: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15815:45: note: Null pointer dereference line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15816:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15816:8: note: Null pointer dereference line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15816:41: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15816:41: note: Null pointer dereference line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15816:51: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15816:51: note: Null pointer dereference line( xminus[j],0 , zvalue+j*zdelta,xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15817:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15817:8: note: Null pointer dereference line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15817:42: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15817:42: note: Null pointer dereference line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15817:52: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15817:52: note: Null pointer dereference line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15818:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15818:8: note: Null pointer dereference line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15818:18: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15818:18: note: Null pointer dereference line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15818:45: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15818:45: note: Null pointer dereference line( xplus[j], yminus[j], zvalue+j*zdelta,xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15827:29: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] if( boardestPlace <= fabs(yplus[m0]) ){ ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15827:29: note: Null pointer dereference if( boardestPlace <= fabs(yplus[m0]) ){ ^ TOF_Reflectometer.c:15834:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15834:8: note: Null pointer dereference line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15834:18: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15834:18: note: Null pointer dereference line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15834:50: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15834:50: note: Null pointer dereference line( xplus[j], yplus[j], zvalue+j*zdelta,0 , yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15835:16: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15835:16: note: Null pointer dereference line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15835:42: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15835:42: note: Null pointer dereference line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15835:53: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15835:53: note: Null pointer dereference line( 0 , yplus[j], zvalue+j*zdelta,xminus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15836:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15836:8: note: Null pointer dereference line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15836:19: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15836:19: note: Null pointer dereference line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15836:54: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15836:54: note: Null pointer dereference line( xminus[j], yminus[j], zvalue+j*zdelta,0 , yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15837:13: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15837:13: note: Null pointer dereference line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15837:41: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15837:41: note: Null pointer dereference line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15837:51: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15837:51: note: Null pointer dereference line( 0, yminus[j], zvalue+j*zdelta, xplus[j], yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15838:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15838:8: note: Null pointer dereference line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15838:18: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15838:18: note: Null pointer dereference line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15838:45: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15838:45: note: Null pointer dereference line( xminus[j],yplus[j], zvalue+j*zdelta, xminus[j],0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15839:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],0 , zvalue+j*zdelta, xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15839:8: note: Null pointer dereference line( xminus[j],0 , zvalue+j*zdelta, xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15839:42: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[j],0 , zvalue+j*zdelta, xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15839:42: note: Null pointer dereference line( xminus[j],0 , zvalue+j*zdelta, xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15839:52: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xminus[j],0 , zvalue+j*zdelta, xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15839:52: note: Null pointer dereference line( xminus[j],0 , zvalue+j*zdelta, xminus[j],yminus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15840:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15840:8: note: Null pointer dereference line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15840:42: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15840:42: note: Null pointer dereference line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15840:52: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15840:52: note: Null pointer dereference line( xplus[j], 0, zvalue+j*zdelta, xplus[j], yplus[j], zvalue+j*zdelta); ^ TOF_Reflectometer.c:15841:8: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], yminus[j], zvalue+j*zdelta, xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15841:8: note: Null pointer dereference line( xplus[j], yminus[j], zvalue+j*zdelta, xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15841:18: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xplus[j], yminus[j], zvalue+j*zdelta, xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15841:18: note: Null pointer dereference line( xplus[j], yminus[j], zvalue+j*zdelta, xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15841:46: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[j], yminus[j], zvalue+j*zdelta, xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15841:46: note: Null pointer dereference line( xplus[j], yminus[j], zvalue+j*zdelta, xplus[j], 0 , zvalue+j*zdelta); ^ TOF_Reflectometer.c:15850:9: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[k], yplus[k], zvalue+k*zdelta,xplus[k+1], yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15850:9: note: Null pointer dereference line( xplus[k], yplus[k], zvalue+k*zdelta,xplus[k+1], yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15850:19: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xplus[k], yplus[k], zvalue+k*zdelta,xplus[k+1], yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15850:19: note: Null pointer dereference line( xplus[k], yplus[k], zvalue+k*zdelta,xplus[k+1], yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15850:45: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[k], yplus[k], zvalue+k*zdelta,xplus[k+1], yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15850:45: note: Null pointer dereference line( xplus[k], yplus[k], zvalue+k*zdelta,xplus[k+1], yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15850:57: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xplus[k], yplus[k], zvalue+k*zdelta,xplus[k+1], yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15850:57: note: Null pointer dereference line( xplus[k], yplus[k], zvalue+k*zdelta,xplus[k+1], yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15851:9: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[k],yplus[k], zvalue+k*zdelta,xminus[k+1],yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15851:9: note: Null pointer dereference line( xminus[k],yplus[k], zvalue+k*zdelta,xminus[k+1],yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15851:19: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xminus[k],yplus[k], zvalue+k*zdelta,xminus[k+1],yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15851:19: note: Null pointer dereference line( xminus[k],yplus[k], zvalue+k*zdelta,xminus[k+1],yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15851:45: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[k],yplus[k], zvalue+k*zdelta,xminus[k+1],yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15851:45: note: Null pointer dereference line( xminus[k],yplus[k], zvalue+k*zdelta,xminus[k+1],yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15851:57: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( xminus[k],yplus[k], zvalue+k*zdelta,xminus[k+1],yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15851:57: note: Null pointer dereference line( xminus[k],yplus[k], zvalue+k*zdelta,xminus[k+1],yplus[k+1], zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15853:9: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[k], yminus[k],zvalue+k*zdelta,xplus[k+1], yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15853:9: note: Null pointer dereference line( xplus[k], yminus[k],zvalue+k*zdelta,xplus[k+1], yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15853:19: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xplus[k], yminus[k],zvalue+k*zdelta,xplus[k+1], yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15853:19: note: Null pointer dereference line( xplus[k], yminus[k],zvalue+k*zdelta,xplus[k+1], yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15853:45: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[k], yminus[k],zvalue+k*zdelta,xplus[k+1], yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15853:45: note: Null pointer dereference line( xplus[k], yminus[k],zvalue+k*zdelta,xplus[k+1], yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15853:57: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xplus[k], yminus[k],zvalue+k*zdelta,xplus[k+1], yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15853:57: note: Null pointer dereference line( xplus[k], yminus[k],zvalue+k*zdelta,xplus[k+1], yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15855:9: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[k],yminus[k],zvalue+k*zdelta,xminus[k+1],yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15855:9: note: Null pointer dereference line( xminus[k],yminus[k],zvalue+k*zdelta,xminus[k+1],yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15855:19: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xminus[k],yminus[k],zvalue+k*zdelta,xminus[k+1],yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15855:19: note: Null pointer dereference line( xminus[k],yminus[k],zvalue+k*zdelta,xminus[k+1],yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15855:45: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[k],yminus[k],zvalue+k*zdelta,xminus[k+1],yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15855:45: note: Null pointer dereference line( xminus[k],yminus[k],zvalue+k*zdelta,xminus[k+1],yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15855:57: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( xminus[k],yminus[k],zvalue+k*zdelta,xminus[k+1],yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15855:57: note: Null pointer dereference line( xminus[k],yminus[k],zvalue+k*zdelta,xminus[k+1],yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15857:9: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[k],0 , zvalue+k*zdelta, xminus[k+1],0 , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15857:9: note: Null pointer dereference line( xminus[k],0 , zvalue+k*zdelta, xminus[k+1],0 , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15857:42: warning: If memory allocation fails, then there is a possible null pointer dereference: xminus [nullPointerOutOfMemory] line( xminus[k],0 , zvalue+k*zdelta, xminus[k+1],0 , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15731:23: note: Assuming allocation function fails double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15731:23: note: Assignment 'xminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15857:42: note: Null pointer dereference line( xminus[k],0 , zvalue+k*zdelta, xminus[k+1],0 , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15858:9: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[k], 0 , zvalue+k*zdelta, xplus[k+1], 0 , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15858:9: note: Null pointer dereference line( xplus[k], 0 , zvalue+k*zdelta, xplus[k+1], 0 , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15858:42: warning: If memory allocation fails, then there is a possible null pointer dereference: xplus [nullPointerOutOfMemory] line( xplus[k], 0 , zvalue+k*zdelta, xplus[k+1], 0 , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15730:22: note: Assuming allocation function fails double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15730:22: note: Assignment 'xplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *xplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15858:42: note: Null pointer dereference line( xplus[k], 0 , zvalue+k*zdelta, xplus[k+1], 0 , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15860:14: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( 0 , yminus[k], zvalue+k*zdelta, 0 ,yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15860:14: note: Null pointer dereference line( 0 , yminus[k], zvalue+k*zdelta, 0 ,yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15860:50: warning: If memory allocation fails, then there is a possible null pointer dereference: yminus [nullPointerOutOfMemory] line( 0 , yminus[k], zvalue+k*zdelta, 0 ,yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15733:23: note: Assuming allocation function fails double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15733:23: note: Assignment 'yminus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yminus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15860:50: note: Null pointer dereference line( 0 , yminus[k], zvalue+k*zdelta, 0 ,yminus[k+1],zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15861:13: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( 0 ,yplus[k] , zvalue+k*zdelta , 0 ,yplus[k] , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15861:13: note: Null pointer dereference line( 0 ,yplus[k] , zvalue+k*zdelta , 0 ,yplus[k] , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15861:48: warning: If memory allocation fails, then there is a possible null pointer dereference: yplus [nullPointerOutOfMemory] line( 0 ,yplus[k] , zvalue+k*zdelta , 0 ,yplus[k] , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:15732:22: note: Assuming allocation function fails double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15732:22: note: Assignment 'yplus=malloc((ApproximationMirrors+1)*sizeof(double))', assigned value is 0 double *yplus=malloc((ApproximationMirrors+1)*sizeof(double)); ^ TOF_Reflectometer.c:15861:48: note: Null pointer dereference line( 0 ,yplus[k] , zvalue+k*zdelta , 0 ,yplus[k] , zvalue+(k+1)*zdelta); ^ TOF_Reflectometer.c:9952:9: warning: Uninitialized variable: boolean [uninitvar] return boolean; ^ TOF_Reflectometer.c:9907:16: note: Assuming condition is true if (solutionH <= 0) ^ TOF_Reflectometer.c:9952:9: note: Uninitialized variable: boolean return boolean; ^ Checking TOF_Reflectometer.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 TOF_Reflectometer.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 TOF_Reflectometer.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 TOF_Reflectometer.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 TOF_Reflectometer.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 TOF_Reflectometer.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 TOF_Reflectometer.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 TOF_Reflectometer.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 TOF_Reflectometer.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 TOF_Reflectometer.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 ./TOF_Reflectometer.c