INFO: No output directory specified (--dir) INFO: Using directory: "HZB_NEAT_20250812_152608" INFO: Regenerating c-file: HZB_NEAT.c DEBUG: CMD: /home/willend/micromamba/bin/mcstas -t -o ./HZB_NEAT.c HZB_NEAT.instr Info: 'PSD_Detector' is a contributed component. CFLAGS= WARNING: The parameter powder_format of Sample is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component Sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component Sample ----------------------------------------------------------- DEBUG: CMD: /home/willend/micromamba/bin/mcstas finished INFO: Linting generated code: ./HZB_NEAT.c DEBUG: CMD: cppcheck ./HZB_NEAT.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 HZB_NEAT.c ... Checking HZB_NEAT.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... HZB_NEAT.c:14070:37: warning: If memory allocation fails, then there is a possible null pointer dereference: w_file2full [nullPointerOutOfMemory] for (index_w=0; index_w < w_bins; w_file2full[index_w++]=0); ^ HZB_NEAT.c:14068:31: note: Assuming allocation function fails double *w_file2full = malloc(w_bins*sizeof(double)); /* lookup table for fast file -> Sqw_full allocation */ ^ HZB_NEAT.c:14068:31: note: Assignment 'w_file2full=malloc(w_bins*sizeof(double))', assigned value is 0 double *w_file2full = malloc(w_bins*sizeof(double)); /* lookup table for fast file -> Sqw_full allocation */ ^ HZB_NEAT.c:14070:37: note: Null pointer dereference for (index_w=0; index_w < w_bins; w_file2full[index_w++]=0); ^ HZB_NEAT.c:14110:39: warning: If memory allocation fails, then there is a possible null pointer dereference: q_file2full [nullPointerOutOfMemory] for (index_q=0; index_q < q_bins; q_file2full[index_q++]=0); ^ HZB_NEAT.c:14109:29: note: Assuming allocation function fails double *q_file2full=malloc(q_bins*sizeof(double)); ^ HZB_NEAT.c:14109:29: note: Assignment 'q_file2full=malloc(q_bins*sizeof(double))', assigned value is 0 double *q_file2full=malloc(q_bins*sizeof(double)); ^ HZB_NEAT.c:14110:39: note: Null pointer dereference for (index_q=0; index_q < q_bins; q_file2full[index_q++]=0); ^ HZB_NEAT.c:14129:5: warning: If memory allocation fails, then there is a possible null pointer dereference: q_file2full [nullPointerOutOfMemory] q_file2full[index_q] = index_q_file; ^ HZB_NEAT.c:14109:29: note: Assuming allocation function fails double *q_file2full=malloc(q_bins*sizeof(double)); ^ HZB_NEAT.c:14109:29: note: Assignment 'q_file2full=malloc(q_bins*sizeof(double))', assigned value is 0 double *q_file2full=malloc(q_bins*sizeof(double)); ^ HZB_NEAT.c:14129:5: note: Null pointer dereference q_file2full[index_q] = index_q_file; ^ HZB_NEAT.c:14139:20: warning: If memory allocation fails, then there is a possible null pointer dereference: q_file2full [nullPointerOutOfMemory] index_q_file = q_file2full[index_q]; ^ HZB_NEAT.c:14109:29: note: Assuming allocation function fails double *q_file2full=malloc(q_bins*sizeof(double)); ^ HZB_NEAT.c:14109:29: note: Assignment 'q_file2full=malloc(q_bins*sizeof(double))', assigned value is 0 double *q_file2full=malloc(q_bins*sizeof(double)); ^ HZB_NEAT.c:14139:20: note: Null pointer dereference index_q_file = q_file2full[index_q]; ^ HZB_NEAT.c:20751:5: warning: If memory allocation fails, then there is a possible null pointer dereference: E_p [nullPointerOutOfMemory] E_p[i] = Table_Index(Part_He_3_p,i,0); ^ HZB_NEAT.c:20747:26: note: Assuming allocation function fails E_p = (double *) malloc(nH_p*sizeof(double)); ^ HZB_NEAT.c:20747:9: note: Assignment 'E_p=(double*)malloc(_comp->_parameters.nH_p*sizeof(double))', assigned value is 0 E_p = (double *) malloc(nH_p*sizeof(double)); ^ HZB_NEAT.c:20751:5: note: Null pointer dereference E_p[i] = Table_Index(Part_He_3_p,i,0); ^ HZB_NEAT.c:20752:9: warning: If memory allocation fails, then there is a possible null pointer dereference: E_p [nullPointerOutOfMemory] if (E_p[i] != Table_Index(Part_Stop_p,i,0)) { ^ HZB_NEAT.c:20747:26: note: Assuming allocation function fails E_p = (double *) malloc(nH_p*sizeof(double)); ^ HZB_NEAT.c:20747:9: note: Assignment 'E_p=(double*)malloc(_comp->_parameters.nH_p*sizeof(double))', assigned value is 0 E_p = (double *) malloc(nH_p*sizeof(double)); ^ HZB_NEAT.c:20752:9: note: Null pointer dereference if (E_p[i] != Table_Index(Part_Stop_p,i,0)) { ^ HZB_NEAT.c:20757:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dEdx_p [nullPointerOutOfMemory] dEdx_p[i] = PressureConv*Table_Index(Part_He_3_p,i,1) + PressureStop*Table_Index(Part_Stop_p,i,1); ^ HZB_NEAT.c:20749:29: note: Assuming allocation function fails dEdx_p = (double *) malloc(nH_p*sizeof(double)); ^ HZB_NEAT.c:20749:12: note: Assignment 'dEdx_p=(double*)malloc(_comp->_parameters.nH_p*sizeof(double))', assigned value is 0 dEdx_p = (double *) malloc(nH_p*sizeof(double)); ^ HZB_NEAT.c:20752:16: note: Assuming condition is false if (E_p[i] != Table_Index(Part_Stop_p,i,0)) { ^ HZB_NEAT.c:20757:5: note: Null pointer dereference dEdx_p[i] = PressureConv*Table_Index(Part_He_3_p,i,1) + PressureStop*Table_Index(Part_Stop_p,i,1); ^ HZB_NEAT.c:20759:17: warning: If memory allocation fails, then there is a possible null pointer dereference: E_p [nullPointerOutOfMemory] FullEnergyP = E_p[nH_p-1]; ^ HZB_NEAT.c:20747:26: note: Assuming allocation function fails E_p = (double *) malloc(nH_p*sizeof(double)); ^ HZB_NEAT.c:20747:9: note: Assignment 'E_p=(double*)malloc(_comp->_parameters.nH_p*sizeof(double))', assigned value is 0 E_p = (double *) malloc(nH_p*sizeof(double)); ^ HZB_NEAT.c:20752:16: note: Assuming condition is false if (E_p[i] != Table_Index(Part_Stop_p,i,0)) { ^ HZB_NEAT.c:20759:17: note: Null pointer dereference FullEnergyP = E_p[nH_p-1]; ^ HZB_NEAT.c:20765:30: warning: If memory allocation fails, then there is a possible null pointer dereference: DAP [nullPointerOutOfMemory] for (i=0; i_parameters.nH_p*sizeof(double))', assigned value is 0 DAP = (double *) malloc((nH_p)*sizeof(double)); ^ HZB_NEAT.c:20765:30: note: Null pointer dereference for (i=0; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 MuAP = (double *) malloc((nH_p+1)*sizeof(double)); ^ HZB_NEAT.c:20768:3: note: Null pointer dereference MuAP[0] = 0; ^ HZB_NEAT.c:20769:30: warning: If memory allocation fails, then there is a possible null pointer dereference: MuAP [nullPointerOutOfMemory] for (i=1; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 MuAP = (double *) malloc((nH_p+1)*sizeof(double)); ^ HZB_NEAT.c:20769:30: note: Null pointer dereference for (i=1; i_parameters.nH_p*sizeof(double))', assigned value is 0 DAP = (double *) malloc((nH_p)*sizeof(double)); ^ HZB_NEAT.c:20769:45: note: Null pointer dereference for (i=1; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 MuAP = (double *) malloc((nH_p+1)*sizeof(double)); ^ HZB_NEAT.c:20774:63: note: Null pointer dereference for (i=1; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 TempVar34 = (double *) malloc((nH_p+1)*sizeof(double)); ^ HZB_NEAT.c:20779:30: note: Null pointer dereference for (i=0; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 TempVar34 = (double *) malloc((nH_p+1)*sizeof(double)); ^ HZB_NEAT.c:20780:45: note: Null pointer dereference for (i=0; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 TempVar34 = (double *) malloc((nH_p+1)*sizeof(double)); ^ HZB_NEAT.c:20781:30: note: Null pointer dereference for (i=0; i_parameters.nH_p+1)*sizeof(double))', assigned value is 0 TempVar34 = (double *) malloc((nH_p+1)*sizeof(double)); ^ HZB_NEAT.c:20782:45: note: Null pointer dereference for (i=0; i_parameters.nH_p*sizeof(double))', assigned value is 0 ETP1 = (double *) malloc((nH_p)*sizeof(double)); ^ HZB_NEAT.c:20787:28: note: Null pointer dereference for (i=0; i_parameters.nH_p*sizeof(double))', assigned value is 0 PTP1 = (double *) malloc((nH_p)*sizeof(double)); ^ HZB_NEAT.c:20790:28: note: Null pointer dereference for (i=0; i_parameters.nH_p*sizeof(double))', assigned value is 0 PTP1 = (double *) malloc((nH_p)*sizeof(double)); ^ HZB_NEAT.c:20795:52: note: Null pointer dereference for (i=1; i_parameters.nH_p*sizeof(double))', assigned value is 0 ETP1 = (double *) malloc((nH_p)*sizeof(double)); ^ HZB_NEAT.c:20795:62: note: Null pointer dereference for (i=1; i_parameters.nH_t*sizeof(double))', assigned value is 0 E_t = (double *) malloc(nH_t*sizeof(double)); ^ HZB_NEAT.c:20805:5: note: Null pointer dereference E_t[i] = Table_Index(Part_He_3_t,i,0); ^ HZB_NEAT.c:20806:9: warning: If memory allocation fails, then there is a possible null pointer dereference: E_t [nullPointerOutOfMemory] if (E_t[i] != Table_Index(Part_Stop_t,i,0)) { ^ HZB_NEAT.c:20801:26: note: Assuming allocation function fails E_t = (double *) malloc(nH_t*sizeof(double)); ^ HZB_NEAT.c:20801:9: note: Assignment 'E_t=(double*)malloc(_comp->_parameters.nH_t*sizeof(double))', assigned value is 0 E_t = (double *) malloc(nH_t*sizeof(double)); ^ HZB_NEAT.c:20806:9: note: Null pointer dereference if (E_t[i] != Table_Index(Part_Stop_t,i,0)) { ^ HZB_NEAT.c:20811:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dEdx_t [nullPointerOutOfMemory] dEdx_t[i] = PressureConv*Table_Index(Part_He_3_t,i,1) + PressureStop*Table_Index(Part_Stop_t,i,1); ^ HZB_NEAT.c:20803:29: note: Assuming allocation function fails dEdx_t = (double *) malloc(nH_t*sizeof(double)); ^ HZB_NEAT.c:20803:12: note: Assignment 'dEdx_t=(double*)malloc(_comp->_parameters.nH_t*sizeof(double))', assigned value is 0 dEdx_t = (double *) malloc(nH_t*sizeof(double)); ^ HZB_NEAT.c:20806:16: note: Assuming condition is false if (E_t[i] != Table_Index(Part_Stop_t,i,0)) { ^ HZB_NEAT.c:20811:5: note: Null pointer dereference dEdx_t[i] = PressureConv*Table_Index(Part_He_3_t,i,1) + PressureStop*Table_Index(Part_Stop_t,i,1); ^ HZB_NEAT.c:20813:17: warning: If memory allocation fails, then there is a possible null pointer dereference: E_t [nullPointerOutOfMemory] FullEnergyT = E_t[nH_t-1]; ^ HZB_NEAT.c:20801:26: note: Assuming allocation function fails E_t = (double *) malloc(nH_t*sizeof(double)); ^ HZB_NEAT.c:20801:9: note: Assignment 'E_t=(double*)malloc(_comp->_parameters.nH_t*sizeof(double))', assigned value is 0 E_t = (double *) malloc(nH_t*sizeof(double)); ^ HZB_NEAT.c:20806:16: note: Assuming condition is false if (E_t[i] != Table_Index(Part_Stop_t,i,0)) { ^ HZB_NEAT.c:20813:17: note: Null pointer dereference FullEnergyT = E_t[nH_t-1]; ^ HZB_NEAT.c:20821:30: warning: If memory allocation fails, then there is a possible null pointer dereference: DAT [nullPointerOutOfMemory] for (i=0; i_parameters.nH_t*sizeof(double))', assigned value is 0 DAT = (double *) malloc((nH_t)*sizeof(double)); ^ HZB_NEAT.c:20821:30: note: Null pointer dereference for (i=0; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 MuAT = (double *) malloc((nH_t+1)*sizeof(double)); ^ HZB_NEAT.c:20824:3: note: Null pointer dereference MuAT[0] = 0; ^ HZB_NEAT.c:20825:30: warning: If memory allocation fails, then there is a possible null pointer dereference: MuAT [nullPointerOutOfMemory] for (i=1; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 MuAT = (double *) malloc((nH_t+1)*sizeof(double)); ^ HZB_NEAT.c:20825:30: note: Null pointer dereference for (i=1; i_parameters.nH_t*sizeof(double))', assigned value is 0 DAT = (double *) malloc((nH_t)*sizeof(double)); ^ HZB_NEAT.c:20825:40: note: Null pointer dereference for (i=1; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 MuAT = (double *) malloc((nH_t+1)*sizeof(double)); ^ HZB_NEAT.c:20830:59: note: Null pointer dereference for (i=1; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 TempVar35 = (double *) malloc((nH_t+1)*sizeof(double)); ^ HZB_NEAT.c:20835:30: note: Null pointer dereference for (i=0; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 TempVar35 = (double *) malloc((nH_t+1)*sizeof(double)); ^ HZB_NEAT.c:20836:45: note: Null pointer dereference for (i=0; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 TempVar35 = (double *) malloc((nH_t+1)*sizeof(double)); ^ HZB_NEAT.c:20837:30: note: Null pointer dereference for (i=0; i_parameters.nH_t+1)*sizeof(double))', assigned value is 0 TempVar35 = (double *) malloc((nH_t+1)*sizeof(double)); ^ HZB_NEAT.c:20838:45: note: Null pointer dereference for (i=0; i_parameters.nH_t*sizeof(double))', assigned value is 0 ETT1 = (double *) malloc((nH_t)*sizeof(double)); ^ HZB_NEAT.c:20843:28: note: Null pointer dereference for (i=0; i_parameters.nH_t*sizeof(double))', assigned value is 0 PTT1 = (double *) malloc((nH_t)*sizeof(double)); ^ HZB_NEAT.c:20846:28: note: Null pointer dereference for (i=0; i_parameters.nH_t*sizeof(double))', assigned value is 0 PTT1 = (double *) malloc((nH_t)*sizeof(double)); ^ HZB_NEAT.c:20851:52: note: Null pointer dereference for (i=1; i_parameters.nH_t*sizeof(double))', assigned value is 0 ETT1 = (double *) malloc((nH_t)*sizeof(double)); ^ HZB_NEAT.c:20851:62: note: Null pointer dereference for (i=1; i