INFO: No output directory specified (--dir) INFO: Using directory: "Unit_test_logger_2D_space_20250816_013631" INFO: Regenerating c-file: Unit_test_logger_2D_space.c DEBUG: CMD: /home/willend/micromamba/bin/mcstas -t -o ./Unit_test_logger_2D_space.c Unit_test_logger_2D_space.instr Warning: DECLARE block contains 2 assignments (= sign). Move them into an INITIALIZE section. May fail at compile. CFLAGS= -DFUNNEL WARNING: The parameter format of powder is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component master is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component master -> GPU kernel from component transmission ----------------------------------------------------------- DEBUG: CMD: /home/willend/micromamba/bin/mcstas finished INFO: Linting generated code: ./Unit_test_logger_2D_space.c DEBUG: CMD: cppcheck ./Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.c ... Checking Unit_test_logger_2D_space.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... Unit_test_logger_2D_space.c:7798:5: error: Memory leak: temp_logger_with_data.logger_pointers [memleak] } else { ^ Unit_test_logger_2D_space.c:7828:5: error: Memory leak: temp_abs_logger_with_data.abs_logger_pointers [memleak] } else { ^ Unit_test_logger_2D_space.c:8459:5: error: Memory leak: temp_history.elements [memleak] } else { ^ Unit_test_logger_2D_space.c:14704:5: error: Memory leak: removed_under_2.elements [memleak] }; ^ Unit_test_logger_2D_space.c:7689: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]; ^ Unit_test_logger_2D_space.c:7688:22: note: Assuming allocation function fails temp = malloc(list->num_elements * sizeof(int)); ^ Unit_test_logger_2D_space.c:7688:22: note: Assignment 'temp=malloc(list->num_elements*sizeof(int))', assigned value is 0 temp = malloc(list->num_elements * sizeof(int)); ^ Unit_test_logger_2D_space.c:7689:66: note: Null pointer dereference for (iterate = 0;iterate < list->num_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Unit_test_logger_2D_space.c:7692: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]; ^ Unit_test_logger_2D_space.c:7688:22: note: Assuming allocation function fails temp = malloc(list->num_elements * sizeof(int)); ^ Unit_test_logger_2D_space.c:7688:22: note: Assignment 'temp=malloc(list->num_elements*sizeof(int))', assigned value is 0 temp = malloc(list->num_elements * sizeof(int)); ^ Unit_test_logger_2D_space.c:7692:92: note: Null pointer dereference for (iterate = 0;iterate < list->num_elements;iterate++) list->elements[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:7726: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]; ^ Unit_test_logger_2D_space.c:7724:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ Unit_test_logger_2D_space.c:7724:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ Unit_test_logger_2D_space.c:7726:60: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Unit_test_logger_2D_space.c:7730: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]; ^ Unit_test_logger_2D_space.c:7724:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ Unit_test_logger_2D_space.c:7724:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ Unit_test_logger_2D_space.c:7730:88: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:7744: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]; ^ Unit_test_logger_2D_space.c:7742:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ Unit_test_logger_2D_space.c:7742:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ Unit_test_logger_2D_space.c:7744:60: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Unit_test_logger_2D_space.c:7748: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]; ^ Unit_test_logger_2D_space.c:7742:26: note: Assuming allocation function fails double *temp=malloc(list->num_elements*sizeof(double)); ^ Unit_test_logger_2D_space.c:7742:26: note: Assignment 'temp=malloc(list->num_elements*sizeof(double))', assigned value is 0 double *temp=malloc(list->num_elements*sizeof(double)); ^ Unit_test_logger_2D_space.c:7748:88: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:7763: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]; ^ Unit_test_logger_2D_space.c:7761:44: note: Assuming allocation function fails struct focus_data_struct *temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct)); ^ Unit_test_logger_2D_space.c:7761: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)); ^ Unit_test_logger_2D_space.c:7763:72: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = focus_data_array->elements[iterate]; ^ Unit_test_logger_2D_space.c:7767: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]; ^ Unit_test_logger_2D_space.c:7761:44: note: Assuming allocation function fails struct focus_data_struct *temp=malloc(focus_data_array->num_elements*sizeof(struct focus_data_struct)); ^ Unit_test_logger_2D_space.c:7761: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)); ^ Unit_test_logger_2D_space.c:7767:112: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) focus_data_array->elements[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:7850:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_fp [nullPointerOutOfMemory] temp_fp[iterate] = list->conditional_functions[iterate]; ^ Unit_test_logger_2D_space.c:7845:49: note: Assuming allocation function fails conditional_function_pointer *temp_fp=malloc(list->num_elements*sizeof(conditional_function_pointer)); ^ Unit_test_logger_2D_space.c:7845: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)); ^ Unit_test_logger_2D_space.c:7850:7: note: Null pointer dereference temp_fp[iterate] = list->conditional_functions[iterate]; ^ Unit_test_logger_2D_space.c:7851: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]; ^ Unit_test_logger_2D_space.c:7846:50: note: Assuming allocation function fails union conditional_data_union **temp_du=malloc(list->num_elements*sizeof(union conditional_data_union)); ^ Unit_test_logger_2D_space.c:7846: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)); ^ Unit_test_logger_2D_space.c:7851:7: note: Null pointer dereference temp_du[iterate] = list->p_data_unions[iterate]; ^ Unit_test_logger_2D_space.c:7860:46: warning: If memory allocation fails, then there is a possible null pointer dereference: temp_fp [nullPointerOutOfMemory] list->conditional_functions[iterate] = temp_fp[iterate]; ^ Unit_test_logger_2D_space.c:7845:49: note: Assuming allocation function fails conditional_function_pointer *temp_fp=malloc(list->num_elements*sizeof(conditional_function_pointer)); ^ Unit_test_logger_2D_space.c:7845: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)); ^ Unit_test_logger_2D_space.c:7860:46: note: Null pointer dereference list->conditional_functions[iterate] = temp_fp[iterate]; ^ Unit_test_logger_2D_space.c:7861: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]; ^ Unit_test_logger_2D_space.c:7846:50: note: Assuming allocation function fails union conditional_data_union **temp_du=malloc(list->num_elements*sizeof(union conditional_data_union)); ^ Unit_test_logger_2D_space.c:7846: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)); ^ Unit_test_logger_2D_space.c:7861:38: note: Null pointer dereference list->p_data_unions[iterate] = temp_du[iterate]; ^ Unit_test_logger_2D_space.c:7954:9: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] temp[iterate] = list->positions[iterate]; ^ Unit_test_logger_2D_space.c:7949:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Coords*)); ^ Unit_test_logger_2D_space.c:7949:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct Coords*))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Coords*)); ^ Unit_test_logger_2D_space.c:7954:9: note: Null pointer dereference temp[iterate] = list->positions[iterate]; ^ Unit_test_logger_2D_space.c:7961:36: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] list->positions[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:7949:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Coords*)); ^ Unit_test_logger_2D_space.c:7949:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(struct Coords*))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Coords*)); ^ Unit_test_logger_2D_space.c:7961:36: note: Null pointer dereference list->positions[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:7977:9: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] temp[iterate] = list->rotations[iterate]; ^ Unit_test_logger_2D_space.c:7974:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Rotation*)); ^ Unit_test_logger_2D_space.c:7974:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(double(*)[3][3]))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Rotation*)); ^ Unit_test_logger_2D_space.c:7977:9: note: Null pointer dereference temp[iterate] = list->rotations[iterate]; ^ Unit_test_logger_2D_space.c:7983:36: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] list->rotations[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:7974:20: note: Assuming allocation function fails temp = malloc(list->num_elements*sizeof(Rotation*)); ^ Unit_test_logger_2D_space.c:7974:20: note: Assignment 'temp=malloc(list->num_elements*sizeof(double(*)[3][3]))', assigned value is 0 temp = malloc(list->num_elements*sizeof(Rotation*)); ^ Unit_test_logger_2D_space.c:7983:36: note: Null pointer dereference list->rotations[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:7998: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]; ^ Unit_test_logger_2D_space.c:7996:56: note: Assuming allocation function fails struct global_process_element_struct *temp=malloc(list->num_elements*sizeof(struct global_process_element_struct)); ^ Unit_test_logger_2D_space.c:7996: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)); ^ Unit_test_logger_2D_space.c:7998:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Unit_test_logger_2D_space.c:8002: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]; ^ Unit_test_logger_2D_space.c:7996:56: note: Assuming allocation function fails struct global_process_element_struct *temp=malloc(list->num_elements*sizeof(struct global_process_element_struct)); ^ Unit_test_logger_2D_space.c:7996: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)); ^ Unit_test_logger_2D_space.c:8002:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:8017: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]; ^ Unit_test_logger_2D_space.c:8015:55: note: Assuming allocation function fails struct global_material_element_struct *temp=malloc(list->num_elements*sizeof(struct global_material_element_struct)); ^ Unit_test_logger_2D_space.c:8015: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)); ^ Unit_test_logger_2D_space.c:8017:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Unit_test_logger_2D_space.c:8021: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]; ^ Unit_test_logger_2D_space.c:8015:55: note: Assuming allocation function fails struct global_material_element_struct *temp=malloc(list->num_elements*sizeof(struct global_material_element_struct)); ^ Unit_test_logger_2D_space.c:8015: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)); ^ Unit_test_logger_2D_space.c:8021:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:8036: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]; ^ Unit_test_logger_2D_space.c:8034:55: note: Assuming allocation function fails struct global_geometry_element_struct *temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct)); ^ Unit_test_logger_2D_space.c:8034: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)); ^ Unit_test_logger_2D_space.c:8036:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Unit_test_logger_2D_space.c:8040: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]; ^ Unit_test_logger_2D_space.c:8034:55: note: Assuming allocation function fails struct global_geometry_element_struct *temp=malloc(list->num_elements*sizeof(struct global_geometry_element_struct)); ^ Unit_test_logger_2D_space.c:8034: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)); ^ Unit_test_logger_2D_space.c:8040:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:8055: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]; ^ Unit_test_logger_2D_space.c:8053:53: note: Assuming allocation function fails struct global_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct)); ^ Unit_test_logger_2D_space.c:8053: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)); ^ Unit_test_logger_2D_space.c:8055:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Unit_test_logger_2D_space.c:8059: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]; ^ Unit_test_logger_2D_space.c:8053:53: note: Assuming allocation function fails struct global_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_logger_element_struct)); ^ Unit_test_logger_2D_space.c:8053: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)); ^ Unit_test_logger_2D_space.c:8059:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:8074: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]; ^ Unit_test_logger_2D_space.c:8072:59: note: Assuming allocation function fails struct global_abs_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct)); ^ Unit_test_logger_2D_space.c:8072: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)); ^ Unit_test_logger_2D_space.c:8074:60: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Unit_test_logger_2D_space.c:8078: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]; ^ Unit_test_logger_2D_space.c:8072:59: note: Assuming allocation function fails struct global_abs_logger_element_struct *temp=malloc(list->num_elements*sizeof(struct global_abs_logger_element_struct)); ^ Unit_test_logger_2D_space.c:8072: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)); ^ Unit_test_logger_2D_space.c:8078:88: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:8093: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]; ^ Unit_test_logger_2D_space.c:8091:66: note: Assuming allocation function fails struct global_tagging_conditional_element_struct *temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct)); ^ Unit_test_logger_2D_space.c:8091: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)); ^ Unit_test_logger_2D_space.c:8093:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Unit_test_logger_2D_space.c:8097: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]; ^ Unit_test_logger_2D_space.c:8091:66: note: Assuming allocation function fails struct global_tagging_conditional_element_struct *temp=malloc(list->num_elements*sizeof(struct global_tagging_conditional_element_struct)); ^ Unit_test_logger_2D_space.c:8091: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)); ^ Unit_test_logger_2D_space.c:8097:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:8112: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]; ^ Unit_test_logger_2D_space.c:8110:53: note: Assuming allocation function fails struct global_master_element_struct *temp=malloc(list->num_elements*sizeof(struct global_master_element_struct)); ^ Unit_test_logger_2D_space.c:8110: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)); ^ Unit_test_logger_2D_space.c:8112:58: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = list->elements[iterate]; ^ Unit_test_logger_2D_space.c:8116: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]; ^ Unit_test_logger_2D_space.c:8110:53: note: Assuming allocation function fails struct global_master_element_struct *temp=malloc(list->num_elements*sizeof(struct global_master_element_struct)); ^ Unit_test_logger_2D_space.c:8110: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)); ^ Unit_test_logger_2D_space.c:8116:86: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) list->elements[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:8135: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]; ^ Unit_test_logger_2D_space.c:8133:53: note: Assuming allocation function fails struct logger_for_each_process_list *temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list)); ^ Unit_test_logger_2D_space.c:8133: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)); ^ Unit_test_logger_2D_space.c:8135:61: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = loggers->p_logger_volume[iterate]; ^ Unit_test_logger_2D_space.c:8139: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]; ^ Unit_test_logger_2D_space.c:8133:53: note: Assuming allocation function fails struct logger_for_each_process_list *temp=malloc(loggers->num_elements*sizeof(struct logger_for_each_process_list)); ^ Unit_test_logger_2D_space.c:8133: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)); ^ Unit_test_logger_2D_space.c:8139:99: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) loggers->p_logger_volume[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:8186: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]; ^ Unit_test_logger_2D_space.c:8184:43: note: Assuming allocation function fails struct abs_logger_struct **temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct *)); ^ Unit_test_logger_2D_space.c:8184: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 *)); ^ Unit_test_logger_2D_space.c:8186:65: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) temp[iterate] = abs_loggers->p_abs_logger[iterate]; ^ Unit_test_logger_2D_space.c:8191: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]; ^ Unit_test_logger_2D_space.c:8184:43: note: Assuming allocation function fails struct abs_logger_struct **temp=malloc(abs_loggers->num_elements*sizeof(struct abs_logger_struct *)); ^ Unit_test_logger_2D_space.c:8184: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 *)); ^ Unit_test_logger_2D_space.c:8191:104: note: Null pointer dereference for (iterate=0;iteratenum_elements-1;iterate++) abs_loggers->p_abs_logger[iterate] = temp[iterate]; ^ Unit_test_logger_2D_space.c:8485: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); ^ Unit_test_logger_2D_space.c:8649:3: note: Assuming allocation function fails MPI_MASTER( ^ Unit_test_logger_2D_space.c:8649:3: note: Assignment 'fp=fopen("union_history.dat","w")', assigned value is 0 MPI_MASTER( ^ Unit_test_logger_2D_space.c:8649:3: note: Calling function 'fprintf_total_history', 2nd argument 'fp' value is 0 MPI_MASTER( ^ Unit_test_logger_2D_space.c:8485:13: note: Null pointer dereference fprintf(fp,"%d\t N I=%E \t", history->number_of_rays, history->intensity); ^ Unit_test_logger_2D_space.c:8649:3: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] MPI_MASTER( ^ Unit_test_logger_2D_space.c:8649:3: note: Assuming allocation function fails MPI_MASTER( ^ Unit_test_logger_2D_space.c:8649:3: note: Assignment 'fp=fopen("union_history.dat","w")', assigned value is 0 MPI_MASTER( ^ Unit_test_logger_2D_space.c:8649:3: note: Null pointer dereference MPI_MASTER( ^ Unit_test_logger_2D_space.c:8771: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]; ^ Unit_test_logger_2D_space.c:8770:24: note: Assuming allocation function fails temp_lines = malloc(lines_master->number_of_lines*sizeof(struct line_segment)); ^ Unit_test_logger_2D_space.c:8770: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)); ^ Unit_test_logger_2D_space.c:8771:73: note: Null pointer dereference for (iterate = 0;iterate < lines_master->number_of_lines;iterate++) temp_lines[iterate] = lines_master->lines[iterate]; ^ Unit_test_logger_2D_space.c:8774: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]; ^ Unit_test_logger_2D_space.c:8770:24: note: Assuming allocation function fails temp_lines = malloc(lines_master->number_of_lines*sizeof(struct line_segment)); ^ Unit_test_logger_2D_space.c:8770: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)); ^ Unit_test_logger_2D_space.c:8774:104: note: Null pointer dereference for (iterate = 0;iterate < lines_master->number_of_lines;iterate++) lines_master->lines[iterate] = temp_lines[iterate]; ^ Unit_test_logger_2D_space.c:8938: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]); ^ Unit_test_logger_2D_space.c:8937:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Unit_test_logger_2D_space.c:8937: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)); ^ Unit_test_logger_2D_space.c:8938:5: note: Null pointer dereference points[0] = coords_set(r1[0],r1[1],r1[2]); ^ Unit_test_logger_2D_space.c:8939: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]); ^ Unit_test_logger_2D_space.c:8937:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Unit_test_logger_2D_space.c:8937: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)); ^ Unit_test_logger_2D_space.c:8939:5: note: Null pointer dereference points[intersection_list.num_elements+1] = coords_set(r2[0],r2[1],r2[2]); ^ Unit_test_logger_2D_space.c:8941: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]; ^ Unit_test_logger_2D_space.c:8937:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Unit_test_logger_2D_space.c:8937: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)); ^ Unit_test_logger_2D_space.c:8941:9: note: Null pointer dereference points[iterate].x = r1[0] + direction[0]*intersection_list.elements[iterate-1]; ^ Unit_test_logger_2D_space.c:8942: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]; ^ Unit_test_logger_2D_space.c:8937:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Unit_test_logger_2D_space.c:8937: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)); ^ Unit_test_logger_2D_space.c:8942:9: note: Null pointer dereference points[iterate].y = r1[1] + direction[1]*intersection_list.elements[iterate-1]; ^ Unit_test_logger_2D_space.c:8943: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]; ^ Unit_test_logger_2D_space.c:8937:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Unit_test_logger_2D_space.c:8937: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)); ^ Unit_test_logger_2D_space.c:8943:9: note: Null pointer dereference points[iterate].z = r1[2] + direction[2]*intersection_list.elements[iterate-1]; ^ Unit_test_logger_2D_space.c:8963:9: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] lines[iterate].point1 = points[iterate]; ^ Unit_test_logger_2D_space.c:8952:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Unit_test_logger_2D_space.c:8952: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)); ^ Unit_test_logger_2D_space.c:8963:9: note: Null pointer dereference lines[iterate].point1 = points[iterate]; ^ Unit_test_logger_2D_space.c:8963:33: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] lines[iterate].point1 = points[iterate]; ^ Unit_test_logger_2D_space.c:8937:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Unit_test_logger_2D_space.c:8937: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)); ^ Unit_test_logger_2D_space.c:8963:33: note: Null pointer dereference lines[iterate].point1 = points[iterate]; ^ Unit_test_logger_2D_space.c:8964:9: warning: If memory allocation fails, then there is a possible null pointer dereference: lines [nullPointerOutOfMemory] lines[iterate].point2 = points[iterate+1]; ^ Unit_test_logger_2D_space.c:8952:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Unit_test_logger_2D_space.c:8952: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)); ^ Unit_test_logger_2D_space.c:8964:9: note: Null pointer dereference lines[iterate].point2 = points[iterate+1]; ^ Unit_test_logger_2D_space.c:8964:33: warning: If memory allocation fails, then there is a possible null pointer dereference: points [nullPointerOutOfMemory] lines[iterate].point2 = points[iterate+1]; ^ Unit_test_logger_2D_space.c:8937:26: note: Assuming allocation function fails Coords *points=malloc((intersection_list.num_elements+2)*sizeof(Coords)); ^ Unit_test_logger_2D_space.c:8937: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)); ^ Unit_test_logger_2D_space.c:8964:33: note: Null pointer dereference lines[iterate].point2 = points[iterate+1]; ^ Unit_test_logger_2D_space.c:8965: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); ^ Unit_test_logger_2D_space.c:8952:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Unit_test_logger_2D_space.c:8952: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)); ^ Unit_test_logger_2D_space.c:8965:27: note: Null pointer dereference midpoint.x = 0.5*(lines[iterate].point1.x + lines[iterate].point2.x); ^ Unit_test_logger_2D_space.c:8965: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); ^ Unit_test_logger_2D_space.c:8952:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Unit_test_logger_2D_space.c:8952: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)); ^ Unit_test_logger_2D_space.c:8965:53: note: Null pointer dereference midpoint.x = 0.5*(lines[iterate].point1.x + lines[iterate].point2.x); ^ Unit_test_logger_2D_space.c:8966: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); ^ Unit_test_logger_2D_space.c:8952:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Unit_test_logger_2D_space.c:8952: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)); ^ Unit_test_logger_2D_space.c:8966:27: note: Null pointer dereference midpoint.y = 0.5*(lines[iterate].point1.y + lines[iterate].point2.y); ^ Unit_test_logger_2D_space.c:8966: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); ^ Unit_test_logger_2D_space.c:8952:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Unit_test_logger_2D_space.c:8952: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)); ^ Unit_test_logger_2D_space.c:8966:53: note: Null pointer dereference midpoint.y = 0.5*(lines[iterate].point1.y + lines[iterate].point2.y); ^ Unit_test_logger_2D_space.c:8967: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); ^ Unit_test_logger_2D_space.c:8952:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Unit_test_logger_2D_space.c:8952: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)); ^ Unit_test_logger_2D_space.c:8967:27: note: Null pointer dereference midpoint.z = 0.5*(lines[iterate].point1.z + lines[iterate].point2.z); ^ Unit_test_logger_2D_space.c:8967: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); ^ Unit_test_logger_2D_space.c:8952:38: note: Assuming allocation function fails struct line_segment *lines=malloc((intersection_list.num_elements+1)*sizeof(struct line_segment)); ^ Unit_test_logger_2D_space.c:8952: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)); ^ Unit_test_logger_2D_space.c:8967:53: note: Null pointer dereference midpoint.z = 0.5*(lines[iterate].point1.z + lines[iterate].point2.z); ^ Unit_test_logger_2D_space.c:9179: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; ^ Unit_test_logger_2D_space.c:9177:38: note: Assuming allocation function fails union_output.p_box_storage = malloc(sizeof(struct box_storage)); ^ Unit_test_logger_2D_space.c:9177: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)); ^ Unit_test_logger_2D_space.c:9179:16: note: Null pointer dereference *union_output.p_box_storage = *union_input->p_box_storage; ^ Unit_test_logger_2D_space.c:9190: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; ^ Unit_test_logger_2D_space.c:9188:43: note: Assuming allocation function fails union_output.p_cylinder_storage = malloc(sizeof(struct cylinder_storage)); ^ Unit_test_logger_2D_space.c:9188: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)); ^ Unit_test_logger_2D_space.c:9190:16: note: Null pointer dereference *union_output.p_cylinder_storage = *union_input->p_cylinder_storage; ^ Unit_test_logger_2D_space.c:9200: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; ^ Unit_test_logger_2D_space.c:9198:41: note: Assuming allocation function fails union_output.p_sphere_storage = malloc(sizeof(struct sphere_storage)); ^ Unit_test_logger_2D_space.c:9198: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)); ^ Unit_test_logger_2D_space.c:9200:16: note: Null pointer dereference *union_output.p_sphere_storage = *union_input->p_sphere_storage; ^ Unit_test_logger_2D_space.c:9210: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; ^ Unit_test_logger_2D_space.c:9208:39: note: Assuming allocation function fails union_output.p_cone_storage = malloc(sizeof(struct cone_storage)); ^ Unit_test_logger_2D_space.c:9208: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)); ^ Unit_test_logger_2D_space.c:9210:16: note: Null pointer dereference *union_output.p_cone_storage = *union_input->p_cone_storage; ^ Unit_test_logger_2D_space.c:9220: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; ^ Unit_test_logger_2D_space.c:9218:39: note: Assuming allocation function fails union_output.p_mesh_storage = malloc(sizeof(struct mesh_storage)); ^ Unit_test_logger_2D_space.c:9218: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)); ^ Unit_test_logger_2D_space.c:9220:16: note: Null pointer dereference *union_output.p_mesh_storage = *union_input->p_mesh_storage; ^ Unit_test_logger_2D_space.c:9278: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); ^ Unit_test_logger_2D_space.c:12589:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Unit_test_logger_2D_space.c:12589: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)); ^ Unit_test_logger_2D_space.c:12591: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); ^ Unit_test_logger_2D_space.c:9278: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); ^ Unit_test_logger_2D_space.c:9279: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); ^ Unit_test_logger_2D_space.c:12589:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Unit_test_logger_2D_space.c:12589: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)); ^ Unit_test_logger_2D_space.c:12591: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); ^ Unit_test_logger_2D_space.c:9279:9: note: Null pointer dereference output[point_nr] = coords_add(output[point_nr],center); ^ Unit_test_logger_2D_space.c:9279: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); ^ Unit_test_logger_2D_space.c:12589:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Unit_test_logger_2D_space.c:12589: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)); ^ Unit_test_logger_2D_space.c:12591: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); ^ Unit_test_logger_2D_space.c:9279:39: note: Null pointer dereference output[point_nr] = coords_add(output[point_nr],center); ^ Unit_test_logger_2D_space.c:11789: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) { ^ Unit_test_logger_2D_space.c:11783:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Unit_test_logger_2D_space.c:11783: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)); ^ Unit_test_logger_2D_space.c:11789:43: note: Null pointer dereference if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ Unit_test_logger_2D_space.c:11797: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) { ^ Unit_test_logger_2D_space.c:11783:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Unit_test_logger_2D_space.c:11783: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)); ^ Unit_test_logger_2D_space.c:11789:85: note: Assuming condition is false if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ Unit_test_logger_2D_space.c:11797:43: note: Null pointer dereference if (geometry_box->within_function(circle_point_array[iterate],geometry_box) == 1) { ^ Unit_test_logger_2D_space.c:12596: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) { ^ Unit_test_logger_2D_space.c:12589:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Unit_test_logger_2D_space.c:12589: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)); ^ Unit_test_logger_2D_space.c:12596:46: note: Null pointer dereference if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ Unit_test_logger_2D_space.c:12604: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) { ^ Unit_test_logger_2D_space.c:12589:32: note: Assuming allocation function fails circle_point_array = malloc(number_of_points * sizeof(Coords)); ^ Unit_test_logger_2D_space.c:12589: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)); ^ Unit_test_logger_2D_space.c:12596:91: note: Assuming condition is false if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ Unit_test_logger_2D_space.c:12604:46: note: Null pointer dereference if (geometry_parent->within_function(circle_point_array[iterate],geometry_parent) == 0) { ^ Unit_test_logger_2D_space.c:13420: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; ^ Unit_test_logger_2D_space.c:13417:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13417: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)); ^ Unit_test_logger_2D_space.c:13420:3: note: Null pointer dereference temporary_children_lists[0].num_elements = number_of_volumes - 1; ^ Unit_test_logger_2D_space.c:13421: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)); ^ Unit_test_logger_2D_space.c:13417:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13417: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)); ^ Unit_test_logger_2D_space.c:13421:3: note: Null pointer dereference temporary_children_lists[0].elements = malloc(temporary_children_lists[0].num_elements*sizeof(int)); ^ Unit_test_logger_2D_space.c:13421: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)); ^ Unit_test_logger_2D_space.c:13417:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13417: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)); ^ Unit_test_logger_2D_space.c:13421:49: note: Null pointer dereference temporary_children_lists[0].elements = malloc(temporary_children_lists[0].num_elements*sizeof(int)); ^ Unit_test_logger_2D_space.c:13425: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; ^ Unit_test_logger_2D_space.c:13417:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13417: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)); ^ Unit_test_logger_2D_space.c:13425:7: note: Null pointer dereference temporary_children_lists[0].elements[parent-1] = parent; ^ Unit_test_logger_2D_space.c:13434: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)); ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15055: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); ^ Unit_test_logger_2D_space.c:13434:3: note: Null pointer dereference true_children_lists[0] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13435: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; ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15055: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); ^ Unit_test_logger_2D_space.c:13435:3: note: Null pointer dereference true_children_lists[0]->num_elements = number_of_volumes - 1; ^ Unit_test_logger_2D_space.c:13436: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)); ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15055: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); ^ Unit_test_logger_2D_space.c:13436:3: note: Null pointer dereference true_children_lists[0]->elements = malloc((number_of_volumes-1)*sizeof(int)); ^ Unit_test_logger_2D_space.c:13442: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; ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15055: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); ^ Unit_test_logger_2D_space.c:13442:7: note: Null pointer dereference true_children_lists[0]->elements[parent-1] = parent; ^ Unit_test_logger_2D_space.c:13477: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; ^ Unit_test_logger_2D_space.c:13417:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13417: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)); ^ Unit_test_logger_2D_space.c:13477:7: note: Null pointer dereference temporary_children_lists[parent].num_elements=0; ^ Unit_test_logger_2D_space.c:13481:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_children_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Unit_test_logger_2D_space.c:13417:36: note: Assuming allocation function fails temporary_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13417: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)); ^ Unit_test_logger_2D_space.c:13481:7: note: Null pointer dereference MPI_MASTER( ^ Unit_test_logger_2D_space.c:13605: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)); ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15055: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); ^ Unit_test_logger_2D_space.c:13605:5: note: Null pointer dereference true_children_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13606: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; ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15055: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); ^ Unit_test_logger_2D_space.c:13606:5: note: Null pointer dereference true_children_lists[parent]->num_elements = 0; ^ Unit_test_logger_2D_space.c:13607: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]); ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15055: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); ^ Unit_test_logger_2D_space.c:13607:64: note: Null pointer dereference allocate_list_from_temp(used_elements,true_temp_list_local,true_children_lists[parent]); ^ Unit_test_logger_2D_space.c:13609:5: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15055: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); ^ Unit_test_logger_2D_space.c:13609:5: note: Null pointer dereference MPI_MASTER( ^ Unit_test_logger_2D_space.c:13618: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; ^ Unit_test_logger_2D_space.c:15059:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15059: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13641:3: note: Null pointer dereference true_overlap_lists[0]->num_elements = number_of_volumes-1; ^ Unit_test_logger_2D_space.c:13642: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)); ^ Unit_test_logger_2D_space.c:15059:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15059: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13642:3: note: Null pointer dereference true_overlap_lists[0]->elements = malloc((number_of_volumes-1)*sizeof(int)); ^ Unit_test_logger_2D_space.c:13644: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)); ^ Unit_test_logger_2D_space.c:15061:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15061: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13644:3: note: Null pointer dereference raw_overlap_lists[0] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13645: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; ^ Unit_test_logger_2D_space.c:15061:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15061: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13645:3: note: Null pointer dereference raw_overlap_lists[0]->num_elements = number_of_volumes; ^ Unit_test_logger_2D_space.c:13646: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)); ^ Unit_test_logger_2D_space.c:15061:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15061: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13646:3: note: Null pointer dereference raw_overlap_lists[0]->elements = malloc(number_of_volumes*sizeof(int)); ^ Unit_test_logger_2D_space.c:13647: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 ^ Unit_test_logger_2D_space.c:15061:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15061: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13647:3: note: Null pointer dereference raw_overlap_lists[0]->elements[0] = 0; // Volume 0 overlaps itself ^ Unit_test_logger_2D_space.c:13651: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; ^ Unit_test_logger_2D_space.c:15059:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15059: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13651:7: note: Null pointer dereference true_overlap_lists[0]->elements[parent-1] = parent; ^ Unit_test_logger_2D_space.c:13652: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; ^ Unit_test_logger_2D_space.c:15061:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15061: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13652:7: note: Null pointer dereference raw_overlap_lists[0]->elements[parent] = parent; ^ Unit_test_logger_2D_space.c:13656:3: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Unit_test_logger_2D_space.c:15059:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15059: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13656:3: note: Null pointer dereference MPI_MASTER( ^ Unit_test_logger_2D_space.c:13669: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)); ^ Unit_test_logger_2D_space.c:15059:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15059: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13669:7: note: Null pointer dereference true_overlap_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13742: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)); ^ Unit_test_logger_2D_space.c:15061:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15061: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13742:7: note: Null pointer dereference raw_overlap_lists[parent] = malloc(sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13743: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; ^ Unit_test_logger_2D_space.c:15061:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15061: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13743:7: note: Null pointer dereference raw_overlap_lists[parent]->num_elements = 0; ^ Unit_test_logger_2D_space.c:13744: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]); ^ Unit_test_logger_2D_space.c:15061:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15061: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13744:61: note: Null pointer dereference allocate_list_from_temp(used_elements,temp_list_local,raw_overlap_lists[parent]); ^ Unit_test_logger_2D_space.c:13747:7: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_overlap_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Unit_test_logger_2D_space.c:13637:35: note: Assuming allocation function fails temporary_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list)); ^ Unit_test_logger_2D_space.c:13637: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)); ^ Unit_test_logger_2D_space.c:13747:7: note: Null pointer dereference MPI_MASTER( ^ Unit_test_logger_2D_space.c:13860: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]); ^ Unit_test_logger_2D_space.c:15059:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15059: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13860:59: note: Null pointer dereference allocate_list_from_temp(used_elements,temp_list_local,true_overlap_lists[parent]); ^ Unit_test_logger_2D_space.c:13862:5: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Unit_test_logger_2D_space.c:15059:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15059: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*)); ^ Unit_test_logger_2D_space.c:15063: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); ^ Unit_test_logger_2D_space.c:13862:5: note: Null pointer dereference MPI_MASTER( ^ Unit_test_logger_2D_space.c:13868:53: warning: If memory allocation fails, then there is a possible null pointer dereference: temporary_overlap_lists [nullPointerOutOfMemory] for(child=1;childnum_elements; parent++) { ^ Unit_test_logger_2D_space.c:15070:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15070: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*)); ^ Unit_test_logger_2D_space.c:15093: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); ^ Unit_test_logger_2D_space.c:14417:29: note: Null pointer dereference for (parent = 0; parentnum_elements; parent++) { ^ Unit_test_logger_2D_space.c:14419: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); ^ Unit_test_logger_2D_space.c:15070:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15070: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*)); ^ Unit_test_logger_2D_space.c:15093: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); ^ Unit_test_logger_2D_space.c:14419:27: note: Null pointer dereference on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ Unit_test_logger_2D_space.c:14419: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); ^ Unit_test_logger_2D_space.c:15070:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15070: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*)); ^ Unit_test_logger_2D_space.c:15093: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); ^ Unit_test_logger_2D_space.c:14419:41: note: Null pointer dereference on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ Unit_test_logger_2D_space.c:14419: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); ^ Unit_test_logger_2D_space.c:15070:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15070: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*)); ^ Unit_test_logger_2D_space.c:15093: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); ^ Unit_test_logger_2D_space.c:14419:84: note: Null pointer dereference on_both_int_lists(parents_lists[parents_lists[iterate]->elements[parent]], parents_lists[iterate], &common); ^ Unit_test_logger_2D_space.c:14428: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]); ^ Unit_test_logger_2D_space.c:15092:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15092: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*)); ^ Unit_test_logger_2D_space.c:15093: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); ^ Unit_test_logger_2D_space.c:14428:61: note: Null pointer dereference allocate_list_from_temp(used_elements, temp_list_local, grandparents_lists[iterate]); ^ Unit_test_logger_2D_space.c:14431:5: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists [nullPointerOutOfMemory] MPI_MASTER( ^ Unit_test_logger_2D_space.c:15092:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15092: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*)); ^ Unit_test_logger_2D_space.c:15093: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); ^ Unit_test_logger_2D_space.c:14431:5: note: Null pointer dereference MPI_MASTER( ^ Unit_test_logger_2D_space.c:14458: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; ^ Unit_test_logger_2D_space.c:15059:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15059: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*)); ^ Unit_test_logger_2D_space.c:15111: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); ^ Unit_test_logger_2D_space.c:14458:30: note: Null pointer dereference work_list.num_elements = true_overlap_lists[volume_index]->num_elements; ^ Unit_test_logger_2D_space.c:14460:92: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] for (iterate=0;iterateelements[iterate]; ^ Unit_test_logger_2D_space.c:15059:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15059: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*)); ^ Unit_test_logger_2D_space.c:15111: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); ^ Unit_test_logger_2D_space.c:14460:92: note: Null pointer dereference for (iterate=0;iterateelements[iterate]; ^ Unit_test_logger_2D_space.c:14505:28: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15111: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); ^ Unit_test_logger_2D_space.c:14505:28: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) ^ Unit_test_logger_2D_space.c:14506: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]); ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15111: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); ^ Unit_test_logger_2D_space.c:14506:50: note: Null pointer dereference remove_element_in_list_by_value(&work_list,true_children_lists[volume_index]->elements[iterate]); ^ Unit_test_logger_2D_space.c:14511:28: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists [nullPointerOutOfMemory] for (iterate=0;iteratenum_elements;iterate++) ^ Unit_test_logger_2D_space.c:15106:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15106: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*)); ^ Unit_test_logger_2D_space.c:15111: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); ^ Unit_test_logger_2D_space.c:14511:28: note: Null pointer dereference for (iterate=0;iteratenum_elements;iterate++) ^ Unit_test_logger_2D_space.c:14512: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]); ^ Unit_test_logger_2D_space.c:15106:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15106: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*)); ^ Unit_test_logger_2D_space.c:15111: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); ^ Unit_test_logger_2D_space.c:14512:50: note: Null pointer dereference remove_element_in_list_by_value(&work_list,true_grandparents_lists[volume_index]->elements[iterate]); ^ Unit_test_logger_2D_space.c:14526: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])){ ^ Unit_test_logger_2D_space.c:15085:41: note: Assuming allocation function fails true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15085: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*)); ^ Unit_test_logger_2D_space.c:15111: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); ^ Unit_test_logger_2D_space.c:14526:24: note: Null pointer dereference if (on_int_list(*true_parents_lists[volume_index],work_list.elements[iterate])){ ^ Unit_test_logger_2D_space.c:14826: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++) { ^ Unit_test_logger_2D_space.c:15070:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15070: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*)); ^ Unit_test_logger_2D_space.c:15118: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); ^ Unit_test_logger_2D_space.c:14826:34: note: Null pointer dereference for (parent=0;parentgeometry.children.elements[child]]->num_elements;parent++) { ^ Unit_test_logger_2D_space.c:14827: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])) ^ Unit_test_logger_2D_space.c:15070:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15070: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*)); ^ Unit_test_logger_2D_space.c:15118: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); ^ Unit_test_logger_2D_space.c:14827: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])) ^ Unit_test_logger_2D_space.c:15133: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); ^ Unit_test_logger_2D_space.c:15059:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15059: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*)); ^ Unit_test_logger_2D_space.c:15133:13: note: Null pointer dereference if (true_overlap_lists[iterate]->num_elements > 0) free(true_overlap_lists[iterate]->elements); ^ Unit_test_logger_2D_space.c:15134:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_overlap_lists [nullPointerOutOfMemory] free(true_overlap_lists[iterate]); ^ Unit_test_logger_2D_space.c:15059:32: note: Assuming allocation function fails true_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15059: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*)); ^ Unit_test_logger_2D_space.c:15134:14: note: Null pointer dereference free(true_overlap_lists[iterate]); ^ Unit_test_logger_2D_space.c:15137: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); ^ Unit_test_logger_2D_space.c:15061:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15061: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*)); ^ Unit_test_logger_2D_space.c:15137:13: note: Null pointer dereference if (raw_overlap_lists[iterate]->num_elements > 0) free(raw_overlap_lists[iterate]->elements); ^ Unit_test_logger_2D_space.c:15138:14: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_overlap_lists [nullPointerOutOfMemory] free(raw_overlap_lists[iterate]); ^ Unit_test_logger_2D_space.c:15061:31: note: Assuming allocation function fails raw_overlap_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15061: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*)); ^ Unit_test_logger_2D_space.c:15138:14: note: Null pointer dereference free(raw_overlap_lists[iterate]); ^ Unit_test_logger_2D_space.c:15141: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); ^ Unit_test_logger_2D_space.c:15070:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15070: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*)); ^ Unit_test_logger_2D_space.c:15141:13: note: Null pointer dereference if (parents_lists[iterate]->num_elements > 0) free(parents_lists[iterate]->elements); ^ Unit_test_logger_2D_space.c:15142:14: warning: If memory allocation fails, then there is a possible null pointer dereference: parents_lists [nullPointerOutOfMemory] free(parents_lists[iterate]); ^ Unit_test_logger_2D_space.c:15070:27: note: Assuming allocation function fails parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15070: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*)); ^ Unit_test_logger_2D_space.c:15142:14: note: Null pointer dereference free(parents_lists[iterate]); ^ Unit_test_logger_2D_space.c:15145: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); ^ Unit_test_logger_2D_space.c:15075:36: note: Assuming allocation function fails parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15075: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*)); ^ Unit_test_logger_2D_space.c:15145:13: note: Null pointer dereference if (parents_lists_no_masks[iterate]->num_elements > 0) free(parents_lists_no_masks[iterate]->elements); ^ Unit_test_logger_2D_space.c:15146: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]); ^ Unit_test_logger_2D_space.c:15075:36: note: Assuming allocation function fails parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15075: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*)); ^ Unit_test_logger_2D_space.c:15146:14: note: Null pointer dereference free(parents_lists_no_masks[iterate]); ^ Unit_test_logger_2D_space.c:15149: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); ^ Unit_test_logger_2D_space.c:15080:32: note: Assuming allocation function fails true_parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15080: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*)); ^ Unit_test_logger_2D_space.c:15149:13: note: Null pointer dereference if (true_parents_lists[iterate]->num_elements > 0) free(true_parents_lists[iterate]->elements); ^ Unit_test_logger_2D_space.c:15150:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_parents_lists [nullPointerOutOfMemory] free(true_parents_lists[iterate]); ^ Unit_test_logger_2D_space.c:15080:32: note: Assuming allocation function fails true_parents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15080: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*)); ^ Unit_test_logger_2D_space.c:15150:14: note: Null pointer dereference free(true_parents_lists[iterate]); ^ Unit_test_logger_2D_space.c:15153: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); ^ Unit_test_logger_2D_space.c:15085:41: note: Assuming allocation function fails true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15085: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*)); ^ Unit_test_logger_2D_space.c:15153:13: note: Null pointer dereference if (true_parents_lists_no_masks[iterate]->num_elements > 0) free(true_parents_lists_no_masks[iterate]->elements); ^ Unit_test_logger_2D_space.c:15154: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]); ^ Unit_test_logger_2D_space.c:15085:41: note: Assuming allocation function fails true_parents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15085: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*)); ^ Unit_test_logger_2D_space.c:15154:14: note: Null pointer dereference free(true_parents_lists_no_masks[iterate]); ^ Unit_test_logger_2D_space.c:15157: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); ^ Unit_test_logger_2D_space.c:15092:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15092: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*)); ^ Unit_test_logger_2D_space.c:15157:13: note: Null pointer dereference if (grandparents_lists[iterate]->num_elements > 0) free(grandparents_lists[iterate]->elements); ^ Unit_test_logger_2D_space.c:15158:14: warning: If memory allocation fails, then there is a possible null pointer dereference: grandparents_lists [nullPointerOutOfMemory] free(grandparents_lists[iterate]); ^ Unit_test_logger_2D_space.c:15092:32: note: Assuming allocation function fails grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15092: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*)); ^ Unit_test_logger_2D_space.c:15158:14: note: Null pointer dereference free(grandparents_lists[iterate]); ^ Unit_test_logger_2D_space.c:15161: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); ^ Unit_test_logger_2D_space.c:15102:37: note: Assuming allocation function fails true_grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15102: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*)); ^ Unit_test_logger_2D_space.c:15161:13: note: Null pointer dereference if (true_grandparents_lists[iterate]->num_elements > 0) free(true_grandparents_lists[iterate]->elements); ^ Unit_test_logger_2D_space.c:15162:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_grandparents_lists [nullPointerOutOfMemory] free(true_grandparents_lists[iterate]); ^ Unit_test_logger_2D_space.c:15102:37: note: Assuming allocation function fails true_grandparents_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15102: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*)); ^ Unit_test_logger_2D_space.c:15162:14: note: Null pointer dereference free(true_grandparents_lists[iterate]); ^ Unit_test_logger_2D_space.c:15165: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); ^ Unit_test_logger_2D_space.c:15097:41: note: Assuming allocation function fails grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15097: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*)); ^ Unit_test_logger_2D_space.c:15165:13: note: Null pointer dereference if (grandparents_lists_no_masks[iterate]->num_elements > 0) free(grandparents_lists_no_masks[iterate]->elements); ^ Unit_test_logger_2D_space.c:15166: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]); ^ Unit_test_logger_2D_space.c:15097:41: note: Assuming allocation function fails grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15097: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*)); ^ Unit_test_logger_2D_space.c:15166:14: note: Null pointer dereference free(grandparents_lists_no_masks[iterate]); ^ Unit_test_logger_2D_space.c:15169: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); ^ Unit_test_logger_2D_space.c:15106:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15106: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*)); ^ Unit_test_logger_2D_space.c:15169:13: note: Null pointer dereference if (true_grandparents_lists_no_masks[iterate]->num_elements > 0) free(true_grandparents_lists_no_masks[iterate]->elements); ^ Unit_test_logger_2D_space.c:15170: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]); ^ Unit_test_logger_2D_space.c:15106:46: note: Assuming allocation function fails true_grandparents_lists_no_masks = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15106: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*)); ^ Unit_test_logger_2D_space.c:15170:14: note: Null pointer dereference free(true_grandparents_lists_no_masks[iterate]); ^ Unit_test_logger_2D_space.c:15173: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); ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15173:13: note: Null pointer dereference if (true_children_lists[iterate]->num_elements > 0) free(true_children_lists[iterate]->elements); ^ Unit_test_logger_2D_space.c:15174:14: warning: If memory allocation fails, then there is a possible null pointer dereference: true_children_lists [nullPointerOutOfMemory] free(true_children_lists[iterate]); ^ Unit_test_logger_2D_space.c:15053:33: note: Assuming allocation function fails true_children_lists = malloc(number_of_volumes*sizeof(struct pointer_to_1d_int_list*)); ^ Unit_test_logger_2D_space.c:15053: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*)); ^ Unit_test_logger_2D_space.c:15174:14: note: Null pointer dereference free(true_children_lists[iterate]); ^ Unit_test_logger_2D_space.c:15362: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"); ^ Unit_test_logger_2D_space.c:15361:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","w"); ^ Unit_test_logger_2D_space.c:15361:13: note: Assignment 'fp=fopen("Union_absorption.dat","w")', assigned value is 0 fp = fopen("Union_absorption.dat","w"); ^ Unit_test_logger_2D_space.c:15362: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"); ^ Unit_test_logger_2D_space.c:15364:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fclose(fp); ^ Unit_test_logger_2D_space.c:15361:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","w"); ^ Unit_test_logger_2D_space.c:15361:13: note: Assignment 'fp=fopen("Union_absorption.dat","w")', assigned value is 0 fp = fopen("Union_absorption.dat","w"); ^ Unit_test_logger_2D_space.c:15364:10: note: Null pointer dereference fclose(fp); ^ Unit_test_logger_2D_space.c:15377: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", ^ Unit_test_logger_2D_space.c:15370:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","a"); ^ Unit_test_logger_2D_space.c:15370:13: note: Assignment 'fp=fopen("Union_absorption.dat","a")', assigned value is 0 fp = fopen("Union_absorption.dat","a"); ^ Unit_test_logger_2D_space.c:15377:13: note: Null pointer dereference fprintf(fp,"%g, %g, %g, %g, %g, %g, %g, %g, %e, %i, %i \n", ^ Unit_test_logger_2D_space.c:15385:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] fclose(fp); ^ Unit_test_logger_2D_space.c:15370:13: note: Assuming allocation function fails fp = fopen("Union_absorption.dat","a"); ^ Unit_test_logger_2D_space.c:15370:13: note: Assignment 'fp=fopen("Union_absorption.dat","a")', assigned value is 0 fp = fopen("Union_absorption.dat","a"); ^ Unit_test_logger_2D_space.c:15385:10: note: Null pointer dereference fclose(fp); ^ Unit_test_logger_2D_space.c:20018:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr_array [nullPointerOutOfMemory] ptr_array[i] = data + (i*count_y); ^ Unit_test_logger_2D_space.c:20016:32: note: Assuming allocation function fails double **ptr_array = malloc(sizeof(double*) * count_x); ^ Unit_test_logger_2D_space.c:20016:32: note: Assignment 'ptr_array=malloc(sizeof(double*)*count_x)', assigned value is 0 double **ptr_array = malloc(sizeof(double*) * count_x); ^ Unit_test_logger_2D_space.c:20018:9: note: Null pointer dereference ptr_array[i] = data + (i*count_y); ^ Unit_test_logger_2D_space.c:20018:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ptr_array[i] = data + (i*count_y); ^ Unit_test_logger_2D_space.c:20013:26: note: Assuming allocation function fails double *data = malloc(sizeof(double) * count_x * count_y); ^ Unit_test_logger_2D_space.c:20013:26: note: Assignment 'data=malloc(sizeof(double)*count_x*count_y)', assigned value is 0 double *data = malloc(sizeof(double) * count_x * count_y); ^ Unit_test_logger_2D_space.c:20018:29: note: Null pointer addition ptr_array[i] = data + (i*count_y); ^ Unit_test_logger_2D_space.c:8993:12: warning: Uninitialized variable: draw_order.lines [uninitvar] return draw_order; ^ Unit_test_logger_2D_space.c:8977:36: note: Assuming condition is false if (draw_order.number_of_lines > 0) { ^ Unit_test_logger_2D_space.c:8993:12: note: Uninitialized variable: draw_order.lines return draw_order; ^ Unit_test_logger_2D_space.c:12452:66: error: Uninitialized variable: square_center [uninitvar] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ Unit_test_logger_2D_space.c:13325:25: error: Uninitialized variable: temp_pointer [uninitvar] ListA = temp_pointer; ^ Unit_test_logger_2D_space.c:14676:79: warning: Uninitialized variable: logic_list.elements [uninitvar] Volumes[N_volume]->geometry.destinations_list.num_elements = sum_int_list(logic_list); ^ Unit_test_logger_2D_space.c:14659:32: note: Assuming condition is false if (logic_list.num_elements>0) logic_list.elements = malloc(logic_list.num_elements*sizeof(int)); ^ Unit_test_logger_2D_space.c:14676:79: note: Uninitialized variable: logic_list.elements Volumes[N_volume]->geometry.destinations_list.num_elements = sum_int_list(logic_list); ^ Unit_test_logger_2D_space.c:12452:66: error: Uninitialized struct member: square_center.x [uninitStructMember] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ Unit_test_logger_2D_space.c:12452:66: error: Uninitialized struct member: square_center.y [uninitStructMember] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ Unit_test_logger_2D_space.c:12452:66: error: Uninitialized struct member: square_center.z [uninitStructMember] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ Checking Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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_INCOHERENTPHONON_DETECTOR... Checking Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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... Unit_test_logger_2D_space.c:23876:48: error: Uninitialized variable: temp_string [legacyUninitvar] strcat(this_storage.Detector_2D.title_string,temp_string); // Connects the title string started in D_direction_1 part with the ending in D_direction_2 part ^ Checking Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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... Unit_test_logger_2D_space.c:25891: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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 Unit_test_logger_2D_space.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 ./Unit_test_logger_2D_space.c