2025-05-05 02:24 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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 88ef81e (2025-05-02 08:42:38 +0200) count: 160 160 elapsed-time: 3.2 3.0 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_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_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_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_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/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_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/alloc_big_array.c:53:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] inhomog-0.1.9.2/lib/alloc_big_array.c:64:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 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_precalc.c:207:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_rng_default [valueFlowBailoutIncompleteVar] 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/curvature_backreaction.c:107:38: style: Parameter 'n_sigma' can be declared as const array [constParameter] 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/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/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/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/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/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/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/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/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/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/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/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/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/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_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/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