INFO: No output directory specified (--dir) INFO: Using directory: "IncoherentPhonon_test_20250815_161844" INFO: Regenerating c-file: IncoherentPhonon_test.c DEBUG: CMD: /home/willend/micromamba/bin/mcstas -t -o ./IncoherentPhonon_test.c IncoherentPhonon_test.instr Warning: DECLARE block contains 2 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= -DFUNNEL ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component test_sample is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component test_sample -> GPU kernel from component Banana_monitor ----------------------------------------------------------- DEBUG: CMD: /home/willend/micromamba/bin/mcstas finished INFO: Linting generated code: ./IncoherentPhonon_test.c DEBUG: CMD: cppcheck ./IncoherentPhonon_test.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 IncoherentPhonon_test.c ... Checking IncoherentPhonon_test.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... IncoherentPhonon_test.c:17125:18: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] return -sqrt(-1.0); ^ IncoherentPhonon_test.c:17178:18: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] return -sqrt(-1.0); ^ IncoherentPhonon_test.c:17231:18: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] return -sqrt(-1.0); ^ IncoherentPhonon_test.c:17405:16: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] *x = -sqrt(-1.0); ^ IncoherentPhonon_test.c:17406:16: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] *z = -sqrt(-1.0); ^ IncoherentPhonon_test.c:17436:18: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] return -sqrt(-1.0); ^ IncoherentPhonon_test.c:17449:29: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(x2<0) { return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17513:18: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] return -sqrt(-1.0); ^ IncoherentPhonon_test.c:17632:79: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(s1)) { printf("quad_dXSdu_mph nan for u = %f\n",u); return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17636:79: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(s2)) { printf("quad_dXSdu_mph nan for u = %f\n",u); return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17647:81: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(s2)) { printf("quad_dXSdu_mph nan for u = %f\n",u); return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17657:79: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(s1)) { printf("quad_dXSdu_mph nan for u = %f\n",u); return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17660:79: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(s2)) { printf("quad_dXSdu_mph nan for u = %f\n",u); return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17670:81: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(s2)) { printf("quad_dXSdu_mph nan for u = %f\n",u); return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17679:81: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(s1)) { printf("quad_dXSdu_mph nan for u = %f\n",u); return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17682:81: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(s2)) { printf("quad_dXSdu_mph nan for u = %f\n",u); return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17692:83: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(s2)) { printf("quad_dXSdu_mph nan for u = %f\n",u); return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17714:35: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(S)) { return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17721:33: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(S)) { return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17729:33: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(S)) { return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17735:35: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(S)) { return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:17741:33: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(isnan(S)) { return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:18344:18: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] return -sqrt(-1.0); ^ IncoherentPhonon_test.c:19136:44: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(1.0-fabs(xi)<1.0e-8) { return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:19398:18: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] return -sqrt(-1.0); ^ IncoherentPhonon_test.c:19434:20: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] return -sqrt(-1.); ^ IncoherentPhonon_test.c:19439:20: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] return -sqrt(-1.); ^ IncoherentPhonon_test.c:19449:88: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] if(imax==imin) { printf("interpFunc: imax = imin %d %d\n",imin,imax); return -sqrt(-1.0); } ^ IncoherentPhonon_test.c:19452:20: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] return -sqrt(-1.); ^ IncoherentPhonon_test.c:17315:5: error: Used file that is not opened. [useClosedFile] fprintf(filep,"%d\n",np1+1); ^ IncoherentPhonon_test.c:19556:3: error: Used file that is not opened. [useClosedFile] fclose(filep2); ^ IncoherentPhonon_test.c:7841:5: error: Memory leak: temp_logger_with_data.logger_pointers [memleak] } else { ^ IncoherentPhonon_test.c:7871:5: error: Memory leak: temp_abs_logger_with_data.abs_logger_pointers [memleak] } else { ^ IncoherentPhonon_test.c:8502:5: error: Memory leak: temp_history.elements [memleak] } else { ^ IncoherentPhonon_test.c:14747:5: error: Memory leak: removed_under_2.elements [memleak] }; ^ IncoherentPhonon_test.c:7732:66: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate = 0;iterate < list->num_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:7731:22: note: Assuming allocation function fails temp = malloc(list->num_elements * sizeof(int)); ^ IncoherentPhonon_test.c:7731:22: note: Assignment 'temp=malloc(list->num_elements*sizeof(int))', assigned value is 0 temp = malloc(list->num_elements * sizeof(int)); ^ IncoherentPhonon_test.c:7732:66: note: Null pointer dereference for (iterate = 0;iterate < list->num_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:7735:92: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate = 0;iterate < list->num_elements;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:7731:22: note: Assuming allocation function fails temp = malloc(list->num_elements * sizeof(int)); ^ IncoherentPhonon_test.c:7731:22: note: Assignment 'temp=malloc(list->num_elements*sizeof(int))', assigned value is 0 temp = malloc(list->num_elements * sizeof(int)); ^ IncoherentPhonon_test.c:7735:92: note: Null pointer dereference for (iterate = 0;iterate < list->num_elements;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:7769:60: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:7767:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ IncoherentPhonon_test.c:7767:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ IncoherentPhonon_test.c:7769:60: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:7773:88: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:7767:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ IncoherentPhonon_test.c:7767:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ IncoherentPhonon_test.c:7773:88: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:7787:60: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:7785:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ IncoherentPhonon_test.c:7785:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ IncoherentPhonon_test.c:7787:60: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:7791:88: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:7785:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ IncoherentPhonon_test.c:7785:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ IncoherentPhonon_test.c:7791:88: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:7806:72: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = focus_data_array->elements[iterate]; ^ IncoherentPhonon_test.c:7804:44: note: Assuming allocation function fails struct focus_data_struct *temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct)); ^ IncoherentPhonon_test.c:7804:44: note: Assignment 'temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct))', assigned value is 0 struct focus_data_struct *temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct)); ^ IncoherentPhonon_test.c:7806:72: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = focus_data_array->elements[iterate]; ^ IncoherentPhonon_test.c:7810:112: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) focus_data_array->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:7804:44: note: Assuming allocation function fails struct focus_data_struct *temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct)); ^ IncoherentPhonon_test.c:7804:44: note: Assignment 'temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct))', assigned value is 0 struct focus_data_struct *temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct)); ^ IncoherentPhonon_test.c:7810:112: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) focus_data_array->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:7893:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_fp [nullPointerOutOfMemory] temp_fp[iterate] = list->conditional_functions[iterate]; ^ IncoherentPhonon_test.c:7888:49: note: Assuming allocation function fails conditional_function_pointer *temp_fp=malloc(list->num_elements*sizeof(conditional_function_pointer)); ^ IncoherentPhonon_test.c:7888:49: note: Assignment 'temp_fp=malloc(list->num_elements*sizeof(intconditional_function_pointer))', assigned value is 0 conditional_function_pointer *temp_fp=malloc(list->num_elements*sizeof(conditional_function_pointer)); ^ IncoherentPhonon_test.c:7893:7: note: Null pointer dereference temp_fp[iterate] = list->conditional_functions[iterate]; ^ IncoherentPhonon_test.c:7894:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_du [nullPointerOutOfMemory] temp_du[iterate] = list->p_data_unions[iterate]; ^ IncoherentPhonon_test.c:7889:50: note: Assuming allocation function fails union conditional_data_union **temp_du=malloc(list->num_elements*sizeof(union conditional_data_union)); ^ IncoherentPhonon_test.c:7889:50: note: Assignment 'temp_du=malloc(list->num_elements*sizeof(union conditional_data_union))', assigned value is 0 union conditional_data_union **temp_du=malloc(list->num_elements*sizeof(union conditional_data_union)); ^ IncoherentPhonon_test.c:7894:7: note: Null pointer dereference temp_du[iterate] = list->p_data_unions[iterate]; ^ IncoherentPhonon_test.c:7903:46: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_fp [nullPointerOutOfMemory] list->conditional_functions[iterate] = temp_fp[iterate]; ^ IncoherentPhonon_test.c:7888:49: note: Assuming allocation function fails conditional_function_pointer *temp_fp=malloc(list->num_elements*sizeof(conditional_function_pointer)); ^ IncoherentPhonon_test.c:7888:49: note: Assignment 'temp_fp=malloc(list->num_elements*sizeof(intconditional_function_pointer))', assigned value is 0 conditional_function_pointer *temp_fp=malloc(list->num_elements*sizeof(conditional_function_pointer)); ^ IncoherentPhonon_test.c:7903:46: note: Null pointer dereference list->conditional_functions[iterate] = temp_fp[iterate]; ^ IncoherentPhonon_test.c:7904:38: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_du [nullPointerOutOfMemory] list->p_data_unions[iterate] = temp_du[iterate]; ^ IncoherentPhonon_test.c:7889:50: note: Assuming allocation function fails union conditional_data_union **temp_du=malloc(list->num_elements*sizeof(union conditional_data_union)); ^ IncoherentPhonon_test.c:7889:50: note: Assignment 'temp_du=malloc(list->num_elements*sizeof(union conditional_data_union))', assigned value is 0 union conditional_data_union **temp_du=malloc(list->num_elements*sizeof(union conditional_data_union)); ^ IncoherentPhonon_test.c:7904:38: note: Null pointer dereference list->p_data_unions[iterate] = temp_du[iterate]; ^ IncoherentPhonon_test.c:7997:9: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] temp[iterate] = list->positions[iterate]; ^ IncoherentPhonon_test.c:7992:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Coords*)); ^ IncoherentPhonon_test.c:7992:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct Coords*))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Coords*)); ^ IncoherentPhonon_test.c:7997:9: note: Null pointer dereference temp[iterate] = list->positions[iterate]; ^ IncoherentPhonon_test.c:8004:36: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] list->positions[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:7992:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Coords*)); ^ IncoherentPhonon_test.c:7992:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct Coords*))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Coords*)); ^ IncoherentPhonon_test.c:8004:36: note: Null pointer dereference list->positions[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8020:9: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] temp[iterate] = list->rotations[iterate]; ^ IncoherentPhonon_test.c:8017:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Rotation*)); ^ IncoherentPhonon_test.c:8017:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(double(*)[3][3]))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Rotation*)); ^ IncoherentPhonon_test.c:8020:9: note: Null pointer dereference temp[iterate] = list->rotations[iterate]; ^ IncoherentPhonon_test.c:8026:36: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] list->rotations[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8017:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Rotation*)); ^ IncoherentPhonon_test.c:8017:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(double(*)[3][3]))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Rotation*)); ^ IncoherentPhonon_test.c:8026:36: note: Null pointer dereference list->rotations[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8041:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8039:56: note: Assuming allocation function fails struct global_process_element_struct *temp=malloc(list->num_elements*sizeof(struct global_process_element_struct)); ^ IncoherentPhonon_test.c:8039:56: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_process_element_struct))', assigned value is 0 struct global_process_element_struct *temp=malloc(list->num_elements*sizeof(struct global_process_element_struct)); ^ IncoherentPhonon_test.c:8041:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8045:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8039:56: note: Assuming allocation function fails struct global_process_element_struct *temp=malloc(list->num_elements*sizeof(struct global_process_element_struct)); ^ IncoherentPhonon_test.c:8039:56: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_process_element_struct))', assigned value is 0 struct global_process_element_struct *temp=malloc(list->num_elements*sizeof(struct global_process_element_struct)); ^ IncoherentPhonon_test.c:8045:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8060:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8058:55: note: Assuming allocation function fails struct global_material_element_struct *temp=malloc(list->num_elements*sizeof(struct global_material_element_struct)); ^ IncoherentPhonon_test.c:8058:55: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_material_element_struct))', assigned value is 0 struct global_material_element_struct *temp=malloc(list->num_elements*sizeof(struct global_material_element_struct)); ^ IncoherentPhonon_test.c:8060:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8064:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8058:55: note: Assuming allocation function fails struct global_material_element_struct *temp=malloc(list->num_elements*sizeof(struct global_material_element_struct)); ^ IncoherentPhonon_test.c:8058:55: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_material_element_struct))', assigned value is 0 struct global_material_element_struct *temp=malloc(list->num_elements*sizeof(struct global_material_element_struct)); ^ IncoherentPhonon_test.c:8064:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8079:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8077:55: note: Assuming allocation function fails struct global_geometry_element_struct *temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct)); ^ IncoherentPhonon_test.c:8077:55: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct))', assigned value is 0 struct global_geometry_element_struct *temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct)); ^ IncoherentPhonon_test.c:8079:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8083:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8077:55: note: Assuming allocation function fails struct global_geometry_element_struct *temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct)); ^ IncoherentPhonon_test.c:8077:55: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct))', assigned value is 0 struct global_geometry_element_struct *temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct)); ^ IncoherentPhonon_test.c:8083:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8098:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8096:53: note: Assuming allocation function fails struct global_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct)); ^ IncoherentPhonon_test.c:8096:53: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct))', assigned value is 0 struct global_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct)); ^ IncoherentPhonon_test.c:8098:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8102:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8096:53: note: Assuming allocation function fails struct global_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct)); ^ IncoherentPhonon_test.c:8096:53: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct))', assigned value is 0 struct global_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct)); ^ IncoherentPhonon_test.c:8102:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8117:60: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8115:59: note: Assuming allocation function fails struct global_abs_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct)); ^ IncoherentPhonon_test.c:8115:59: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct))', assigned value is 0 struct global_abs_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct)); ^ IncoherentPhonon_test.c:8117:60: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8121:88: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8115:59: note: Assuming allocation function fails struct global_abs_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct)); ^ IncoherentPhonon_test.c:8115:59: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct))', assigned value is 0 struct global_abs_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct)); ^ IncoherentPhonon_test.c:8121:88: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8136:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8134:66: note: Assuming allocation function fails struct global_tagging_conditional_element_struct *temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct)); ^ IncoherentPhonon_test.c:8134:66: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct))', assigned value is 0 struct global_tagging_conditional_element_struct *temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct)); ^ IncoherentPhonon_test.c:8136:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8140:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8134:66: note: Assuming allocation function fails struct global_tagging_conditional_element_struct *temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct)); ^ IncoherentPhonon_test.c:8134:66: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct))', assigned value is 0 struct global_tagging_conditional_element_struct *temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct)); ^ IncoherentPhonon_test.c:8140:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8155:58: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8153:53: note: Assuming allocation function fails struct global_master_element_struct *temp=malloc(list->num_elements*sizeof(struct global_master_element_struct)); ^ IncoherentPhonon_test.c:8153:53: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_master_element_struct))', assigned value is 0 struct global_master_element_struct *temp=malloc(list->num_elements*sizeof(struct global_master_element_struct)); ^ IncoherentPhonon_test.c:8155:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ IncoherentPhonon_test.c:8159:86: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8153:53: note: Assuming allocation function fails struct global_master_element_struct *temp=malloc(list->num_elements*sizeof(struct global_master_element_struct)); ^ IncoherentPhonon_test.c:8153:53: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct global_master_element_struct))', assigned value is 0 struct global_master_element_struct *temp=malloc(list->num_elements*sizeof(struct global_master_element_struct)); ^ IncoherentPhonon_test.c:8159:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8178:61: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = loggers->p_logger_volume[iterate]; ^ IncoherentPhonon_test.c:8176:53: note: Assuming allocation function fails struct logger_for_each_process_list *temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list)); ^ IncoherentPhonon_test.c:8176:53: note: Assignment 'temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list))', assigned value is 0 struct logger_for_each_process_list *temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list)); ^ IncoherentPhonon_test.c:8178:61: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = loggers->p_logger_volume[iterate]; ^ IncoherentPhonon_test.c:8182:99: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) loggers->p_logger_volume[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8176:53: note: Assuming allocation function fails struct logger_for_each_process_list *temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list)); ^ IncoherentPhonon_test.c:8176:53: note: Assignment 'temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list))', assigned value is 0 struct logger_for_each_process_list *temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list)); ^ IncoherentPhonon_test.c:8182:99: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) loggers->p_logger_volume[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8229:65: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = abs_loggers->p_abs_logger[iterate]; ^ IncoherentPhonon_test.c:8227:43: note: Assuming allocation function fails struct abs_logger_struct **temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct *)); ^ IncoherentPhonon_test.c:8227:43: note: Assignment 'temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct*))', assigned value is 0 struct abs_logger_struct **temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct *)); ^ IncoherentPhonon_test.c:8229:65: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = abs_loggers->p_abs_logger[iterate]; ^ IncoherentPhonon_test.c:8234:104: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements-1;iterate++) abs_loggers->p_abs_logger[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8227:43: note: Assuming allocation function fails struct abs_logger_struct **temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct *)); ^ IncoherentPhonon_test.c:8227:43: note: Assignment 'temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct*))', assigned value is 0 struct abs_logger_struct **temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct *)); ^ IncoherentPhonon_test.c:8234:104: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) abs_loggers->p_abs_logger[iterate] = temp[iterate]; ^ IncoherentPhonon_test.c:8528:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fprintf(fp,"%d\t N I=%E \t", history->number_of_rays, history->intensity); ^ IncoherentPhonon_test.c:8692:3: note: Assuming allocation function fails MPI_MASTER( ^ IncoherentPhonon_test.c:8692:3: note: Assignment 'fp=fopen("union_history.dat","w")', assigned value is 0 MPI_MASTER( ^ IncoherentPhonon_test.c:8692:3: note: Calling function 'fprintf_total_history', 2nd argument 'fp' value is 0 MPI_MASTER( ^ IncoherentPhonon_test.c:8528:13: note: Null pointer dereference fprintf(fp,"%d\t N I=%E \t", history->number_of_rays, history->intensity); ^ IncoherentPhonon_test.c:8692:3: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] MPI_MASTER( ^ IncoherentPhonon_test.c:8692:3: note: Assuming allocation function fails MPI_MASTER( ^ IncoherentPhonon_test.c:8692:3: note: Assignment 'fp=fopen("union_history.dat","w")', assigned value is 0 MPI_MASTER( ^ IncoherentPhonon_test.c:8692:3: note: Null pointer dereference MPI_MASTER( ^ IncoherentPhonon_test.c:8814:73: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_lines [nullPointerOutOfMemory] for (iterate = 0;iterate < lines_master->number_of_lines;iterate++) temp_lines[iterate] = lines_master->lines[iterate]; ^ IncoherentPhonon_test.c:8813:24: note: Assuming allocation function fails temp_lines = malloc(lines_master->number_of_lines*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8813:24: note: Assignment 'temp_lines=malloc(lines_master->number_of_lines*sizeof(struct line_segment))', assigned value is 0 temp_lines = malloc(lines_master->number_of_lines*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8814:73: note: Null pointer dereference for (iterate = 0;iterate < lines_master->number_of_lines;iterate++) temp_lines[iterate] = lines_master->lines[iterate]; ^ IncoherentPhonon_test.c:8817:104: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_lines [nullPointerOutOfMemory] for (iterate = 0;iterate < lines_master->number_of_lines;iterate++) lines_master->lines[iterate] = temp_lines[iterate]; ^ IncoherentPhonon_test.c:8813:24: note: Assuming allocation function fails temp_lines = malloc(lines_master->number_of_lines*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8813:24: note: Assignment 'temp_lines=malloc(lines_master->number_of_lines*sizeof(struct line_segment))', assigned value is 0 temp_lines = malloc(lines_master->number_of_lines*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8817:104: note: Null pointer dereference for (iterate = 0;iterate < lines_master->number_of_lines;iterate++) lines_master->lines[iterate] = temp_lines[iterate]; ^ IncoherentPhonon_test.c:8981:5: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] points[0] = coords_set(r1[0],r1[1],r1[2]); ^ IncoherentPhonon_test.c:8980:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8980:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8981:5: note: Null pointer dereference points[0] = coords_set(r1[0],r1[1],r1[2]); ^ IncoherentPhonon_test.c:8982:5: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] points[intersection_list.num_elements+1] = coords_set(r2[0],r2[1],r2[2]); ^ IncoherentPhonon_test.c:8980:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8980:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8982:5: note: Null pointer dereference points[intersection_list.num_elements+1] = coords_set(r2[0],r2[1],r2[2]); ^ IncoherentPhonon_test.c:8984:9: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] points[iterate].x = r1[0] + direction[0]*intersection_list.elements[iterate-1]; ^ IncoherentPhonon_test.c:8980:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8980:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8984:9: note: Null pointer dereference points[iterate].x = r1[0] + direction[0]*intersection_list.elements[iterate-1]; ^ IncoherentPhonon_test.c:8985:9: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] points[iterate].y = r1[1] + direction[1]*intersection_list.elements[iterate-1]; ^ IncoherentPhonon_test.c:8980:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8980:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8985:9: note: Null pointer dereference points[iterate].y = r1[1] + direction[1]*intersection_list.elements[iterate-1]; ^ IncoherentPhonon_test.c:8986:9: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] points[iterate].z = r1[2] + direction[2]*intersection_list.elements[iterate-1]; ^ IncoherentPhonon_test.c:8980:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8980:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8986:9: note: Null pointer dereference points[iterate].z = r1[2] + direction[2]*intersection_list.elements[iterate-1]; ^ IncoherentPhonon_test.c:9006:9: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] lines[iterate].point1 = points[iterate]; ^ IncoherentPhonon_test.c:8995:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8995:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:9006:9: note: Null pointer dereference lines[iterate].point1 = points[iterate]; ^ IncoherentPhonon_test.c:9006:33: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] lines[iterate].point1 = points[iterate]; ^ IncoherentPhonon_test.c:8980:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8980:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:9006:33: note: Null pointer dereference lines[iterate].point1 = points[iterate]; ^ IncoherentPhonon_test.c:9007:9: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] lines[iterate].point2 = points[iterate+1]; ^ IncoherentPhonon_test.c:8995:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8995:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:9007:9: note: Null pointer dereference lines[iterate].point2 = points[iterate+1]; ^ IncoherentPhonon_test.c:9007:33: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] lines[iterate].point2 = points[iterate+1]; ^ IncoherentPhonon_test.c:8980:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:8980:26: note: Assignment 'points=malloc((intersection_list.num_elements+2)*sizeof(struct Coords))', assigned value is 0 Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ IncoherentPhonon_test.c:9007:33: note: Null pointer dereference lines[iterate].point2 = points[iterate+1]; ^ IncoherentPhonon_test.c:9008:27: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.x = 0.5*(lines[iterate].point1.x + lines[iterate].point2.x); ^ IncoherentPhonon_test.c:8995:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8995:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:9008:27: note: Null pointer dereference midpoint.x = 0.5*(lines[iterate].point1.x + lines[iterate].point2.x); ^ IncoherentPhonon_test.c:9008:53: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.x = 0.5*(lines[iterate].point1.x + lines[iterate].point2.x); ^ IncoherentPhonon_test.c:8995:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8995:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:9008:53: note: Null pointer dereference midpoint.x = 0.5*(lines[iterate].point1.x + lines[iterate].point2.x); ^ IncoherentPhonon_test.c:9009:27: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.y = 0.5*(lines[iterate].point1.y + lines[iterate].point2.y); ^ IncoherentPhonon_test.c:8995:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8995:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:9009:27: note: Null pointer dereference midpoint.y = 0.5*(lines[iterate].point1.y + lines[iterate].point2.y); ^ IncoherentPhonon_test.c:9009:53: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.y = 0.5*(lines[iterate].point1.y + lines[iterate].point2.y); ^ IncoherentPhonon_test.c:8995:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8995:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:9009:53: note: Null pointer dereference midpoint.y = 0.5*(lines[iterate].point1.y + lines[iterate].point2.y); ^ IncoherentPhonon_test.c:9010:27: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.z = 0.5*(lines[iterate].point1.z + lines[iterate].point2.z); ^ IncoherentPhonon_test.c:8995:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8995:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:9010:27: note: Null pointer dereference midpoint.z = 0.5*(lines[iterate].point1.z + lines[iterate].point2.z); ^ IncoherentPhonon_test.c:9010:53: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] midpoint.z = 0.5*(lines[iterate].point1.z + lines[iterate].point2.z); ^ IncoherentPhonon_test.c:8995:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:8995:38: note: Assignment 'lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment))', assigned value is 0 struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ IncoherentPhonon_test.c:9010:53: note: Null pointer dereference midpoint.z = 0.5*(lines[iterate].point1.z + lines[iterate].point2.z); ^ IncoherentPhonon_test.c:9222:16: warning: If memory allocation fails, then there is a possible null pointer dereference: union_output.p_box_storage [nullPointerOutOfMemory] *union_output.p_box_storage = *union_input->p_box_storage; ^ IncoherentPhonon_test.c:9220:38: note: Assuming allocation function fails union_output.p_box_storage = malloc(sizeof(struct box_storage)); ^ IncoherentPhonon_test.c:9220:38: note: Assignment 'union_output.p_box_storage=malloc(sizeof(struct box_storage))', assigned value is 0 union_output.p_box_storage = malloc(sizeof(struct box_storage)); ^ IncoherentPhonon_test.c:9222:16: note: Null pointer dereference *union_output.p_box_storage = *union_input->p_box_storage; ^ IncoherentPhonon_test.c:9233:16: warning: If memory allocation fails, then there is a possible null pointer dereference: union_output.p_cylinder_storage [nullPointerOutOfMemory] *union_output.p_cylinder_storage = *union_input->p_cylinder_storage; ^ IncoherentPhonon_test.c:9231:43: note: Assuming allocation function fails union_output.p_cylinder_storage = malloc(sizeof(struct cylinder_storage)); ^ IncoherentPhonon_test.c:9231:43: note: Assignment 'union_output.p_cylinder_storage=malloc(sizeof(struct cylinder_storage))', assigned value is 0 union_output.p_cylinder_storage = malloc(sizeof(struct cylinder_storage)); ^ IncoherentPhonon_test.c:9233:16: note: Null pointer dereference *union_output.p_cylinder_storage = *union_input->p_cylinder_storage; ^ IncoherentPhonon_test.c:9243:16: warning: If memory allocation fails, then there is a possible null pointer dereference: union_output.p_sphere_storage [nullPointerOutOfMemory] *union_output.p_sphere_storage = *union_input->p_sphere_storage; ^ IncoherentPhonon_test.c:9241:41: note: Assuming allocation function fails union_output.p_sphere_storage = malloc(sizeof(struct sphere_storage)); ^ IncoherentPhonon_test.c:9241:41: note: Assignment 'union_output.p_sphere_storage=malloc(sizeof(struct sphere_storage))', assigned value is 0 union_output.p_sphere_storage = malloc(sizeof(struct sphere_storage)); ^ IncoherentPhonon_test.c:9243:16: note: Null pointer dereference *union_output.p_sphere_storage = *union_input->p_sphere_storage; ^ IncoherentPhonon_test.c:9253:16: warning: If memory allocation fails, then there is a possible null pointer dereference: union_output.p_cone_storage [nullPointerOutOfMemory] *union_output.p_cone_storage = *union_input->p_cone_storage; ^ IncoherentPhonon_test.c:9251:39: note: Assuming allocation function fails union_output.p_cone_storage = malloc(sizeof(struct cone_storage)); ^ IncoherentPhonon_test.c:9251:39: note: Assignment 'union_output.p_cone_storage=malloc(sizeof(struct cone_storage))', assigned value is 0 union_output.p_cone_storage = malloc(sizeof(struct cone_storage)); ^ IncoherentPhonon_test.c:9253:16: note: Null pointer dereference *union_output.p_cone_storage = *union_input->p_cone_storage; ^ IncoherentPhonon_test.c:9263:16: warning: If memory allocation fails, then there is a possible null pointer dereference: union_output.p_mesh_storage [nullPointerOutOfMemory] *union_output.p_mesh_storage = *union_input->p_mesh_storage; ^ IncoherentPhonon_test.c:9261:39: note: Assuming allocation function fails union_output.p_mesh_storage = malloc(sizeof(struct mesh_storage)); ^ IncoherentPhonon_test.c:9261:39: note: Assignment 'union_output.p_mesh_storage=malloc(sizeof(struct mesh_storage))', assigned value is 0 union_output.p_mesh_storage = malloc(sizeof(struct mesh_storage)); ^ IncoherentPhonon_test.c:9263:16: note: Null pointer dereference *union_output.p_mesh_storage = *union_input->p_mesh_storage; ^ IncoherentPhonon_test.c:9321:9: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] rotate(output[point_nr].x,output[point_nr].y,output[point_nr].z,cross_product.x,cross_product.y,cross_product.z,rotate_angle,direction.x,direction.y,direction.z); ^ IncoherentPhonon_test.c:12632:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:12632:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:12634:22: note: Calling function 'points_on_circle', 1st argument 'circle_point_array' value is 0 points_on_circle(circle_point_array,cyl_top_point,cyl_direction,radius,number_of_points); ^ IncoherentPhonon_test.c:9321:9: note: Null pointer dereference rotate(output[point_nr].x,output[point_nr].y,output[point_nr].z,cross_product.x,cross_product.y,cross_product.z,rotate_angle,direction.x,direction.y,direction.z); ^ IncoherentPhonon_test.c:9322:9: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] output[point_nr] = coords_add(output[point_nr],center); ^ IncoherentPhonon_test.c:12632:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:12632:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:12634:22: note: Calling function 'points_on_circle', 1st argument 'circle_point_array' value is 0 points_on_circle(circle_point_array,cyl_top_point,cyl_direction,radius,number_of_points); ^ IncoherentPhonon_test.c:9322:9: note: Null pointer dereference output[point_nr] = coords_add(output[point_nr],center); ^ IncoherentPhonon_test.c:9322:39: warning: If memory allocation fails, then there is a possible null pointer dereference: output [nullPointerOutOfMemory] output[point_nr] = coords_add(output[point_nr],center); ^ IncoherentPhonon_test.c:12632:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:12632:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:12634:22: note: Calling function 'points_on_circle', 1st argument 'circle_point_array' value is 0 points_on_circle(circle_point_array,cyl_top_point,cyl_direction,radius,number_of_points); ^ IncoherentPhonon_test.c:9322:39: note: Null pointer dereference output[point_nr] = coords_add(output[point_nr],center); ^ IncoherentPhonon_test.c:11832:43: warning: If memory allocation fails, then there is a possible null pointer dereference: circle_point_array [nullPointerOutOfMemory] if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ IncoherentPhonon_test.c:11826:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:11826:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:11832:43: note: Null pointer dereference if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ IncoherentPhonon_test.c:11840:43: warning: If memory allocation fails, then there is a possible null pointer dereference: circle_point_array [nullPointerOutOfMemory] if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ IncoherentPhonon_test.c:11826:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:11826:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:11832:85: note: Assuming condition is false if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ IncoherentPhonon_test.c:11840:43: note: Null pointer dereference if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ IncoherentPhonon_test.c:12639:46: warning: If memory allocation fails, then there is a possible null pointer dereference: circle_point_array [nullPointerOutOfMemory] if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ IncoherentPhonon_test.c:12632:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:12632:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:12639:46: note: Null pointer dereference if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ IncoherentPhonon_test.c:12647:46: warning: If memory allocation fails, then there is a possible null pointer dereference: circle_point_array [nullPointerOutOfMemory] if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ IncoherentPhonon_test.c:12632:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:12632:32: note: Assignment 'circle_point_array=malloc(number_of_points*sizeof(struct Coords))', assigned value is 0 circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ IncoherentPhonon_test.c:12639:91: note: Assuming condition is false if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ IncoherentPhonon_test.c:12647:46: note: Null pointer dereference if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ IncoherentPhonon_test.c:13463:3: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] temporary_children_lists[0].num_elements = number_of_volumes - 1; ^ IncoherentPhonon_test.c:13460:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13460:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13463:3: note: Null pointer dereference temporary_children_lists[0].num_elements = number_of_volumes - 1; ^ IncoherentPhonon_test.c:13464:3: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] temporary_children_lists[0].elements = malloc(temporary_children_lists[0].num_elements*sizeof(int)); ^ IncoherentPhonon_test.c:13460:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13460:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13464:3: note: Null pointer dereference temporary_children_lists[0].elements = malloc(temporary_children_lists[0].num_elements*sizeof(int)); ^ IncoherentPhonon_test.c:13464:49: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] temporary_children_lists[0].elements = malloc(temporary_children_lists[0].num_elements*sizeof(int)); ^ IncoherentPhonon_test.c:13460:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13460:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13464:49: note: Null pointer dereference temporary_children_lists[0].elements = malloc(temporary_children_lists[0].num_elements*sizeof(int)); ^ IncoherentPhonon_test.c:13468:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] temporary_children_lists[0].elements[parent-1] = parent; ^ IncoherentPhonon_test.c:13460:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13460:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13468:7: note: Null pointer dereference temporary_children_lists[0].elements[parent-1] = parent; ^ IncoherentPhonon_test.c:13477:3: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[0] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15098:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13477:3: note: Null pointer dereference true_children_lists[0] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13478:3: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[0]->num_elements = number_of_volumes - 1; ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15098:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13478:3: note: Null pointer dereference true_children_lists[0]->num_elements = number_of_volumes - 1; ^ IncoherentPhonon_test.c:13479:3: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[0]->elements = malloc((number_of_volumes-1)*sizeof(int)); ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15098:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13479:3: note: Null pointer dereference true_children_lists[0]->elements = malloc((number_of_volumes-1)*sizeof(int)); ^ IncoherentPhonon_test.c:13485:7: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[0]->elements[parent-1] = parent; ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15098:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13485:7: note: Null pointer dereference true_children_lists[0]->elements[parent-1] = parent; ^ IncoherentPhonon_test.c:13520:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] temporary_children_lists[parent].num_elements=0; ^ IncoherentPhonon_test.c:13460:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13460:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13520:7: note: Null pointer dereference temporary_children_lists[parent].num_elements=0; ^ IncoherentPhonon_test.c:13524:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] MPI_MASTER( ^ IncoherentPhonon_test.c:13460:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13460:36: note: Assignment 'temporary_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13524:7: note: Null pointer dereference MPI_MASTER( ^ IncoherentPhonon_test.c:13648:5: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15098:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13648:5: note: Null pointer dereference true_children_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13649:5: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] true_children_lists[parent]->num_elements = 0; ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15098:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13649:5: note: Null pointer dereference true_children_lists[parent]->num_elements = 0; ^ IncoherentPhonon_test.c:13650:64: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] allocate_list_from_temp(used_elements,true_temp_list_local,true_children_lists[parent]); ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15098:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13650:64: note: Null pointer dereference allocate_list_from_temp(used_elements,true_temp_list_local,true_children_lists[parent]); ^ IncoherentPhonon_test.c:13652:5: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] MPI_MASTER( ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15098:38: note: Calling function 'generate_children_lists', 2nd argument 'true_children_lists' value is 0 generate_children_lists(Volumes, true_children_lists, number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13652:5: note: Null pointer dereference MPI_MASTER( ^ IncoherentPhonon_test.c:13661:53: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] for(child=0;childnum_elements = number_of_volumes-1; ^ IncoherentPhonon_test.c:15102:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15102:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13684:3: note: Null pointer dereference true_overlap_lists[0]->num_elements = number_of_volumes-1; ^ IncoherentPhonon_test.c:13685:3: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] true_overlap_lists[0]->elements = malloc((number_of_volumes-1)*sizeof(int)); ^ IncoherentPhonon_test.c:15102:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15102:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13685:3: note: Null pointer dereference true_overlap_lists[0]->elements = malloc((number_of_volumes-1)*sizeof(int)); ^ IncoherentPhonon_test.c:13687:3: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[0] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:15104:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15104:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13687:3: note: Null pointer dereference raw_overlap_lists[0] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13688:3: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[0]->num_elements = number_of_volumes; ^ IncoherentPhonon_test.c:15104:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15104:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13688:3: note: Null pointer dereference raw_overlap_lists[0]->num_elements = number_of_volumes; ^ IncoherentPhonon_test.c:13689:3: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[0]->elements = malloc(number_of_volumes*sizeof(int)); ^ IncoherentPhonon_test.c:15104:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15104:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13689:3: note: Null pointer dereference raw_overlap_lists[0]->elements = malloc(number_of_volumes*sizeof(int)); ^ IncoherentPhonon_test.c:13690:3: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[0]->elements[0] = 0; // Volume 0 overlaps itself ^ IncoherentPhonon_test.c:15104:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15104:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13690:3: note: Null pointer dereference raw_overlap_lists[0]->elements[0] = 0; // Volume 0 overlaps itself ^ IncoherentPhonon_test.c:13694:7: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] true_overlap_lists[0]->elements[parent-1] = parent; ^ IncoherentPhonon_test.c:15102:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15102:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13694:7: note: Null pointer dereference true_overlap_lists[0]->elements[parent-1] = parent; ^ IncoherentPhonon_test.c:13695:7: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[0]->elements[parent] = parent; ^ IncoherentPhonon_test.c:15104:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15104:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13695:7: note: Null pointer dereference raw_overlap_lists[0]->elements[parent] = parent; ^ IncoherentPhonon_test.c:13699:3: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] MPI_MASTER( ^ IncoherentPhonon_test.c:15102:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15102:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13699:3: note: Null pointer dereference MPI_MASTER( ^ IncoherentPhonon_test.c:13712:7: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] true_overlap_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:15102:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15102:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13712:7: note: Null pointer dereference true_overlap_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13785:7: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:15104:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15104:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13785:7: note: Null pointer dereference raw_overlap_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13786:7: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] raw_overlap_lists[parent]->num_elements = 0; ^ IncoherentPhonon_test.c:15104:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15104:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13786:7: note: Null pointer dereference raw_overlap_lists[parent]->num_elements = 0; ^ IncoherentPhonon_test.c:13787:61: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] allocate_list_from_temp(used_elements,temp_list_local,raw_overlap_lists[parent]); ^ IncoherentPhonon_test.c:15104:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15104:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:48: note: Calling function 'generate_overlap_lists', 2nd argument 'raw_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13787:61: note: Null pointer dereference allocate_list_from_temp(used_elements,temp_list_local,raw_overlap_lists[parent]); ^ IncoherentPhonon_test.c:13790:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_overlap_lists [nullPointerOutOfMemory] MPI_MASTER( ^ IncoherentPhonon_test.c:13680:35: note: Assuming allocation function fails temporary_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13680:35: note: Assignment 'temporary_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list))', assigned value is 0 temporary_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ IncoherentPhonon_test.c:13790:7: note: Null pointer dereference MPI_MASTER( ^ IncoherentPhonon_test.c:13903:59: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] allocate_list_from_temp(used_elements,temp_list_local,true_overlap_lists[parent]); ^ IncoherentPhonon_test.c:15102:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15102:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13903:59: note: Null pointer dereference allocate_list_from_temp(used_elements,temp_list_local,true_overlap_lists[parent]); ^ IncoherentPhonon_test.c:13905:5: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] MPI_MASTER( ^ IncoherentPhonon_test.c:15102:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15102:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15106:28: note: Calling function 'generate_overlap_lists', 1st argument 'true_overlap_lists' value is 0 generate_overlap_lists(true_overlap_lists, raw_overlap_lists, Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:13905:5: note: Null pointer dereference MPI_MASTER( ^ IncoherentPhonon_test.c:13911:53: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_overlap_lists [nullPointerOutOfMemory] for(child=1;childnum_elements; parent++) { ^ IncoherentPhonon_test.c:15113:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15113:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15136:52: note: Calling function 'generate_grandparents_lists', 2nd argument 'parents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:14460:29: note: Null pointer dereference for (parent = 0; parentnum_elements; parent++) { ^ IncoherentPhonon_test.c:14462:27: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ IncoherentPhonon_test.c:15113:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15113:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15136:52: note: Calling function 'generate_grandparents_lists', 2nd argument 'parents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:14462:27: note: Null pointer dereference on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ IncoherentPhonon_test.c:14462:41: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ IncoherentPhonon_test.c:15113:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15113:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15136:52: note: Calling function 'generate_grandparents_lists', 2nd argument 'parents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:14462:41: note: Null pointer dereference on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ IncoherentPhonon_test.c:14462:84: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ IncoherentPhonon_test.c:15113:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15113:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15136:52: note: Calling function 'generate_grandparents_lists', 2nd argument 'parents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:14462:84: note: Null pointer dereference on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ IncoherentPhonon_test.c:14471:61: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists [nullPointerOutOfMemory] allocate_list_from_temp(used_elements, temp_list_local, grandparents_lists[iterate]); ^ IncoherentPhonon_test.c:15135:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15135:32: note: Assignment 'grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15136:33: note: Calling function 'generate_grandparents_lists', 1st argument 'grandparents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:14471:61: note: Null pointer dereference allocate_list_from_temp(used_elements, temp_list_local, grandparents_lists[iterate]); ^ IncoherentPhonon_test.c:14474:5: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists [nullPointerOutOfMemory] MPI_MASTER( ^ IncoherentPhonon_test.c:15135:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15135:32: note: Assignment 'grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15136:33: note: Calling function 'generate_grandparents_lists', 1st argument 'grandparents_lists' value is 0 generate_grandparents_lists(grandparents_lists,parents_lists,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:14474:5: note: Null pointer dereference MPI_MASTER( ^ IncoherentPhonon_test.c:14501:30: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] work_list.num_elements = true_overlap_lists[volume_index]->num_elements; ^ IncoherentPhonon_test.c:15102:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15102:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15154:46: note: Calling function 'generate_destinations_lists_experimental', 1st argument 'true_overlap_lists' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ IncoherentPhonon_test.c:14501:30: note: Null pointer dereference work_list.num_elements = true_overlap_lists[volume_index]->num_elements; ^ IncoherentPhonon_test.c:14503:92: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] for (iterate=0;iterateelements[iterate]; ^ IncoherentPhonon_test.c:15102:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15102:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15154:46: note: Calling function 'generate_destinations_lists_experimental', 1st argument 'true_overlap_lists' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ IncoherentPhonon_test.c:14503:92: note: Null pointer dereference for (iterate=0;iterateelements[iterate]; ^ IncoherentPhonon_test.c:14548:28: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15154:66: note: Calling function 'generate_destinations_lists_experimental', 2nd argument 'true_children_lists' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ IncoherentPhonon_test.c:14548:28: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) ^ IncoherentPhonon_test.c:14549:50: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] remove_element_in_list_by_value(&work_list,true_children_lists[volume_index]->elements[iterate]); ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15154:66: note: Calling function 'generate_destinations_lists_experimental', 2nd argument 'true_children_lists' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ IncoherentPhonon_test.c:14549:50: note: Null pointer dereference remove_element_in_list_by_value(&work_list,true_children_lists[volume_index]->elements[iterate]); ^ IncoherentPhonon_test.c:14554:28: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) ^ IncoherentPhonon_test.c:15149:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15149:46: note: Assignment 'true_grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15154:116: note: Calling function 'generate_destinations_lists_experimental', 4th argument 'true_grandparents_lists_no_masks' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ IncoherentPhonon_test.c:14554:28: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) ^ IncoherentPhonon_test.c:14555:50: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists [nullPointerOutOfMemory] remove_element_in_list_by_value(&work_list,true_grandparents_lists[volume_index]->elements[iterate]); ^ IncoherentPhonon_test.c:15149:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15149:46: note: Assignment 'true_grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15154:116: note: Calling function 'generate_destinations_lists_experimental', 4th argument 'true_grandparents_lists_no_masks' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ IncoherentPhonon_test.c:14555:50: note: Null pointer dereference remove_element_in_list_by_value(&work_list,true_grandparents_lists[volume_index]->elements[iterate]); ^ IncoherentPhonon_test.c:14569:24: warning: If memory allocation fails, then there is a possible null pointer dereference: true_parents_lists [nullPointerOutOfMemory] if (on_int_list(*true_parents_lists[volume_index],work_list.elements[iterate])){ ^ IncoherentPhonon_test.c:15128:41: note: Assuming allocation function fails true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15128:41: note: Assignment 'true_parents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15154:87: note: Calling function 'generate_destinations_lists_experimental', 3rd argument 'true_parents_lists_no_masks' value is 0 generate_destinations_lists_experimental(true_overlap_lists, true_children_lists, true_parents_lists_no_masks, true_grandparents_lists_no_masks, Volumes, number_of_volumes, verbal); ^ IncoherentPhonon_test.c:14569:24: note: Null pointer dereference if (on_int_list(*true_parents_lists[volume_index],work_list.elements[iterate])){ ^ IncoherentPhonon_test.c:14869:34: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] for (parent=0;parentgeometry.children.elements[child]]->num_elements;parent++) { ^ IncoherentPhonon_test.c:15113:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15113:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15161:36: note: Calling function 'generate_direct_children_lists', 1st argument 'parents_lists' value is 0 generate_direct_children_lists(parents_lists,Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:14869:34: note: Null pointer dereference for (parent=0;parentgeometry.children.elements[child]]->num_elements;parent++) { ^ IncoherentPhonon_test.c:14870:74: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] if (on_int_list(Volumes[volume_index]->geometry.children,parents_lists[Volumes[volume_index]->geometry.children.elements[child]]->elements[parent])) ^ IncoherentPhonon_test.c:15113:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15113:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15161:36: note: Calling function 'generate_direct_children_lists', 1st argument 'parents_lists' value is 0 generate_direct_children_lists(parents_lists,Volumes,number_of_volumes,verbal); ^ IncoherentPhonon_test.c:14870:74: note: Null pointer dereference if (on_int_list(Volumes[volume_index]->geometry.children,parents_lists[Volumes[volume_index]->geometry.children.elements[child]]->elements[parent])) ^ IncoherentPhonon_test.c:15176:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] if (true_overlap_lists[iterate]->num_elements > 0) free(true_overlap_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15102:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15102:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15176:13: note: Null pointer dereference if (true_overlap_lists[iterate]->num_elements > 0) free(true_overlap_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15177:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] free(true_overlap_lists[iterate]); ^ IncoherentPhonon_test.c:15102:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15102:32: note: Assignment 'true_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15177:14: note: Null pointer dereference free(true_overlap_lists[iterate]); ^ IncoherentPhonon_test.c:15180:13: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] if (raw_overlap_lists[iterate]->num_elements > 0) free(raw_overlap_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15104:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15104:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15180:13: note: Null pointer dereference if (raw_overlap_lists[iterate]->num_elements > 0) free(raw_overlap_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15181:14: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] free(raw_overlap_lists[iterate]); ^ IncoherentPhonon_test.c:15104:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15104:31: note: Assignment 'raw_overlap_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15181:14: note: Null pointer dereference free(raw_overlap_lists[iterate]); ^ IncoherentPhonon_test.c:15184:13: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] if (parents_lists[iterate]->num_elements > 0) free(parents_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15113:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15113:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15184:13: note: Null pointer dereference if (parents_lists[iterate]->num_elements > 0) free(parents_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15185:14: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] free(parents_lists[iterate]); ^ IncoherentPhonon_test.c:15113:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15113:27: note: Assignment 'parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15185:14: note: Null pointer dereference free(parents_lists[iterate]); ^ IncoherentPhonon_test.c:15188:13: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists_no_masks [nullPointerOutOfMemory] if (parents_lists_no_masks[iterate]->num_elements > 0) free(parents_lists_no_masks[iterate]->elements); ^ IncoherentPhonon_test.c:15118:36: note: Assuming allocation function fails parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15118:36: note: Assignment 'parents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15188:13: note: Null pointer dereference if (parents_lists_no_masks[iterate]->num_elements > 0) free(parents_lists_no_masks[iterate]->elements); ^ IncoherentPhonon_test.c:15189:14: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists_no_masks [nullPointerOutOfMemory] free(parents_lists_no_masks[iterate]); ^ IncoherentPhonon_test.c:15118:36: note: Assuming allocation function fails parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15118:36: note: Assignment 'parents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15189:14: note: Null pointer dereference free(parents_lists_no_masks[iterate]); ^ IncoherentPhonon_test.c:15192:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_parents_lists [nullPointerOutOfMemory] if (true_parents_lists[iterate]->num_elements > 0) free(true_parents_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15123:32: note: Assuming allocation function fails true_parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15123:32: note: Assignment 'true_parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15192:13: note: Null pointer dereference if (true_parents_lists[iterate]->num_elements > 0) free(true_parents_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15193:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_parents_lists [nullPointerOutOfMemory] free(true_parents_lists[iterate]); ^ IncoherentPhonon_test.c:15123:32: note: Assuming allocation function fails true_parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15123:32: note: Assignment 'true_parents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15193:14: note: Null pointer dereference free(true_parents_lists[iterate]); ^ IncoherentPhonon_test.c:15196:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_parents_lists_no_masks [nullPointerOutOfMemory] if (true_parents_lists_no_masks[iterate]->num_elements > 0) free(true_parents_lists_no_masks[iterate]->elements); ^ IncoherentPhonon_test.c:15128:41: note: Assuming allocation function fails true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15128:41: note: Assignment 'true_parents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15196:13: note: Null pointer dereference if (true_parents_lists_no_masks[iterate]->num_elements > 0) free(true_parents_lists_no_masks[iterate]->elements); ^ IncoherentPhonon_test.c:15197:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_parents_lists_no_masks [nullPointerOutOfMemory] free(true_parents_lists_no_masks[iterate]); ^ IncoherentPhonon_test.c:15128:41: note: Assuming allocation function fails true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15128:41: note: Assignment 'true_parents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15197:14: note: Null pointer dereference free(true_parents_lists_no_masks[iterate]); ^ IncoherentPhonon_test.c:15200:13: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists [nullPointerOutOfMemory] if (grandparents_lists[iterate]->num_elements > 0) free(grandparents_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15135:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15135:32: note: Assignment 'grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15200:13: note: Null pointer dereference if (grandparents_lists[iterate]->num_elements > 0) free(grandparents_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15201:14: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists [nullPointerOutOfMemory] free(grandparents_lists[iterate]); ^ IncoherentPhonon_test.c:15135:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15135:32: note: Assignment 'grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15201:14: note: Null pointer dereference free(grandparents_lists[iterate]); ^ IncoherentPhonon_test.c:15204:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists [nullPointerOutOfMemory] if (true_grandparents_lists[iterate]->num_elements > 0) free(true_grandparents_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15145:37: note: Assuming allocation function fails true_grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15145:37: note: Assignment 'true_grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15204:13: note: Null pointer dereference if (true_grandparents_lists[iterate]->num_elements > 0) free(true_grandparents_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15205:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists [nullPointerOutOfMemory] free(true_grandparents_lists[iterate]); ^ IncoherentPhonon_test.c:15145:37: note: Assuming allocation function fails true_grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15145:37: note: Assignment 'true_grandparents_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15205:14: note: Null pointer dereference free(true_grandparents_lists[iterate]); ^ IncoherentPhonon_test.c:15208:13: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists_no_masks [nullPointerOutOfMemory] if (grandparents_lists_no_masks[iterate]->num_elements > 0) free(grandparents_lists_no_masks[iterate]->elements); ^ IncoherentPhonon_test.c:15140:41: note: Assuming allocation function fails grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15140:41: note: Assignment 'grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15208:13: note: Null pointer dereference if (grandparents_lists_no_masks[iterate]->num_elements > 0) free(grandparents_lists_no_masks[iterate]->elements); ^ IncoherentPhonon_test.c:15209:14: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists_no_masks [nullPointerOutOfMemory] free(grandparents_lists_no_masks[iterate]); ^ IncoherentPhonon_test.c:15140:41: note: Assuming allocation function fails grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15140:41: note: Assignment 'grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15209:14: note: Null pointer dereference free(grandparents_lists_no_masks[iterate]); ^ IncoherentPhonon_test.c:15212:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists_no_masks [nullPointerOutOfMemory] if (true_grandparents_lists_no_masks[iterate]->num_elements > 0) free(true_grandparents_lists_no_masks[iterate]->elements); ^ IncoherentPhonon_test.c:15149:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15149:46: note: Assignment 'true_grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15212:13: note: Null pointer dereference if (true_grandparents_lists_no_masks[iterate]->num_elements > 0) free(true_grandparents_lists_no_masks[iterate]->elements); ^ IncoherentPhonon_test.c:15213:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists_no_masks [nullPointerOutOfMemory] free(true_grandparents_lists_no_masks[iterate]); ^ IncoherentPhonon_test.c:15149:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15149:46: note: Assignment 'true_grandparents_lists_no_masks=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15213:14: note: Null pointer dereference free(true_grandparents_lists_no_masks[iterate]); ^ IncoherentPhonon_test.c:15216:13: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] if (true_children_lists[iterate]->num_elements > 0) free(true_children_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15216:13: note: Null pointer dereference if (true_children_lists[iterate]->num_elements > 0) free(true_children_lists[iterate]->elements); ^ IncoherentPhonon_test.c:15217:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] free(true_children_lists[iterate]); ^ IncoherentPhonon_test.c:15096:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15096:33: note: Assignment 'true_children_lists=malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*))', assigned value is 0 true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ IncoherentPhonon_test.c:15217:14: note: Null pointer dereference free(true_children_lists[iterate]); ^ IncoherentPhonon_test.c:15405:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fprintf(fp,"r_old x, r_old y, r_old z, old t, r x, r y, r z, new t, weight change, volume index, neutron id \n"); ^ IncoherentPhonon_test.c:15404:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","w"); ^ IncoherentPhonon_test.c:15404:13: note: Assignment 'fp=fopen("Union_absorption.dat","w")', assigned value is 0 fp = fopen("Union_absorption.dat","w"); ^ IncoherentPhonon_test.c:15405:11: note: Null pointer dereference fprintf(fp,"r_old x, r_old y, r_old z, old t, r x, r y, r z, new t, weight change, volume index, neutron id \n"); ^ IncoherentPhonon_test.c:15407:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fclose(fp); ^ IncoherentPhonon_test.c:15404:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","w"); ^ IncoherentPhonon_test.c:15404:13: note: Assignment 'fp=fopen("Union_absorption.dat","w")', assigned value is 0 fp = fopen("Union_absorption.dat","w"); ^ IncoherentPhonon_test.c:15407:10: note: Null pointer dereference fclose(fp); ^ IncoherentPhonon_test.c:15420:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fprintf(fp,"%g, %g, %g, %g, %g, %g, %g, %g, %e, %i, %i \n", ^ IncoherentPhonon_test.c:15413:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","a"); ^ IncoherentPhonon_test.c:15413:13: note: Assignment 'fp=fopen("Union_absorption.dat","a")', assigned value is 0 fp = fopen("Union_absorption.dat","a"); ^ IncoherentPhonon_test.c:15420:13: note: Null pointer dereference fprintf(fp,"%g, %g, %g, %g, %g, %g, %g, %g, %e, %i, %i \n", ^ IncoherentPhonon_test.c:15428:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fclose(fp); ^ IncoherentPhonon_test.c:15413:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","a"); ^ IncoherentPhonon_test.c:15413:13: note: Assignment 'fp=fopen("Union_absorption.dat","a")', assigned value is 0 fp = fopen("Union_absorption.dat","a"); ^ IncoherentPhonon_test.c:15428:10: note: Null pointer dereference fclose(fp); ^ IncoherentPhonon_test.c:16145:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",data->nxs); ^ IncoherentPhonon_test.c:16144:18: note: Assuming allocation function fails filep = fopen("XS_1ph_exact.txt","w"); ^ IncoherentPhonon_test.c:16144:18: note: Assignment 'filep=fopen("XS_1ph_exact.txt","w")', assigned value is 0 filep = fopen("XS_1ph_exact.txt","w"); ^ IncoherentPhonon_test.c:16145:13: note: Null pointer dereference fprintf(filep,"%d\n",data->nxs); ^ IncoherentPhonon_test.c:16197:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",data->nxs); ^ IncoherentPhonon_test.c:16196:18: note: Assuming allocation function fails filep = fopen("XS_2ph_exact.txt","w"); ^ IncoherentPhonon_test.c:16196:18: note: Assignment 'filep=fopen("XS_2ph_exact.txt","w")', assigned value is 0 filep = fopen("XS_2ph_exact.txt","w"); ^ IncoherentPhonon_test.c:16197:13: note: Null pointer dereference fprintf(filep,"%d\n",data->nxs); ^ IncoherentPhonon_test.c:16248:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",data->nxs); ^ IncoherentPhonon_test.c:16247:18: note: Assuming allocation function fails filep = fopen("XS_3ph_exact.txt","w"); ^ IncoherentPhonon_test.c:16247:18: note: Assignment 'filep=fopen("XS_3ph_exact.txt","w")', assigned value is 0 filep = fopen("XS_3ph_exact.txt","w"); ^ IncoherentPhonon_test.c:16248:13: note: Null pointer dereference fprintf(filep,"%d\n",data->nxs); ^ IncoherentPhonon_test.c:16315:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d %d\n",data->nphe_approx,data->nxs); ^ IncoherentPhonon_test.c:16314:16: note: Assuming allocation function fails filep = fopen("XS_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:16314:16: note: Assignment 'filep=fopen("XS_pph_gauss.txt","w")', assigned value is 0 filep = fopen("XS_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:16315:11: note: Null pointer dereference fprintf(filep,"%d %d\n",data->nphe_approx,data->nxs); ^ IncoherentPhonon_test.c:16318:16: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d %f %.6e %.6e %.6e\n",p,data->kabs[i],(data->xsTot_pph_gauss)[p][i], ^ IncoherentPhonon_test.c:16314:16: note: Assuming allocation function fails filep = fopen("XS_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:16314:16: note: Assignment 'filep=fopen("XS_pph_gauss.txt","w")', assigned value is 0 filep = fopen("XS_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:16318:16: note: Null pointer dereference fprintf(filep,"%d %f %.6e %.6e %.6e\n",p,data->kabs[i],(data->xsTot_pph_gauss)[p][i], ^ IncoherentPhonon_test.c:16322:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:16314:16: note: Assuming allocation function fails filep = fopen("XS_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:16314:16: note: Assignment 'filep=fopen("XS_pph_gauss.txt","w")', assigned value is 0 filep = fopen("XS_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:16322:10: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:16378:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d %d\n",data->nphe_approx,data->nxs); ^ IncoherentPhonon_test.c:16377:16: note: Assuming allocation function fails filep = fopen("XS_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:16377:16: note: Assignment 'filep=fopen("XS_pph_sp.txt","w")', assigned value is 0 filep = fopen("XS_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:16378:11: note: Null pointer dereference fprintf(filep,"%d %d\n",data->nphe_approx,data->nxs); ^ IncoherentPhonon_test.c:16381:16: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d %f %.6e %.6e %.6e\n",p,data->kabs[i],(data->xsTot_pph_sp)[p][i], ^ IncoherentPhonon_test.c:16377:16: note: Assuming allocation function fails filep = fopen("XS_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:16377:16: note: Assignment 'filep=fopen("XS_pph_sp.txt","w")', assigned value is 0 filep = fopen("XS_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:16381:16: note: Null pointer dereference fprintf(filep,"%d %f %.6e %.6e %.6e\n",p,data->kabs[i],(data->xsTot_pph_sp)[p][i], ^ IncoherentPhonon_test.c:16385:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:16377:16: note: Assuming allocation function fails filep = fopen("XS_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:16377:16: note: Assignment 'filep=fopen("XS_pph_sp.txt","w")', assigned value is 0 filep = fopen("XS_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:16385:10: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:16416:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",data->nxs); ^ IncoherentPhonon_test.c:16415:18: note: Assuming allocation function fails filep = fopen("XS_mph_resum.txt","w"); ^ IncoherentPhonon_test.c:16415:18: note: Assignment 'filep=fopen("XS_mph_resum.txt","w")', assigned value is 0 filep = fopen("XS_mph_resum.txt","w"); ^ IncoherentPhonon_test.c:16416:13: note: Null pointer dereference fprintf(filep,"%d\n",data->nxs); ^ IncoherentPhonon_test.c:16457:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16453:20: note: Assuming allocation function fails filep = fopen("dXSdx_1ph.txt","w"); ^ IncoherentPhonon_test.c:16453:20: note: Assignment 'filep=fopen("dXSdx_1ph.txt","w")', assigned value is 0 filep = fopen("dXSdx_1ph.txt","w"); ^ IncoherentPhonon_test.c:16457:10: note: Null pointer dereference fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16460:14: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:16453:20: note: Assuming allocation function fails filep = fopen("dXSdx_1ph.txt","w"); ^ IncoherentPhonon_test.c:16453:20: note: Assignment 'filep=fopen("dXSdx_1ph.txt","w")', assigned value is 0 filep = fopen("dXSdx_1ph.txt","w"); ^ IncoherentPhonon_test.c:16460:14: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:16471:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16467:16: note: Assuming allocation function fails filep = fopen("dXSdx_1ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16467:16: note: Assignment 'filep=fopen("dXSdx_1ph_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_1ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16471:13: note: Null pointer dereference fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16474:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:16467:16: note: Assuming allocation function fails filep = fopen("dXSdx_1ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16467:16: note: Assignment 'filep=fopen("dXSdx_1ph_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_1ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16474:10: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:16505:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16501:20: note: Assuming allocation function fails filep = fopen("dXSdx_2ph.txt","w"); ^ IncoherentPhonon_test.c:16501:20: note: Assignment 'filep=fopen("dXSdx_2ph.txt","w")', assigned value is 0 filep = fopen("dXSdx_2ph.txt","w"); ^ IncoherentPhonon_test.c:16505:10: note: Null pointer dereference fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16508:14: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:16501:20: note: Assuming allocation function fails filep = fopen("dXSdx_2ph.txt","w"); ^ IncoherentPhonon_test.c:16501:20: note: Assignment 'filep=fopen("dXSdx_2ph.txt","w")', assigned value is 0 filep = fopen("dXSdx_2ph.txt","w"); ^ IncoherentPhonon_test.c:16508:14: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:16518:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16514:16: note: Assuming allocation function fails filep = fopen("dXSdx_2ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16514:16: note: Assignment 'filep=fopen("dXSdx_2ph_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_2ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16518:13: note: Null pointer dereference fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16521:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:16514:16: note: Assuming allocation function fails filep = fopen("dXSdx_2ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16514:16: note: Assignment 'filep=fopen("dXSdx_2ph_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_2ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16521:10: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:16552:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16548:20: note: Assuming allocation function fails filep = fopen("dXSdx_3ph.txt","w"); ^ IncoherentPhonon_test.c:16548:20: note: Assignment 'filep=fopen("dXSdx_3ph.txt","w")', assigned value is 0 filep = fopen("dXSdx_3ph.txt","w"); ^ IncoherentPhonon_test.c:16552:10: note: Null pointer dereference fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16555:14: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:16548:20: note: Assuming allocation function fails filep = fopen("dXSdx_3ph.txt","w"); ^ IncoherentPhonon_test.c:16548:20: note: Assignment 'filep=fopen("dXSdx_3ph.txt","w")', assigned value is 0 filep = fopen("dXSdx_3ph.txt","w"); ^ IncoherentPhonon_test.c:16555:14: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:16565:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16561:16: note: Assuming allocation function fails filep = fopen("dXSdx_3ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16561:16: note: Assignment 'filep=fopen("dXSdx_3ph_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_3ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16565:13: note: Null pointer dereference fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:16568:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:16561:16: note: Assuming allocation function fails filep = fopen("dXSdx_3ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16561:16: note: Assignment 'filep=fopen("dXSdx_3ph_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_3ph_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:16568:10: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:16978:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",data->nF1); ^ IncoherentPhonon_test.c:16977:18: note: Assuming allocation function fails filep = fopen("F1.txt","a"); ^ IncoherentPhonon_test.c:16977:18: note: Assignment 'filep=fopen("F1.txt","a")', assigned value is 0 filep = fopen("F1.txt","a"); ^ IncoherentPhonon_test.c:16978:13: note: Null pointer dereference fprintf(filep,"%d\n",data->nF1); ^ IncoherentPhonon_test.c:17016:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",data->nF2); ^ IncoherentPhonon_test.c:17015:18: note: Assuming allocation function fails filep = fopen("F2.txt","a"); ^ IncoherentPhonon_test.c:17015:18: note: Assignment 'filep=fopen("F2.txt","a")', assigned value is 0 filep = fopen("F2.txt","a"); ^ IncoherentPhonon_test.c:17016:13: note: Null pointer dereference fprintf(filep,"%d\n",data->nF2); ^ IncoherentPhonon_test.c:17051:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",data->nF3); ^ IncoherentPhonon_test.c:17050:18: note: Assuming allocation function fails filep = fopen("F3.txt","a"); ^ IncoherentPhonon_test.c:17050:18: note: Assignment 'filep=fopen("F3.txt","a")', assigned value is 0 filep = fopen("F3.txt","a"); ^ IncoherentPhonon_test.c:17051:13: note: Null pointer dereference fprintf(filep,"%d\n",data->nF3); ^ IncoherentPhonon_test.c:17276:5: warning: If memory allocation fails, then there is a possible null pointer dereference: u1 [nullPointerOutOfMemory] u1[i] = umin + i*du; ^ IncoherentPhonon_test.c:17270:24: note: Assuming allocation function fails u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17270:8: note: Assignment 'u1=(double*)malloc((np1+1)*sizeof(double))', assigned value is 0 u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17276:5: note: Null pointer dereference u1[i] = umin + i*du; ^ IncoherentPhonon_test.c:17277:5: warning: If memory allocation fails, then there is a possible null pointer dereference: Fp1 [nullPointerOutOfMemory] Fp1[i] = F1(u1[i],data); ^ IncoherentPhonon_test.c:17271:25: note: Assuming allocation function fails Fp1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17271:9: note: Assignment 'Fp1=(double*)malloc((np1+1)*sizeof(double))', assigned value is 0 Fp1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17277:5: note: Null pointer dereference Fp1[i] = F1(u1[i],data); ^ IncoherentPhonon_test.c:17277:17: warning: If memory allocation fails, then there is a possible null pointer dereference: u1 [nullPointerOutOfMemory] Fp1[i] = F1(u1[i],data); ^ IncoherentPhonon_test.c:17270:24: note: Assuming allocation function fails u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17270:8: note: Assignment 'u1=(double*)malloc((np1+1)*sizeof(double))', assigned value is 0 u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17277:17: note: Null pointer dereference Fp1[i] = F1(u1[i],data); ^ IncoherentPhonon_test.c:17279:3: warning: If memory allocation fails, then there is a possible null pointer dereference: u1 [nullPointerOutOfMemory] u1[np1] = umax; ^ IncoherentPhonon_test.c:17270:24: note: Assuming allocation function fails u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17270:8: note: Assignment 'u1=(double*)malloc((np1+1)*sizeof(double))', assigned value is 0 u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17279:3: note: Null pointer dereference u1[np1] = umax; ^ IncoherentPhonon_test.c:17280:3: warning: If memory allocation fails, then there is a possible null pointer dereference: Fp1 [nullPointerOutOfMemory] Fp1[np1] = F1(u1[np1],data); ^ IncoherentPhonon_test.c:17271:25: note: Assuming allocation function fails Fp1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17271:9: note: Assignment 'Fp1=(double*)malloc((np1+1)*sizeof(double))', assigned value is 0 Fp1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17280:3: note: Null pointer dereference Fp1[np1] = F1(u1[np1],data); ^ IncoherentPhonon_test.c:17280:17: warning: If memory allocation fails, then there is a possible null pointer dereference: u1 [nullPointerOutOfMemory] Fp1[np1] = F1(u1[np1],data); ^ IncoherentPhonon_test.c:17270:24: note: Assuming allocation function fails u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17270:8: note: Assignment 'u1=(double*)malloc((np1+1)*sizeof(double))', assigned value is 0 u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17280:17: note: Null pointer dereference Fp1[np1] = F1(u1[np1],data); ^ IncoherentPhonon_test.c:17283:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",np1+1); ^ IncoherentPhonon_test.c:17282:16: note: Assuming allocation function fails filep = fopen(fn,"w"); ^ IncoherentPhonon_test.c:17282:16: note: Assignment 'filep=fopen(fn,"w")', assigned value is 0 filep = fopen(fn,"w"); ^ IncoherentPhonon_test.c:17283:11: note: Null pointer dereference fprintf(filep,"%d\n",np1+1); ^ IncoherentPhonon_test.c:17285:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%.16e %.16e\n",u1[i],Fp1[i]); ^ IncoherentPhonon_test.c:17282:16: note: Assuming allocation function fails filep = fopen(fn,"w"); ^ IncoherentPhonon_test.c:17282:16: note: Assignment 'filep=fopen(fn,"w")', assigned value is 0 filep = fopen(fn,"w"); ^ IncoherentPhonon_test.c:17285:13: note: Null pointer dereference fprintf(filep,"%.16e %.16e\n",u1[i],Fp1[i]); ^ IncoherentPhonon_test.c:17285:35: warning: If memory allocation fails, then there is a possible null pointer dereference: u1 [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e\n",u1[i],Fp1[i]); ^ IncoherentPhonon_test.c:17270:24: note: Assuming allocation function fails u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17270:8: note: Assignment 'u1=(double*)malloc((np1+1)*sizeof(double))', assigned value is 0 u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17285:35: note: Null pointer dereference fprintf(filep,"%.16e %.16e\n",u1[i],Fp1[i]); ^ IncoherentPhonon_test.c:17285:41: warning: If memory allocation fails, then there is a possible null pointer dereference: Fp1 [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e\n",u1[i],Fp1[i]); ^ IncoherentPhonon_test.c:17271:25: note: Assuming allocation function fails Fp1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17271:9: note: Assignment 'Fp1=(double*)malloc((np1+1)*sizeof(double))', assigned value is 0 Fp1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17285:41: note: Null pointer dereference fprintf(filep,"%.16e %.16e\n",u1[i],Fp1[i]); ^ IncoherentPhonon_test.c:17287:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:17282:16: note: Assuming allocation function fails filep = fopen(fn,"w"); ^ IncoherentPhonon_test.c:17282:16: note: Assignment 'filep=fopen(fn,"w")', assigned value is 0 filep = fopen(fn,"w"); ^ IncoherentPhonon_test.c:17287:10: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:17299:7: warning: If memory allocation fails, then there is a possible null pointer dereference: u2 [nullPointerOutOfMemory] u2[i] = umin + i*du; ^ IncoherentPhonon_test.c:17291:26: note: Assuming allocation function fails u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17291:10: note: Assignment 'u2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17299:7: note: Null pointer dereference u2[i] = umin + i*du; ^ IncoherentPhonon_test.c:17300:7: warning: If memory allocation fails, then there is a possible null pointer dereference: Fp2 [nullPointerOutOfMemory] Fp2[i] = convolution(u2[i],np1+1,u1,Fp1,data); ^ IncoherentPhonon_test.c:17292:27: note: Assuming allocation function fails Fp2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17292:11: note: Assignment 'Fp2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 Fp2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17300:7: note: Null pointer dereference Fp2[i] = convolution(u2[i],np1+1,u1,Fp1,data); ^ IncoherentPhonon_test.c:17300:28: warning: If memory allocation fails, then there is a possible null pointer dereference: u2 [nullPointerOutOfMemory] Fp2[i] = convolution(u2[i],np1+1,u1,Fp1,data); ^ IncoherentPhonon_test.c:17291:26: note: Assuming allocation function fails u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17291:10: note: Assignment 'u2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17300:28: note: Null pointer dereference Fp2[i] = convolution(u2[i],np1+1,u1,Fp1,data); ^ IncoherentPhonon_test.c:17301:37: warning: If memory allocation fails, then there is a possible null pointer dereference: u2 [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e\n",u2[i],Fp2[i]); ^ IncoherentPhonon_test.c:17291:26: note: Assuming allocation function fails u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17291:10: note: Assignment 'u2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17301:37: note: Null pointer dereference fprintf(filep,"%.16e %.16e\n",u2[i],Fp2[i]); ^ IncoherentPhonon_test.c:17301:43: warning: If memory allocation fails, then there is a possible null pointer dereference: Fp2 [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e\n",u2[i],Fp2[i]); ^ IncoherentPhonon_test.c:17292:27: note: Assuming allocation function fails Fp2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17292:11: note: Assignment 'Fp2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 Fp2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17301:43: note: Null pointer dereference fprintf(filep,"%.16e %.16e\n",u2[i],Fp2[i]); ^ IncoherentPhonon_test.c:17304:5: warning: If memory allocation fails, then there is a possible null pointer dereference: u2 [nullPointerOutOfMemory] u2[np2] = umax; ^ IncoherentPhonon_test.c:17291:26: note: Assuming allocation function fails u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17291:10: note: Assignment 'u2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17304:5: note: Null pointer dereference u2[np2] = umax; ^ IncoherentPhonon_test.c:17305:5: warning: If memory allocation fails, then there is a possible null pointer dereference: Fp2 [nullPointerOutOfMemory] Fp2[np2] = convolution(u2[np2],np1+1,u1,Fp1,data); ^ IncoherentPhonon_test.c:17292:27: note: Assuming allocation function fails Fp2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17292:11: note: Assignment 'Fp2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 Fp2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17305:5: note: Null pointer dereference Fp2[np2] = convolution(u2[np2],np1+1,u1,Fp1,data); ^ IncoherentPhonon_test.c:17305:28: warning: If memory allocation fails, then there is a possible null pointer dereference: u2 [nullPointerOutOfMemory] Fp2[np2] = convolution(u2[np2],np1+1,u1,Fp1,data); ^ IncoherentPhonon_test.c:17291:26: note: Assuming allocation function fails u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17291:10: note: Assignment 'u2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17305:28: note: Null pointer dereference Fp2[np2] = convolution(u2[np2],np1+1,u1,Fp1,data); ^ IncoherentPhonon_test.c:17306:35: warning: If memory allocation fails, then there is a possible null pointer dereference: u2 [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e\n",u2[np2],Fp2[np2]); ^ IncoherentPhonon_test.c:17291:26: note: Assuming allocation function fails u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17291:10: note: Assignment 'u2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17306:35: note: Null pointer dereference fprintf(filep,"%.16e %.16e\n",u2[np2],Fp2[np2]); ^ IncoherentPhonon_test.c:17306:43: warning: If memory allocation fails, then there is a possible null pointer dereference: Fp2 [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e\n",u2[np2],Fp2[np2]); ^ IncoherentPhonon_test.c:17292:27: note: Assuming allocation function fails Fp2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17292:11: note: Assignment 'Fp2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 Fp2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17306:43: note: Null pointer dereference fprintf(filep,"%.16e %.16e\n",u2[np2],Fp2[np2]); ^ IncoherentPhonon_test.c:17317:7: warning: If memory allocation fails, then there is a possible null pointer dereference: u1 [nullPointerOutOfMemory] u1[i] = u2[i]; ^ IncoherentPhonon_test.c:17313:26: note: Assuming allocation function fails u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17313:10: note: Assignment 'u1=(double*)malloc((np1+1)*sizeof(double))', assigned value is 0 u1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17317:7: note: Null pointer dereference u1[i] = u2[i]; ^ IncoherentPhonon_test.c:17317:15: warning: If memory allocation fails, then there is a possible null pointer dereference: u2 [nullPointerOutOfMemory] u1[i] = u2[i]; ^ IncoherentPhonon_test.c:17291:26: note: Assuming allocation function fails u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17291:10: note: Assignment 'u2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 u2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17317:15: note: Null pointer dereference u1[i] = u2[i]; ^ IncoherentPhonon_test.c:17318:7: warning: If memory allocation fails, then there is a possible null pointer dereference: Fp1 [nullPointerOutOfMemory] Fp1[i] = Fp2[i]; ^ IncoherentPhonon_test.c:17314:27: note: Assuming allocation function fails Fp1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17314:11: note: Assignment 'Fp1=(double*)malloc((np1+1)*sizeof(double))', assigned value is 0 Fp1 = (double *)malloc((np1+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17318:7: note: Null pointer dereference Fp1[i] = Fp2[i]; ^ IncoherentPhonon_test.c:17318:16: warning: If memory allocation fails, then there is a possible null pointer dereference: Fp2 [nullPointerOutOfMemory] Fp1[i] = Fp2[i]; ^ IncoherentPhonon_test.c:17292:27: note: Assuming allocation function fails Fp2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17292:11: note: Assignment 'Fp2=(double*)malloc((np2+1)*sizeof(double))', assigned value is 0 Fp2 = (double *)malloc((np2+1)*sizeof(double)); ^ IncoherentPhonon_test.c:17318:16: note: Null pointer dereference Fp1[i] = Fp2[i]; ^ IncoherentPhonon_test.c:17772:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pfm [nullPointerOutOfMemory] pfm[i] = -1.0; ^ IncoherentPhonon_test.c:17762:25: note: Assuming allocation function fails pfm = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17762:9: note: Assignment 'pfm=(double*)malloc(np*sizeof(double))', assigned value is 0 pfm = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17772:5: note: Null pointer dereference pfm[i] = -1.0; ^ IncoherentPhonon_test.c:17773:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pQ2 [nullPointerOutOfMemory] pQ2[i] = 0; ^ IncoherentPhonon_test.c:17761:25: note: Assuming allocation function fails pQ2 = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17761:9: note: Assignment 'pQ2=(double*)malloc(np*sizeof(double))', assigned value is 0 pQ2 = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17773:5: note: Null pointer dereference pQ2[i] = 0; ^ IncoherentPhonon_test.c:17778:13: warning: If memory allocation fails, then there is a possible null pointer dereference: pfm [nullPointerOutOfMemory] if(xs>pfm[i]) { pfm[i] = xs; pQ2[i] = Q2; } ^ IncoherentPhonon_test.c:17762:25: note: Assuming allocation function fails pfm = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17762:9: note: Assignment 'pfm=(double*)malloc(np*sizeof(double))', assigned value is 0 pfm = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17778:13: note: Null pointer dereference if(xs>pfm[i]) { pfm[i] = xs; pQ2[i] = Q2; } ^ IncoherentPhonon_test.c:17783:5: warning: If memory allocation fails, then there is a possible null pointer dereference: Q2min [nullPointerOutOfMemory] Q2min[i] = 0; ^ IncoherentPhonon_test.c:17763:27: note: Assuming allocation function fails Q2min = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17763:11: note: Assignment 'Q2min=(double*)malloc(np*sizeof(double))', assigned value is 0 Q2min = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17783:5: note: Null pointer dereference Q2min[i] = 0; ^ IncoherentPhonon_test.c:17784:10: warning: If memory allocation fails, then there is a possible null pointer dereference: pQ2 [nullPointerOutOfMemory] Q2 = pQ2[i]; ^ IncoherentPhonon_test.c:17761:25: note: Assuming allocation function fails pQ2 = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17761:9: note: Assignment 'pQ2=(double*)malloc(np*sizeof(double))', assigned value is 0 pQ2 = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17784:10: note: Null pointer dereference Q2 = pQ2[i]; ^ IncoherentPhonon_test.c:17789:13: warning: If memory allocation fails, then there is a possible null pointer dereference: pfm [nullPointerOutOfMemory] if(xs/pfm[i] < 1.0e-6) { Q2min[i] = Q2; break; } ^ IncoherentPhonon_test.c:17762:25: note: Assuming allocation function fails pfm = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17762:9: note: Assignment 'pfm=(double*)malloc(np*sizeof(double))', assigned value is 0 pfm = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:17787:12: note: Assuming condition is false if(Q2<=0) { break; } ^ IncoherentPhonon_test.c:17789:13: note: Null pointer dereference if(xs/pfm[i] < 1.0e-6) { Q2min[i] = Q2; break; } ^ IncoherentPhonon_test.c:17859:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",np); ^ IncoherentPhonon_test.c:17855:16: note: Assuming allocation function fails filep = fopen("SQ2_mph_comp.txt","w"); ^ IncoherentPhonon_test.c:17855:16: note: Assignment 'filep=fopen("SQ2_mph_comp.txt","w")', assigned value is 0 filep = fopen("SQ2_mph_comp.txt","w"); ^ IncoherentPhonon_test.c:17859:11: note: Null pointer dereference fprintf(filep,"%d\n",np); ^ IncoherentPhonon_test.c:17909:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",data->np_Q2_mph); ^ IncoherentPhonon_test.c:17908:16: note: Assuming allocation function fails filep = fopen("SQ2_mph.txt","w"); ^ IncoherentPhonon_test.c:17908:16: note: Assignment 'filep=fopen("SQ2_mph.txt","w")', assigned value is 0 filep = fopen("SQ2_mph.txt","w"); ^ IncoherentPhonon_test.c:17909:11: note: Null pointer dereference fprintf(filep,"%d\n",data->np_Q2_mph); ^ IncoherentPhonon_test.c:17911:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %.6e\n",(data->Q2)[i],(data->SQ2_mph)[i]); ^ IncoherentPhonon_test.c:17908:16: note: Assuming allocation function fails filep = fopen("SQ2_mph.txt","w"); ^ IncoherentPhonon_test.c:17908:16: note: Assignment 'filep=fopen("SQ2_mph.txt","w")', assigned value is 0 filep = fopen("SQ2_mph.txt","w"); ^ IncoherentPhonon_test.c:17911:13: note: Null pointer dereference fprintf(filep,"%f %.6e\n",(data->Q2)[i],(data->SQ2_mph)[i]); ^ IncoherentPhonon_test.c:17913:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:17908:16: note: Assuming allocation function fails filep = fopen("SQ2_mph.txt","w"); ^ IncoherentPhonon_test.c:17908:16: note: Assignment 'filep=fopen("SQ2_mph.txt","w")', assigned value is 0 filep = fopen("SQ2_mph.txt","w"); ^ IncoherentPhonon_test.c:17913:10: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:17947:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",data->np_u_mph); ^ IncoherentPhonon_test.c:17946:18: note: Assuming allocation function fails filep = fopen("dXSdu_dXSdQ2_max_mph.txt","w"); ^ IncoherentPhonon_test.c:17946:18: note: Assignment 'filep=fopen("dXSdu_dXSdQ2_max_mph.txt","w")', assigned value is 0 filep = fopen("dXSdu_dXSdQ2_max_mph.txt","w"); ^ IncoherentPhonon_test.c:17947:13: note: Null pointer dereference fprintf(filep,"%d\n",data->np_u_mph); ^ IncoherentPhonon_test.c:18047:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%.6e %.6e %.6e %.6e\n",kabs,E,xmin,xmax); ^ IncoherentPhonon_test.c:18046:16: note: Assuming allocation function fails filep = fopen("xlim.txt","a"); ^ IncoherentPhonon_test.c:18046:16: note: Assignment 'filep=fopen("xlim.txt","a")', assigned value is 0 filep = fopen("xlim.txt","a"); ^ IncoherentPhonon_test.c:18047:11: note: Null pointer dereference fprintf(filep,"%.6e %.6e %.6e %.6e\n",kabs,E,xmin,xmax); ^ IncoherentPhonon_test.c:18048:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:18046:16: note: Assuming allocation function fails filep = fopen("xlim.txt","a"); ^ IncoherentPhonon_test.c:18046:16: note: Assignment 'filep=fopen("xlim.txt","a")', assigned value is 0 filep = fopen("xlim.txt","a"); ^ IncoherentPhonon_test.c:18048:10: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:18491:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",ntsp); ^ IncoherentPhonon_test.c:18490:16: note: Assuming allocation function fails filep = fopen("sp.txt","w"); ^ IncoherentPhonon_test.c:18490:16: note: Assignment 'filep=fopen("sp.txt","w")', assigned value is 0 filep = fopen("sp.txt","w"); ^ IncoherentPhonon_test.c:18491:11: note: Null pointer dereference fprintf(filep,"%d\n",ntsp); ^ IncoherentPhonon_test.c:18492:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %f\n",data->xi1,data->xi2); ^ IncoherentPhonon_test.c:18490:16: note: Assuming allocation function fails filep = fopen("sp.txt","w"); ^ IncoherentPhonon_test.c:18490:16: note: Assignment 'filep=fopen("sp.txt","w")', assigned value is 0 filep = fopen("sp.txt","w"); ^ IncoherentPhonon_test.c:18492:11: note: Null pointer dereference fprintf(filep,"%f %f\n",data->xi1,data->xi2); ^ IncoherentPhonon_test.c:18493:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%.16e\n",data->aH3); ^ IncoherentPhonon_test.c:18490:16: note: Assuming allocation function fails filep = fopen("sp.txt","w"); ^ IncoherentPhonon_test.c:18490:16: note: Assignment 'filep=fopen("sp.txt","w")', assigned value is 0 filep = fopen("sp.txt","w"); ^ IncoherentPhonon_test.c:18493:11: note: Null pointer dereference fprintf(filep,"%.16e\n",data->aH3); ^ IncoherentPhonon_test.c:18494:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%.16e\n",data->aH4); ^ IncoherentPhonon_test.c:18490:16: note: Assuming allocation function fails filep = fopen("sp.txt","w"); ^ IncoherentPhonon_test.c:18490:16: note: Assignment 'filep=fopen("sp.txt","w")', assigned value is 0 filep = fopen("sp.txt","w"); ^ IncoherentPhonon_test.c:18494:11: note: Null pointer dereference fprintf(filep,"%.16e\n",data->aH4); ^ IncoherentPhonon_test.c:18635:15: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"p: %d\n",p); ^ IncoherentPhonon_test.c:18634:20: note: Assuming allocation function fails filep = fopen("dXSdx_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:18634:20: note: Assignment 'filep=fopen("dXSdx_pph_gauss.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:18635:15: note: Null pointer dereference fprintf(filep,"p: %d\n",p); ^ IncoherentPhonon_test.c:18639:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:18634:20: note: Assuming allocation function fails filep = fopen("dXSdx_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:18634:20: note: Assignment 'filep=fopen("dXSdx_pph_gauss.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:18639:10: note: Null pointer dereference fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:18642:14: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:18634:20: note: Assuming allocation function fails filep = fopen("dXSdx_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:18634:20: note: Assignment 'filep=fopen("dXSdx_pph_gauss.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_gauss.txt","w"); ^ IncoherentPhonon_test.c:18642:14: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:18649:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"p: %d\n",p); ^ IncoherentPhonon_test.c:18648:16: note: Assuming allocation function fails filep = fopen("dXSdx_pph_gauss_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18648:16: note: Assignment 'filep=fopen("dXSdx_pph_gauss_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_gauss_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18649:11: note: Null pointer dereference fprintf(filep,"p: %d\n",p); ^ IncoherentPhonon_test.c:18653:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:18648:16: note: Assuming allocation function fails filep = fopen("dXSdx_pph_gauss_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18648:16: note: Assignment 'filep=fopen("dXSdx_pph_gauss_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_gauss_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18653:13: note: Null pointer dereference fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:18656:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:18648:16: note: Assuming allocation function fails filep = fopen("dXSdx_pph_gauss_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18648:16: note: Assignment 'filep=fopen("dXSdx_pph_gauss_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_gauss_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18656:10: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:18783:15: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"p: %d\n",p); ^ IncoherentPhonon_test.c:18782:20: note: Assuming allocation function fails filep = fopen("dXSdx_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:18782:20: note: Assignment 'filep=fopen("dXSdx_pph_sp.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:18783:15: note: Null pointer dereference fprintf(filep,"p: %d\n",p); ^ IncoherentPhonon_test.c:18787:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:18782:20: note: Assuming allocation function fails filep = fopen("dXSdx_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:18782:20: note: Assignment 'filep=fopen("dXSdx_pph_sp.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:18787:10: note: Null pointer dereference fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:18790:14: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:18782:20: note: Assuming allocation function fails filep = fopen("dXSdx_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:18782:20: note: Assignment 'filep=fopen("dXSdx_pph_sp.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_sp.txt","w"); ^ IncoherentPhonon_test.c:18790:14: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:18797:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"p: %d\n",p); ^ IncoherentPhonon_test.c:18796:16: note: Assuming allocation function fails filep = fopen("dXSdx_pph_sp_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18796:16: note: Assignment 'filep=fopen("dXSdx_pph_sp_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_sp_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18797:11: note: Null pointer dereference fprintf(filep,"p: %d\n",p); ^ IncoherentPhonon_test.c:18801:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:18796:16: note: Assuming allocation function fails filep = fopen("dXSdx_pph_sp_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18796:16: note: Assignment 'filep=fopen("dXSdx_pph_sp_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_sp_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18801:13: note: Null pointer dereference fprintf(filep,"%f %.16e %.16e\n",x,px,pxmax); ^ IncoherentPhonon_test.c:18804:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:18796:16: note: Assuming allocation function fails filep = fopen("dXSdx_pph_sp_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18796:16: note: Assignment 'filep=fopen("dXSdx_pph_sp_maxIter_exceeded.txt","w")', assigned value is 0 filep = fopen("dXSdx_pph_sp_maxIter_exceeded.txt","w"); ^ IncoherentPhonon_test.c:18804:10: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:19088:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",ntsp); ^ IncoherentPhonon_test.c:19087:16: note: Assuming allocation function fails filep = fopen("sp_p.txt","w"); ^ IncoherentPhonon_test.c:19087:16: note: Assignment 'filep=fopen("sp_p.txt","w")', assigned value is 0 filep = fopen("sp_p.txt","w"); ^ IncoherentPhonon_test.c:19088:11: note: Null pointer dereference fprintf(filep,"%d\n",ntsp); ^ IncoherentPhonon_test.c:19093:5: warning: If memory allocation fails, then there is a possible null pointer dereference: xi_ [nullPointerOutOfMemory] xi_[i] = xi; ^ IncoherentPhonon_test.c:19082:25: note: Assuming allocation function fails xi_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19082:9: note: Assignment 'xi_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 xi_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19093:5: note: Null pointer dereference xi_[i] = xi; ^ IncoherentPhonon_test.c:19094:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tsp_ [nullPointerOutOfMemory] tsp_[i] = saddlePoint_p(xi_[i],data); ^ IncoherentPhonon_test.c:19083:26: note: Assuming allocation function fails tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19083:10: note: Assignment 'tsp_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19094:5: note: Null pointer dereference tsp_[i] = saddlePoint_p(xi_[i],data); ^ IncoherentPhonon_test.c:19094:29: warning: If memory allocation fails, then there is a possible null pointer dereference: xi_ [nullPointerOutOfMemory] tsp_[i] = saddlePoint_p(xi_[i],data); ^ IncoherentPhonon_test.c:19082:25: note: Assuming allocation function fails xi_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19082:9: note: Assignment 'xi_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 xi_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19094:29: note: Null pointer dereference tsp_[i] = saddlePoint_p(xi_[i],data); ^ IncoherentPhonon_test.c:19095:5: warning: If memory allocation fails, then there is a possible null pointer dereference: g_ [nullPointerOutOfMemory] g_[i] = Gt(tsp_[i],data); ^ IncoherentPhonon_test.c:19084:24: note: Assuming allocation function fails g_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19084:8: note: Assignment 'g_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 g_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19095:5: note: Null pointer dereference g_[i] = Gt(tsp_[i],data); ^ IncoherentPhonon_test.c:19095:16: warning: If memory allocation fails, then there is a possible null pointer dereference: tsp_ [nullPointerOutOfMemory] g_[i] = Gt(tsp_[i],data); ^ IncoherentPhonon_test.c:19083:26: note: Assuming allocation function fails tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19083:10: note: Assignment 'tsp_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19095:16: note: Null pointer dereference g_[i] = Gt(tsp_[i],data); ^ IncoherentPhonon_test.c:19096:5: warning: If memory allocation fails, then there is a possible null pointer dereference: d2gDg_ [nullPointerOutOfMemory] d2gDg_[i] = d2Gt(tsp_[i],data)/Gt(tsp_[i],data); ^ IncoherentPhonon_test.c:19085:28: note: Assuming allocation function fails d2gDg_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19085:12: note: Assignment 'd2gDg_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 d2gDg_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19096:5: note: Null pointer dereference d2gDg_[i] = d2Gt(tsp_[i],data)/Gt(tsp_[i],data); ^ IncoherentPhonon_test.c:19096:22: warning: If memory allocation fails, then there is a possible null pointer dereference: tsp_ [nullPointerOutOfMemory] d2gDg_[i] = d2Gt(tsp_[i],data)/Gt(tsp_[i],data); ^ IncoherentPhonon_test.c:19083:26: note: Assuming allocation function fails tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19083:10: note: Assignment 'tsp_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19096:22: note: Null pointer dereference d2gDg_[i] = d2Gt(tsp_[i],data)/Gt(tsp_[i],data); ^ IncoherentPhonon_test.c:19096:39: warning: If memory allocation fails, then there is a possible null pointer dereference: tsp_ [nullPointerOutOfMemory] d2gDg_[i] = d2Gt(tsp_[i],data)/Gt(tsp_[i],data); ^ IncoherentPhonon_test.c:19083:26: note: Assuming allocation function fails tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19083:10: note: Assignment 'tsp_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19096:39: note: Null pointer dereference d2gDg_[i] = d2Gt(tsp_[i],data)/Gt(tsp_[i],data); ^ IncoherentPhonon_test.c:19097:47: warning: If memory allocation fails, then there is a possible null pointer dereference: xi_ [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e %.16e %.16e\n",xi_[i],tsp_[i],g_[i],d2gDg_[i]); ^ IncoherentPhonon_test.c:19082:25: note: Assuming allocation function fails xi_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19082:9: note: Assignment 'xi_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 xi_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19097:47: note: Null pointer dereference fprintf(filep,"%.16e %.16e %.16e %.16e\n",xi_[i],tsp_[i],g_[i],d2gDg_[i]); ^ IncoherentPhonon_test.c:19097:54: warning: If memory allocation fails, then there is a possible null pointer dereference: tsp_ [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e %.16e %.16e\n",xi_[i],tsp_[i],g_[i],d2gDg_[i]); ^ IncoherentPhonon_test.c:19083:26: note: Assuming allocation function fails tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19083:10: note: Assignment 'tsp_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19097:54: note: Null pointer dereference fprintf(filep,"%.16e %.16e %.16e %.16e\n",xi_[i],tsp_[i],g_[i],d2gDg_[i]); ^ IncoherentPhonon_test.c:19097:62: warning: If memory allocation fails, then there is a possible null pointer dereference: g_ [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e %.16e %.16e\n",xi_[i],tsp_[i],g_[i],d2gDg_[i]); ^ IncoherentPhonon_test.c:19084:24: note: Assuming allocation function fails g_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19084:8: note: Assignment 'g_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 g_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19097:62: note: Null pointer dereference fprintf(filep,"%.16e %.16e %.16e %.16e\n",xi_[i],tsp_[i],g_[i],d2gDg_[i]); ^ IncoherentPhonon_test.c:19097:68: warning: If memory allocation fails, then there is a possible null pointer dereference: d2gDg_ [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e %.16e %.16e\n",xi_[i],tsp_[i],g_[i],d2gDg_[i]); ^ IncoherentPhonon_test.c:19085:28: note: Assuming allocation function fails d2gDg_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19085:12: note: Assignment 'd2gDg_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 d2gDg_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19097:68: note: Null pointer dereference fprintf(filep,"%.16e %.16e %.16e %.16e\n",xi_[i],tsp_[i],g_[i],d2gDg_[i]); ^ IncoherentPhonon_test.c:19271:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",n); ^ IncoherentPhonon_test.c:19270:18: note: Assuming allocation function fails filep = fopen("Gs.txt","w"); ^ IncoherentPhonon_test.c:19270:18: note: Assignment 'filep=fopen("Gs.txt","w")', assigned value is 0 filep = fopen("Gs.txt","w"); ^ IncoherentPhonon_test.c:19271:13: note: Null pointer dereference fprintf(filep,"%d\n",n); ^ IncoherentPhonon_test.c:19273:7: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] s[i] = smin + i*ds; ^ IncoherentPhonon_test.c:19267:25: note: Assuming allocation function fails s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19267:9: note: Assignment 's=(double*)malloc(n*sizeof(double))', assigned value is 0 s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19273:7: note: Null pointer dereference s[i] = smin + i*ds; ^ IncoherentPhonon_test.c:19274:17: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] computeGs(s[i],rGs+i,iGs+i,data); ^ IncoherentPhonon_test.c:19267:25: note: Assuming allocation function fails s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19267:9: note: Assignment 's=(double*)malloc(n*sizeof(double))', assigned value is 0 s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19274:17: note: Null pointer dereference computeGs(s[i],rGs+i,iGs+i,data); ^ IncoherentPhonon_test.c:19275:43: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19267:25: note: Assuming allocation function fails s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19267:9: note: Assignment 's=(double*)malloc(n*sizeof(double))', assigned value is 0 s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19275:43: note: Null pointer dereference fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19275:48: warning: If memory allocation fails, then there is a possible null pointer dereference: rGs [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19268:27: note: Assuming allocation function fails rGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19268:11: note: Assignment 'rGs=(double*)malloc(n*sizeof(double))', assigned value is 0 rGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19275:48: note: Null pointer dereference fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19275:55: warning: If memory allocation fails, then there is a possible null pointer dereference: iGs [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19269:27: note: Assuming allocation function fails iGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19269:11: note: Assignment 'iGs=(double*)malloc(n*sizeof(double))', assigned value is 0 iGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19275:55: note: Null pointer dereference fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19368:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"===============\n"); ^ IncoherentPhonon_test.c:19366:16: note: Assuming allocation function fails filep = fopen("quad.txt","a"); ^ IncoherentPhonon_test.c:19366:16: note: Assignment 'filep=fopen("quad.txt","a")', assigned value is 0 filep = fopen("quad.txt","a"); ^ IncoherentPhonon_test.c:19368:11: note: Null pointer dereference fprintf(filep,"===============\n"); ^ IncoherentPhonon_test.c:19507:13: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%d\n",n); ^ IncoherentPhonon_test.c:19506:18: note: Assuming allocation function fails filep = fopen("Gs.txt","w"); ^ IncoherentPhonon_test.c:19506:18: note: Assignment 'filep=fopen("Gs.txt","w")', assigned value is 0 filep = fopen("Gs.txt","w"); ^ IncoherentPhonon_test.c:19507:13: note: Null pointer dereference fprintf(filep,"%d\n",n); ^ IncoherentPhonon_test.c:19509:7: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] s[i] = smin + i*ds; ^ IncoherentPhonon_test.c:19503:25: note: Assuming allocation function fails s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19503:9: note: Assignment 's=(double*)malloc(n*sizeof(double))', assigned value is 0 s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19509:7: note: Null pointer dereference s[i] = smin + i*ds; ^ IncoherentPhonon_test.c:19510:17: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] computeGs(s[i],rGs+i,iGs+i,data); ^ IncoherentPhonon_test.c:19503:25: note: Assuming allocation function fails s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19503:9: note: Assignment 's=(double*)malloc(n*sizeof(double))', assigned value is 0 s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19510:17: note: Null pointer dereference computeGs(s[i],rGs+i,iGs+i,data); ^ IncoherentPhonon_test.c:19511:43: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19503:25: note: Assuming allocation function fails s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19503:9: note: Assignment 's=(double*)malloc(n*sizeof(double))', assigned value is 0 s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19511:43: note: Null pointer dereference fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19511:48: warning: If memory allocation fails, then there is a possible null pointer dereference: rGs [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19504:27: note: Assuming allocation function fails rGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19504:11: note: Assignment 'rGs=(double*)malloc(n*sizeof(double))', assigned value is 0 rGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19511:48: note: Null pointer dereference fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19511:55: warning: If memory allocation fails, then there is a possible null pointer dereference: iGs [nullPointerOutOfMemory] fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19505:27: note: Assuming allocation function fails iGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19505:11: note: Assignment 'iGs=(double*)malloc(n*sizeof(double))', assigned value is 0 iGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19511:55: note: Null pointer dereference fprintf(filep,"%.16e %.16e %.16e\n",s[i],rGs[i],iGs[i]); ^ IncoherentPhonon_test.c:19530:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"#E: %f\n",E); ^ IncoherentPhonon_test.c:19529:16: note: Assuming allocation function fails filep = fopen("double_diff_XS.txt","w"); ^ IncoherentPhonon_test.c:19529:16: note: Assignment 'filep=fopen("double_diff_XS.txt","w")', assigned value is 0 filep = fopen("double_diff_XS.txt","w"); ^ IncoherentPhonon_test.c:19530:11: note: Null pointer dereference fprintf(filep,"#E: %f\n",E); ^ IncoherentPhonon_test.c:19533:11: warning: If resource allocation fails, then there is a possible null pointer dereference: filep2 [nullPointerOutOfResources] fprintf(filep2,"#E: %f\n",E); ^ IncoherentPhonon_test.c:19532:17: note: Assuming allocation function fails filep2 = fopen("XS_mp.txt","w"); ^ IncoherentPhonon_test.c:19532:17: note: Assignment 'filep2=fopen("XS_mp.txt","w")', assigned value is 0 filep2 = fopen("XS_mp.txt","w"); ^ IncoherentPhonon_test.c:19533:11: note: Null pointer dereference fprintf(filep2,"#E: %f\n",E); ^ IncoherentPhonon_test.c:19720:26: warning: If memory allocation fails, then there is a possible null pointer dereference: Z [nullPointerOutOfMemory] for(i=np-1;i>=0;i--) { Z[i] -= Z[0]; } ^ IncoherentPhonon_test.c:19711:23: note: Assuming allocation function fails Z = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:19711:7: note: Assignment 'Z=(double*)malloc(np*sizeof(double))', assigned value is 0 Z = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:19720:26: note: Null pointer dereference for(i=np-1;i>=0;i--) { Z[i] -= Z[0]; } ^ IncoherentPhonon_test.c:19720:34: warning: If memory allocation fails, then there is a possible null pointer dereference: Z [nullPointerOutOfMemory] for(i=np-1;i>=0;i--) { Z[i] -= Z[0]; } ^ IncoherentPhonon_test.c:19711:23: note: Assuming allocation function fails Z = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:19711:7: note: Assignment 'Z=(double*)malloc(np*sizeof(double))', assigned value is 0 Z = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:19720:34: note: Null pointer dereference for(i=np-1;i>=0;i--) { Z[i] -= Z[0]; } ^ IncoherentPhonon_test.c:19725:8: warning: If memory allocation fails, then there is a possible null pointer dereference: Z [nullPointerOutOfMemory] if(Z[i]>1.0e-12) { ^ IncoherentPhonon_test.c:19711:23: note: Assuming allocation function fails Z = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:19711:7: note: Assignment 'Z=(double*)malloc(np*sizeof(double))', assigned value is 0 Z = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:19725:8: note: Null pointer dereference if(Z[i]>1.0e-12) { ^ IncoherentPhonon_test.c:19764:14: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fprintf(filep,"%.16e %.16e\n",i*(data->Emax)/10000,dos(i*(data->Emax)/10000,data)); ^ IncoherentPhonon_test.c:19762:16: note: Assuming allocation function fails filep = fopen("interpDoS.txt","w"); ^ IncoherentPhonon_test.c:19762:16: note: Assignment 'filep=fopen("interpDoS.txt","w")', assigned value is 0 filep = fopen("interpDoS.txt","w"); ^ IncoherentPhonon_test.c:19764:14: note: Null pointer dereference fprintf(filep,"%.16e %.16e\n",i*(data->Emax)/10000,dos(i*(data->Emax)/10000,data)); ^ IncoherentPhonon_test.c:19766:10: warning: If resource allocation fails, then there is a possible null pointer dereference: filep [nullPointerOutOfResources] fclose(filep); ^ IncoherentPhonon_test.c:19762:16: note: Assuming allocation function fails filep = fopen("interpDoS.txt","w"); ^ IncoherentPhonon_test.c:19762:16: note: Assignment 'filep=fopen("interpDoS.txt","w")', assigned value is 0 filep = fopen("interpDoS.txt","w"); ^ IncoherentPhonon_test.c:19766:10: note: Null pointer dereference fclose(filep); ^ IncoherentPhonon_test.c:18397:45: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2g_+i,H_+i); ^ IncoherentPhonon_test.c:18391:27: note: Assuming allocation function fails xi_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:18391:11: note: Assignment 'xi_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 xi_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:18397:45: note: Null pointer addition fscanf(filep,"%lf %lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2g_+i,H_+i); ^ IncoherentPhonon_test.c:18397:52: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2g_+i,H_+i); ^ IncoherentPhonon_test.c:18392:28: note: Assuming allocation function fails tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:18392:12: note: Assignment 'tsp_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:18397:52: note: Null pointer addition fscanf(filep,"%lf %lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2g_+i,H_+i); ^ IncoherentPhonon_test.c:18397:57: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2g_+i,H_+i); ^ IncoherentPhonon_test.c:18393:26: note: Assuming allocation function fails g_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:18393:10: note: Assignment 'g_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 g_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:18397:57: note: Null pointer addition fscanf(filep,"%lf %lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2g_+i,H_+i); ^ IncoherentPhonon_test.c:18397:64: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2g_+i,H_+i); ^ IncoherentPhonon_test.c:18394:28: note: Assuming allocation function fails d2g_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:18394:12: note: Assignment 'd2g_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 d2g_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:18397:64: note: Null pointer addition fscanf(filep,"%lf %lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2g_+i,H_+i); ^ IncoherentPhonon_test.c:18397:69: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2g_+i,H_+i); ^ IncoherentPhonon_test.c:18395:26: note: Assuming allocation function fails H_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:18395:10: note: Assignment 'H_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 H_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:18397:69: note: Null pointer addition fscanf(filep,"%lf %lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2g_+i,H_+i); ^ IncoherentPhonon_test.c:19054:41: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2gDg_+i); ^ IncoherentPhonon_test.c:19047:27: note: Assuming allocation function fails xi_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19047:11: note: Assignment 'xi_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 xi_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19054:41: note: Null pointer addition fscanf(filep,"%lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2gDg_+i); ^ IncoherentPhonon_test.c:19054:48: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2gDg_+i); ^ IncoherentPhonon_test.c:19048:28: note: Assuming allocation function fails tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19048:12: note: Assignment 'tsp_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 tsp_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19054:48: note: Null pointer addition fscanf(filep,"%lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2gDg_+i); ^ IncoherentPhonon_test.c:19054:53: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2gDg_+i); ^ IncoherentPhonon_test.c:19049:26: note: Assuming allocation function fails g_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19049:10: note: Assignment 'g_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 g_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19054:53: note: Null pointer addition fscanf(filep,"%lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2gDg_+i); ^ IncoherentPhonon_test.c:19054:62: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2gDg_+i); ^ IncoherentPhonon_test.c:19050:30: note: Assuming allocation function fails d2gDg_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19050:14: note: Assignment 'd2gDg_=(double*)malloc(ntsp*sizeof(double))', assigned value is 0 d2gDg_ = (double *)malloc(ntsp*sizeof(double)); ^ IncoherentPhonon_test.c:19054:62: note: Null pointer addition fscanf(filep,"%lf %lf %lf %lf",xi_+i,tsp_+i,g_+i,d2gDg_+i); ^ IncoherentPhonon_test.c:19260:35: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19256:25: note: Assuming allocation function fails s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19256:9: note: Assignment 's=(double*)malloc(n*sizeof(double))', assigned value is 0 s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19260:35: note: Null pointer addition fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19260:41: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19257:27: note: Assuming allocation function fails rGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19257:11: note: Assignment 'rGs=(double*)malloc(n*sizeof(double))', assigned value is 0 rGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19260:41: note: Null pointer addition fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19260:47: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19258:27: note: Assuming allocation function fails iGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19258:11: note: Assignment 'iGs=(double*)malloc(n*sizeof(double))', assigned value is 0 iGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19260:47: note: Null pointer addition fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19491:35: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19487:25: note: Assuming allocation function fails s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19487:9: note: Assignment 's=(double*)malloc(n*sizeof(double))', assigned value is 0 s = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19491:35: note: Null pointer addition fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19491:41: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19488:27: note: Assuming allocation function fails rGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19488:11: note: Assignment 'rGs=(double*)malloc(n*sizeof(double))', assigned value is 0 rGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19491:41: note: Null pointer addition fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19491:47: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19489:27: note: Assuming allocation function fails iGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19489:11: note: Assignment 'iGs=(double*)malloc(n*sizeof(double))', assigned value is 0 iGs = (double *)malloc(n*sizeof(double)); ^ IncoherentPhonon_test.c:19491:47: note: Null pointer addition fscanf(filep,"%lf %lf %lf",s+i,rGs+i,iGs+i); ^ IncoherentPhonon_test.c:19714:38: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] nread = fscanf(filep,"%lf %lf",e+i,Z+i); ^ IncoherentPhonon_test.c:19710:23: note: Assuming allocation function fails e = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:19710:7: note: Assignment 'e=(double*)malloc(np*sizeof(double))', assigned value is 0 e = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:19714:38: note: Null pointer addition nread = fscanf(filep,"%lf %lf",e+i,Z+i); ^ IncoherentPhonon_test.c:19714:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] nread = fscanf(filep,"%lf %lf",e+i,Z+i); ^ IncoherentPhonon_test.c:19711:23: note: Assuming allocation function fails Z = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:19711:7: note: Assignment 'Z=(double*)malloc(np*sizeof(double))', assigned value is 0 Z = (double *)malloc(np*sizeof(double)); ^ IncoherentPhonon_test.c:19714:42: note: Null pointer addition nread = fscanf(filep,"%lf %lf",e+i,Z+i); ^ IncoherentPhonon_test.c:9036:12: warning: Uninitialized variable: draw_order.lines [uninitvar] return draw_order; ^ IncoherentPhonon_test.c:9020:36: note: Assuming condition is false if (draw_order.number_of_lines > 0) { ^ IncoherentPhonon_test.c:9036:12: note: Uninitialized variable: draw_order.lines return draw_order; ^ IncoherentPhonon_test.c:12495:66: error: Uninitialized variable: square_center [uninitvar] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ IncoherentPhonon_test.c:13368:25: error: Uninitialized variable: temp_pointer [uninitvar] ListA = temp_pointer; ^ IncoherentPhonon_test.c:14719:79: warning: Uninitialized variable: logic_list.elements [uninitvar] Volumes[N_volume]->geometry.destinations_list.num_elements = sum_int_list(logic_list); ^ IncoherentPhonon_test.c:14702:32: note: Assuming condition is false if (logic_list.num_elements>0) logic_list.elements = malloc(logic_list.num_elements*sizeof(int)); ^ IncoherentPhonon_test.c:14719:79: note: Uninitialized variable: logic_list.elements Volumes[N_volume]->geometry.destinations_list.num_elements = sum_int_list(logic_list); ^ IncoherentPhonon_test.c:17481:10: warning: Uninitialized variable: Q2min [uninitvar] if(Q2mQ2max) { ^ IncoherentPhonon_test.c:17457:7: note: Assuming condition is true if(u<(data->u)[0]) { ^ IncoherentPhonon_test.c:17481:10: note: Uninitialized variable: Q2min if(Q2mQ2max) { ^ IncoherentPhonon_test.c:17481:23: warning: Uninitialized variable: Q2max [uninitvar] if(Q2mQ2max) { ^ IncoherentPhonon_test.c:17457:7: note: Assuming condition is true if(u<(data->u)[0]) { ^ IncoherentPhonon_test.c:17481:23: note: Uninitialized variable: Q2max if(Q2mQ2max) { ^ IncoherentPhonon_test.c:18009:43: error: Uninitialized variable: Se [uninitvar] if(j!=0 && j!=nz) { s1 += S; s1e += Se; } else { s1 += 0.5*S; s1e += 0.5*Se; } ^ IncoherentPhonon_test.c:17992:15: note: Assuming condition is false if(isnan(S)) { ^ IncoherentPhonon_test.c:18009:43: note: Uninitialized variable: Se if(j!=0 && j!=nz) { s1 += S; s1e += Se; } else { s1 += 0.5*S; s1e += 0.5*Se; } ^ IncoherentPhonon_test.c:12495:66: error: Uninitialized struct member: square_center.x [uninitStructMember] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ IncoherentPhonon_test.c:12495:66: error: Uninitialized struct member: square_center.y [uninitStructMember] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ IncoherentPhonon_test.c:12495:66: error: Uninitialized struct member: square_center.z [uninitStructMember] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ IncoherentPhonon_test.c:18460:10: error: Uninitialized variable: done1 [legacyUninitvar] if( !done1 && (fabs(xi-1)<0.05*dximax || (xi-dxi <= 1 && xi >= 1)) ) { ^ IncoherentPhonon_test.c:18464:18: error: Uninitialized variable: doneXi1 [legacyUninitvar] } else if ( !doneXi1 && (fabs(xi-data->xi1)<0.05*dximax || (xi-dxi <= data->xi1 && xi >= data->xi1)) ) { ^ IncoherentPhonon_test.c:18468:18: error: Uninitialized variable: doneXi2 [legacyUninitvar] } else if ( !doneXi2 && (fabs(xi-data->xi2)<0.05*dximax || (xi-dxi <= data->xi2 && xi >= data->xi2)) ) { ^ Checking IncoherentPhonon_test.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;MULTICORE... Checking IncoherentPhonon_test.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 IncoherentPhonon_test.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;PROCESS_AF_HB_1D_DETECTOR... Checking IncoherentPhonon_test.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;PROCESS_INCOHERENT_DETECTOR... Checking IncoherentPhonon_test.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;PROCESS_NCRYSTAL_DETECTOR... Checking IncoherentPhonon_test.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;PROCESS_PHONONSIMPLE_DETECTOR... Checking IncoherentPhonon_test.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;PROCESS_POWDER_DETECTOR... Checking IncoherentPhonon_test.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;PROCESS_SINGLE_CRYSTAL_DETECTOR... Checking IncoherentPhonon_test.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;PROCESS_TEMPLATE_DETECTOR... Checking IncoherentPhonon_test.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;PROCESS_TEXTURE_DETECTOR... Checking IncoherentPhonon_test.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 IncoherentPhonon_test.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 IncoherentPhonon_test.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 IncoherentPhonon_test.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 IncoherentPhonon_test.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;Union_trace_verbal_setting... IncoherentPhonon_test.c:30056:17: error: printf format string requires 2 parameters but only 1 is given. [wrongPrintfScanfArgNum] printf("chance to get through this length of absorber: %f \%\n", 100*exp(-Volumes[current_volume]->p_physics->my_a*length_to_boundery)); ^ Checking IncoherentPhonon_test.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 IncoherentPhonon_test.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 IncoherentPhonon_test.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 IncoherentPhonon_test.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 IncoherentPhonon_test.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 IncoherentPhonon_test.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 ./IncoherentPhonon_test.c