2025-11-27 05:08 ftp://ftp.de.debian.org/debian/pool/main/i/inhomog/inhomog_0.1.9.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openmp --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 9486fde (2025-11-26 08:20:02 +0100) count: 159 160 elapsed-time: 2.0 2.4 head-timing-info: old-timing-info: head results: inhomog-0.1.9.2/doc/examples/inhomog_demo.c:276:19: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] inhomog-0.1.9.2/inhomog.c:273:19: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] inhomog-0.1.9.2/lib/FLRW_background.c:77:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COSM_H_0_INV_GYR [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/FLRW_background.c:119:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COSM_H_0_INV_GYR [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/FLRW_background.c:163:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COSM_H_0_INV_GYR [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/FLRW_background.c:208:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COSM_H_0_INV_GYR [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/FLRW_background.c:264:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COSM_H_0_INV_GYR [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/FLRW_background.c:324:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COSM_H_0_INV_GYR [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/FLRW_background.c:388:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COSM_H_0_INV_GYR [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/FLRW_background.c:470:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COSM_H_0_INV_GYR [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/Omega_D.c:96:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOL_LENGTH_SQUARED [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/Omega_D.c:317:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOL_ADOT_SQ_A_OMD [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/Omega_D.c:48:61: style: Parameter 'rza_integrand_params' can be declared as pointer to const [constParameterPointer] inhomog-0.1.9.2/lib/Omega_D_VAv2.c:123:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INHOMOG_A_SCALE_FACTOR_INITIAL [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/Omega_D_BAO.c:123:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INHOMOG_A_SCALE_FACTOR_INITIAL [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/Omega_D_effWEC.c:132:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INHOMOG_A_SCALE_FACTOR_INITIAL [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/Omega_D_precalc.c:207:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_rng_default [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/Omega_D_effWEC.c:194:6: style: Condition 'rza2_figures' is always true [knownConditionTrueFalse] inhomog-0.1.9.2/lib/Omega_D_effWEC.c:125:20: note: Assignment 'rza2_figures=1', assigned value is 1 inhomog-0.1.9.2/lib/Omega_D_effWEC.c:194:6: note: Condition 'rza2_figures' is always true inhomog-0.1.9.2/lib/Omega_D_effWEC.c:361:19: portability: Casting from double * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] inhomog-0.1.9.2/lib/Omega_D_BAO.c:185:6: style: Condition 'rza2_figures' is always true [knownConditionTrueFalse] inhomog-0.1.9.2/lib/Omega_D_BAO.c:116:20: note: Assignment 'rza2_figures=1', assigned value is 1 inhomog-0.1.9.2/lib/Omega_D_BAO.c:185:6: note: Condition 'rza2_figures' is always true inhomog-0.1.9.2/lib/Omega_D_BAO.c:193:8: style: Condition 'rza2_figures' is always true [knownConditionTrueFalse] inhomog-0.1.9.2/lib/Omega_D_BAO.c:116:20: note: Assignment 'rza2_figures=1', assigned value is 1 inhomog-0.1.9.2/lib/Omega_D_BAO.c:193:8: note: Condition 'rza2_figures' is always true inhomog-0.1.9.2/lib/Omega_D_BAO.c:339:19: portability: Casting from double * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] inhomog-0.1.9.2/lib/alloc_big_array.c:99:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/alloc_big_array.c:151:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/alloc_big_array.c:222:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/alloc_big_array.c:312:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/alloc_big_array.c:411:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/alloc_big_array.c:484:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/alloc_big_array.c:573:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/Omega_D_VAv2.c:187:6: style: Condition 'rza2_figures' is always true [knownConditionTrueFalse] inhomog-0.1.9.2/lib/Omega_D_VAv2.c:116:20: note: Assignment 'rza2_figures=1', assigned value is 1 inhomog-0.1.9.2/lib/Omega_D_VAv2.c:187:6: note: Condition 'rza2_figures' is always true inhomog-0.1.9.2/lib/Omega_D_VAv2.c:202:8: style: Condition 'rza2_figures' is always true [knownConditionTrueFalse] inhomog-0.1.9.2/lib/Omega_D_VAv2.c:116:20: note: Assignment 'rza2_figures=1', assigned value is 1 inhomog-0.1.9.2/lib/Omega_D_VAv2.c:202:8: note: Condition 'rza2_figures' is always true inhomog-0.1.9.2/lib/Omega_D_VAv2.c:346:19: portability: Casting from double * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] inhomog-0.1.9.2/lib/c_gsl_wrap.c:73:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_rng_ranlxd2 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/c_gsl_wrap.c:96:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_qrng_niederreiter_2 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/c_gsl_wrap.c:134:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_rng_ranlxd2 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/Omega_D_precalc.c:500:25: style: Condition 'collapsed[i_subdom]' is always true [knownConditionTrueFalse] inhomog-0.1.9.2/lib/Omega_D_precalc.c:731:26: style: Condition 'collapsed[i_subdom_sorted]' is always true [knownConditionTrueFalse] inhomog-0.1.9.2/lib/Omega_D_precalc.c:746:26: style: Condition 'collapsed[i_subdom_sorted]' is always true [knownConditionTrueFalse] inhomog-0.1.9.2/lib/Omega_D_precalc.c:50:32: style: Parameter 'scal_av_n_gridsize1' can be declared as pointer to const [constParameterPointer] inhomog-0.1.9.2/lib/Omega_D_precalc.c:51:32: style: Parameter 'scal_av_n_gridsize2' can be declared as pointer to const [constParameterPointer] inhomog-0.1.9.2/lib/Omega_D_precalc.c:52:32: style: Parameter 'scal_av_n_gridsize3' can be declared as pointer to const [constParameterPointer] inhomog-0.1.9.2/lib/Omega_D_precalc.c:59:31: style: Parameter 'a_FLRW_init' can be declared as pointer to const [constParameterPointer] inhomog-0.1.9.2/lib/Omega_D_precalc.c:60:31: style: Parameter 'H1bg' can be declared as pointer to const [constParameterPointer] inhomog-0.1.9.2/lib/curvature_backreaction.c:107:38: style: Parameter 'n_sigma' can be declared as const array [constParameter] inhomog-0.1.9.2/lib/delta_tilde_integrals.c:50:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_INVAR_R_domain [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/delta_tilde_integrals.c:127:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_INVAR_R_domain [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/delta_tilde_integrals.c:179:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_INVAR_R_domain [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/delta_tilde_integrals.c:334:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_INVAR_R_domain [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/delta_tilde_integrals.c:423:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_INVAR_R_domain [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/delta_tilde_integrals.c:670:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_INVAR_R_domain [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/parse_noempty_strtox.c:44:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/parse_noempty_strtox.c:31:32: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] inhomog-0.1.9.2/lib/delta_tilde_integrals.c:614:39: style: Variable 'F_0' is assigned an expression that holds the same value. [redundantAssignment] inhomog-0.1.9.2/lib/delta_tilde_integrals.c:605:43: note: F_0 is assigned '1.0/6.0' here. inhomog-0.1.9.2/lib/delta_tilde_integrals.c:614:39: note: Variable 'F_0' is assigned an expression that holds the same value. inhomog-0.1.9.2/lib/delta_tilde_integrals.c:56:17: style: Variable 'j_1' is assigned a value that is never used. [unreadVariable] inhomog-0.1.9.2/lib/delta_tilde_integrals.c:57:10: style: Variable 'i_2' is assigned a value that is never used. [unreadVariable] inhomog-0.1.9.2/lib/delta_tilde_integrals.c:57:17: style: Variable 'j_2' is assigned a value that is never used. [unreadVariable] inhomog-0.1.9.2/lib/delta_tilde_integrals.c:132:17: style: Variable 'j_1' is assigned a value that is never used. [unreadVariable] inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:66:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOL_LENGTH [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:100:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOL_LENGTH [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:166:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INHOMOG_PK_BKS_SCALE_FACTOR_RATIO [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:264:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INHOMOG_TK_BBKS_BKS_R [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:345:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOL_LENGTH_SQUARED [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:500:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOL_LENGTH_SQUARED [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/kinematical_backreaction.c:107:38: style: Parameter 'n_sigma' can be declared as const array [constParameter] inhomog-0.1.9.2/lib/print_benchmark.c:32:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/scale_factor_D.c:103:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCALE_FACTOR_A_D_NEARLY_ZERO [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/scale_factor_D.c:75:32: style: Parameter 'a_D' can be declared as pointer to const [constParameterPointer] inhomog-0.1.9.2/lib/scale_factor_D.c:76:32: style: Parameter 'dot_a_D' can be declared as pointer to const [constParameterPointer] inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:573:24: warning: Invalid log() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'. [invalidFunctionArg] inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:518:17: note: Assignment 'Omb_frac=0.0', assigned value is 0.0 inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:573:24: note: Invalid argument inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:264:12: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:579:38: style: Expression 'exp(x) - 1' can be replaced by 'expm1(x)' to avoid loss of precision. [unpreciseMathCall] inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:591:17: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] inhomog-0.1.9.2/lib/power_spectrum_flatspace.c:618:18: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] inhomog-0.1.9.2/lib/sigma_square_invariant_I.c:57:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOL_LENGTH_SQUARED [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/sigma_square_invariant_I.c:76:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOL_LENGTH_SQUARED [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/sigma_square_invariant_I.c:126:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOL_LENGTH [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/sigma_square_invariant_I.c:224:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIM_BKS00 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:127:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HAM_A_D_SQUARED_NEG_LIMIT [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:213:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HAM_A_D_SQUARED_ZERO_LIMIT [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:322:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_odeiv2_step_rkf45 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:793:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_interp_cspline [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/scale_factor_D_Ray.c:103:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOL_RAY_FIRST_ORDER_MIN [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/scale_factor_D_Ray.c:179:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSL_SUCCESS [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/scale_factor_D_Ray.c:277:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_odeiv_step_rkf45 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/sigma_square_invariant_I.c:71:29: style: Parameter 'k_array' can be declared as const array [constParameter] inhomog-0.1.9.2/lib/sigma_square_invariant_I.c:383:10: style: Variable 'R_domain_BKS00_Table1' can be declared as const array [constVariable] inhomog-0.1.9.2/lib/sigma_square_invariant_II.c:82:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIM_BKS00 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/sigma_square_invariant_II.c:199:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIM_BKS00 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/sigma_square_invariant_III.c:138:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIM_BKS00 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/sigma_square_invariant_III.c:367:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIM_BKS00 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/scale_factor_D_Ray.c:317:7: error: Memory leak: rza_Q_D [memleak] inhomog-0.1.9.2/lib/scale_factor_D_Ray.c:317:7: error: Memory leak: rza_Q_D_plus_Lambda_FLRW [memleak] inhomog-0.1.9.2/lib/biscale_partition.c:93:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable N_TWO [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/test_Omega_D.c:175:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_rng_default [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/test_alloc_big_array.c:58:25: style: Variable 'k' is assigned a value that is never used. [unreadVariable] inhomog-0.1.9.2/lib/test_alloc_big_array.c:58:29: style: Variable 'l' is assigned a value that is never used. [unreadVariable] inhomog-0.1.9.2/lib/test_biscale_partition.c:40:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable N_COLLAPSE_TYPES [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/test_biscale_partition.c:50:10: style: Variable 't_collapse' can be declared as const array [constVariable] inhomog-0.1.9.2/lib/test_biscale_partition.c:54:10: style: Variable 'aeff_aEdS_on_aEdS' can be declared as const array [constVariable] inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:476:34: style: Condition 'n_a_D_dot_squared-1>0' is always true [knownConditionTrueFalse] inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:432:30: note: Assuming that condition 'n_a_D_dot_squared<50' is not redundant inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:476:34: note: Condition 'n_a_D_dot_squared-1>0' is always true inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:482:36: style: Condition 'n_a_D_dot_squared-1>1' is always true [knownConditionTrueFalse] inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:432:30: note: Assuming that condition 'n_a_D_dot_squared<50' is not redundant inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:482:36: note: Condition 'n_a_D_dot_squared-1>1' is always true inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:821:7: error: Memory leak: rza_Q_D [memleak] inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:821:7: error: Memory leak: rza_Q_D_minus_twoLambda_FLRW [memleak] inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:821:7: error: Memory leak: rza_R_D [memleak] inhomog-0.1.9.2/lib/test_fftw3.c:49:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_INVAR_N_x [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/scale_factor_D_Ham.c:1066:19: style: Variable 't_neg_sqrt_best' is assigned a value that is never used. [unreadVariable] inhomog-0.1.9.2/lib/test_fftw3.c:99:7: warning: If memory allocation fails, then there is a possible null pointer dereference: delta_gsl [nullPointerOutOfMemory] inhomog-0.1.9.2/lib/test_fftw3.c:73:21: note: Assuming allocation function fails inhomog-0.1.9.2/lib/test_fftw3.c:73:21: note: Assignment 'delta_gsl=malloc(sizeof(gsl_complex)*(unsigned int)(TEST_INVAR_N_x*TEST_INVAR_N_x))', assigned value is 0 inhomog-0.1.9.2/lib/test_fftw3.c:99:7: note: Null pointer dereference inhomog-0.1.9.2/lib/test_fftw3.c:102:42: warning: If memory allocation fails, then there is a possible null pointer dereference: delta_gsl [nullPointerOutOfMemory] inhomog-0.1.9.2/lib/test_fftw3.c:73:21: note: Assuming allocation function fails inhomog-0.1.9.2/lib/test_fftw3.c:73:21: note: Assignment 'delta_gsl=malloc(sizeof(gsl_complex)*(unsigned int)(TEST_INVAR_N_x*TEST_INVAR_N_x))', assigned value is 0 inhomog-0.1.9.2/lib/test_fftw3.c:102:42: note: Null pointer dereference inhomog-0.1.9.2/lib/test_fftw3.c:103:42: warning: If memory allocation fails, then there is a possible null pointer dereference: delta_gsl [nullPointerOutOfMemory] inhomog-0.1.9.2/lib/test_fftw3.c:73:21: note: Assuming allocation function fails inhomog-0.1.9.2/lib/test_fftw3.c:73:21: note: Assignment 'delta_gsl=malloc(sizeof(gsl_complex)*(unsigned int)(TEST_INVAR_N_x*TEST_INVAR_N_x))', assigned value is 0 inhomog-0.1.9.2/lib/test_fftw3.c:103:42: note: Null pointer dereference inhomog-0.1.9.2/lib/test_gsl_ieee_mode.c:53:9: style: Variable 'old_env_gsl_ieee_mode' can be declared as pointer to const [constVariablePointer] inhomog-0.1.9.2/lib/test_gsl_monte_carlo.c:67:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_GSL_N_CALLS [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/test_gsl_monte_carlo.c:96:9: style: Variable 'T_gsl' is reassigned a value before the old one has been used. [redundantAssignment] inhomog-0.1.9.2/lib/test_gsl_monte_carlo.c:95:9: note: T_gsl is assigned inhomog-0.1.9.2/lib/test_gsl_monte_carlo.c:96:9: note: T_gsl is overwritten inhomog-0.1.9.2/lib/test_gsl_monte_carlo.c:41:30: style: Parameter 'x_array' can be declared as pointer to const. However it seems that 'our_function' is a callback function, if 'x_array' is declared with const you might also need to cast function pointer(s). [constParameterCallback] inhomog-0.1.9.2/lib/test_gsl_monte_carlo.c:102:26: note: You might need to cast the function pointer here inhomog-0.1.9.2/lib/test_gsl_monte_carlo.c:41:30: note: Parameter 'x_array' can be declared as pointer to const inhomog-0.1.9.2/lib/test_Omega_D.c:220:6: style: Condition 'rza2_figures' is always false [knownConditionTrueFalse] inhomog-0.1.9.2/lib/test_Omega_D.c:113:20: note: Assignment 'rza2_figures=0', assigned value is 0 inhomog-0.1.9.2/lib/test_Omega_D.c:220:6: note: Condition 'rza2_figures' is always false inhomog-0.1.9.2/lib/test_Omega_D.c:374:19: portability: Casting from double * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] inhomog-0.1.9.2/lib/test_gsl_multifit.c:71:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_rng_ranlxd2 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/test_Omega_D.c:87:10: style: Variable 'Omm_D_test_rel_diff' can be declared as const array [constVariable] inhomog-0.1.9.2/lib/test_Omega_D.c:88:10: style: Variable 'OmR_D_test_rel_diff' can be declared as const array [constVariable] inhomog-0.1.9.2/lib/test_gsl_uniform.c:40:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_GSL_MAX_N [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/test_gsl_uniform.c:112:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_GSL_N_SIGMA [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/test_gsl_uniform.c:66:8: style: Condition 'debug' is always false [knownConditionTrueFalse] inhomog-0.1.9.2/lib/test_gsl_uniform.c:49:13: note: Assignment 'debug=0', assigned value is 0 inhomog-0.1.9.2/lib/test_gsl_uniform.c:66:8: note: Condition 'debug' is always false inhomog-0.1.9.2/lib/biscale_partition.c:297:31: style: Redundant condition: collapsed[i_domain]. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] inhomog-0.1.9.2/lib/biscale_partition.c:335:24: style: Redundant condition: collapsed[0]. '!collapsed[0] || (collapsed[0] && i_t