2025-11-23 17:52 ftp://ftp.de.debian.org/debian/pool/main/r/r-bioc-demixt/r-bioc-demixt_1.22.0.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-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 120 121 elapsed-time: 1.9 2.1 head-timing-info: old-timing-info: head results: DeMixT/src/init.c:177:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] DeMixT/src/RcppExports.cpp:28:1: error: There is an unknown macro here somewhere. Configuration is required. If END_RCPP is a macro then please configure it. [unknownMacro] DeMixT/src/registerDynamicSymbol.c:9:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] DeMixT/src/Profile_2D.cpp:63:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] DeMixT/src/Profile_2D.cpp:321:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] DeMixT/src/DeMixT.c:702:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] DeMixT/src/DeMixT.c:808:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] DeMixT/src/DeMixT.c:925:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] DeMixT/src/DeMixT.c:1178:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] DeMixT/src/DeMixT.c:1412:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] DeMixT/src/DeMixT.c:1572:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] DeMixT/src/DeMixT.c:1702:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_EPSILON [valueFlowBailoutIncompleteVar] DeMixT/src/Profile_2D.cpp:13:12: style: The scope of the variable 'tmp' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:42:10: style: The scope of the variable 'tmp' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:59:24: style: The scope of the variable 'p' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:59:27: style: The scope of the variable 'q' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:59:30: style: The scope of the variable 'r' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:60:10: style: The scope of the variable 't2' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:60:14: style: The scope of the variable 'fu' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:60:30: style: The scope of the variable 'xm' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:183:10: style: The scope of the variable 'tmp' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:200:24: style: The scope of the variable 'p' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:200:27: style: The scope of the variable 'q' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:200:30: style: The scope of the variable 'r' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:201:10: style: The scope of the variable 't2' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:201:14: style: The scope of the variable 'fu' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:201:30: style: The scope of the variable 'xm' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:317:24: style: The scope of the variable 'p' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:317:27: style: The scope of the variable 'q' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:317:30: style: The scope of the variable 'r' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:318:10: style: The scope of the variable 't2' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:318:14: style: The scope of the variable 'fu' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:318:30: style: The scope of the variable 'xm' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:622:9: style: The scope of the variable 'tmp_pos' can be reduced. [variableScope] DeMixT/src/Profile_2D.cpp:64:8: style: Variable 'tol1' is assigned a value that is never used. [unreadVariable] DeMixT/src/Profile_2D.cpp:205:8: style: Variable 'tol1' is assigned a value that is never used. [unreadVariable] DeMixT/src/Profile_2D.cpp:322:8: style: Variable 'tol1' is assigned a value that is never used. [unreadVariable] DeMixT/src/Profile_2D.cpp:472:20: style: Variable 'alpha_max' is assigned a value that is never used. [unreadVariable] DeMixT/src/Profile_2D.cpp:497:20: style: Variable 'alpha_max' is assigned a value that is never used. [unreadVariable] DeMixT/src/Profile_2D.cpp:514:20: style: Variable 'alpha_max' is assigned a value that is never used. [unreadVariable] DeMixT/src/Profile_2D.cpp:529:18: style: Variable 'alpha_max' is assigned a value that is never used. [unreadVariable] DeMixT/src/Profile_2D.cpp:546:20: style: Variable 'alpha_max' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:97:21: warning: If memory allocation fails, then there is a possible null pointer dereference: FD [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:94:14: note: Assuming allocation function fails DeMixT/src/DeMixT.c:94:14: note: Assignment 'FD=calloc(nS,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:97:21: note: Null pointer dereference DeMixT/src/DeMixT.c:113:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmppi1 [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:108:17: note: Assuming allocation function fails DeMixT/src/DeMixT.c:108:17: note: Assignment 'tmppi1=calloc(iteration,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:113:5: note: Null pointer dereference DeMixT/src/DeMixT.c:114:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmppi2 [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:109:17: note: Assuming allocation function fails DeMixT/src/DeMixT.c:109:17: note: Assignment 'tmppi2=calloc(iteration,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:114:5: note: Null pointer dereference DeMixT/src/DeMixT.c:135:21: warning: If memory allocation fails, then there is a possible null pointer dereference: stroma1 [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:119:19: note: Assuming allocation function fails DeMixT/src/DeMixT.c:119:19: note: Assignment 'stroma1=calloc(nG,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:135:21: note: Null pointer dereference DeMixT/src/DeMixT.c:136:21: warning: If memory allocation fails, then there is a possible null pointer dereference: stroma2 [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:120:19: note: Assuming allocation function fails DeMixT/src/DeMixT.c:120:19: note: Assignment 'stroma2=calloc(nG,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:136:21: note: Null pointer dereference DeMixT/src/DeMixT.c:137:21: warning: If memory allocation fails, then there is a possible null pointer dereference: stroma1_2 [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:126:21: note: Assuming allocation function fails DeMixT/src/DeMixT.c:126:21: note: Assignment 'stroma1_2=calloc(nG,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:137:21: note: Null pointer dereference DeMixT/src/DeMixT.c:138:21: warning: If memory allocation fails, then there is a possible null pointer dereference: stroma2_2 [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:127:21: note: Assuming allocation function fails DeMixT/src/DeMixT.c:127:21: note: Assignment 'stroma2_2=calloc(nG,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:138:21: note: Null pointer dereference DeMixT/src/DeMixT.c:142:23: warning: If memory allocation fails, then there is a possible null pointer dereference: mixed [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:141:19: note: Assuming allocation function fails DeMixT/src/DeMixT.c:141:19: note: Assignment 'mixed=calloc(nG,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:142:23: note: Null pointer dereference DeMixT/src/DeMixT.c:241:23: warning: If memory allocation fails, then there is a possible null pointer dereference: CD [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:240:14: note: Assuming allocation function fails DeMixT/src/DeMixT.c:240:14: note: Assignment 'CD=calloc(intx,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:241:23: note: Null pointer dereference DeMixT/src/DeMixT.c:246:34: warning: If memory allocation fails, then there is a possible null pointer dereference: avgparT [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:244:19: note: Assuming allocation function fails DeMixT/src/DeMixT.c:244:19: note: Assignment 'avgparT=calloc(iteration,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:246:34: note: Null pointer dereference DeMixT/src/DeMixT.c:247:34: warning: If memory allocation fails, then there is a possible null pointer dereference: sigparT [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:245:19: note: Assuming allocation function fails DeMixT/src/DeMixT.c:245:19: note: Assignment 'sigparT=calloc(iteration,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:247:34: note: Null pointer dereference DeMixT/src/DeMixT.c:251:13: warning: If memory allocation fails, then there is a possible null pointer dereference: avgparT [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:244:19: note: Assuming allocation function fails DeMixT/src/DeMixT.c:244:19: note: Assignment 'avgparT=calloc(iteration,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:251:13: note: Null pointer dereference DeMixT/src/DeMixT.c:252:13: warning: If memory allocation fails, then there is a possible null pointer dereference: sigparT [nullPointerOutOfMemory] DeMixT/src/DeMixT.c:245:19: note: Assuming allocation function fails DeMixT/src/DeMixT.c:245:19: note: Assignment 'sigparT=calloc(iteration,sizeof(double*))', assigned value is 0 DeMixT/src/DeMixT.c:252:13: note: Null pointer dereference DeMixT/src/DeMixT.c:600:17: style: Variable 'obj_old' is reassigned a value before the old one has been used. [redundantAssignment] DeMixT/src/DeMixT.c:594:17: note: obj_old is assigned DeMixT/src/DeMixT.c:600:17: note: obj_old is overwritten DeMixT/src/DeMixT.c:602:17: style: Variable 'obj_new' is reassigned a value before the old one has been used. [redundantAssignment] DeMixT/src/DeMixT.c:596:17: note: obj_new is assigned DeMixT/src/DeMixT.c:602:17: note: obj_new is overwritten DeMixT/src/DeMixT.c:616:17: style: Variable 'obj_old' is reassigned a value before the old one has been used. [redundantAssignment] DeMixT/src/DeMixT.c:610:17: note: obj_old is assigned DeMixT/src/DeMixT.c:616:17: note: obj_old is overwritten DeMixT/src/DeMixT.c:618:17: style: Variable 'obj_new' is reassigned a value before the old one has been used. [redundantAssignment] DeMixT/src/DeMixT.c:612:17: note: obj_new is assigned DeMixT/src/DeMixT.c:618:17: note: obj_new is overwritten DeMixT/src/DeMixT.c:698:24: style: Local variable 'p' shadows outer variable [shadowVariable] DeMixT/src/DeMixTH.h:117:8: note: Shadowed declaration DeMixT/src/DeMixT.c:698:24: note: Shadow variable DeMixT/src/DeMixT.c:804:24: style: Local variable 'p' shadows outer variable [shadowVariable] DeMixT/src/DeMixTH.h:117:8: note: Shadowed declaration DeMixT/src/DeMixT.c:804:24: note: Shadow variable DeMixT/src/DeMixT.c:921:24: style: Local variable 'p' shadows outer variable [shadowVariable] DeMixT/src/DeMixTH.h:117:8: note: Shadowed declaration DeMixT/src/DeMixT.c:921:24: note: Shadow variable DeMixT/src/DeMixT.c:1174:24: style: Local variable 'p' shadows outer variable [shadowVariable] DeMixT/src/DeMixTH.h:117:8: note: Shadowed declaration DeMixT/src/DeMixT.c:1174:24: note: Shadow variable DeMixT/src/DeMixT.c:1408:24: style: Local variable 'p' shadows outer variable [shadowVariable] DeMixT/src/DeMixTH.h:117:8: note: Shadowed declaration DeMixT/src/DeMixT.c:1408:24: note: Shadow variable DeMixT/src/DeMixT.c:1568:24: style: Local variable 'p' shadows outer variable [shadowVariable] DeMixT/src/DeMixTH.h:117:8: note: Shadowed declaration DeMixT/src/DeMixT.c:1568:24: note: Shadow variable DeMixT/src/DeMixT.c:1698:24: style: Local variable 'p' shadows outer variable [shadowVariable] DeMixT/src/DeMixTH.h:117:8: note: Shadowed declaration DeMixT/src/DeMixT.c:1698:24: note: Shadow variable DeMixT/src/DeMixT.c:19:22: style: Parameter 'numthread' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:32: style: Parameter 'nGroup' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:45: style: Parameter 'nsamp' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:57: style: Parameter 'ngenes' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:70: style: Parameter 'nspikein' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:85: style: Parameter 'npi' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:98: style: Parameter 'pi01' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:112: style: Parameter 'pi02' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:126: style: Parameter 'fixpi1' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:142: style: Parameter 'fixpi2' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:158: style: Parameter 'fixpi3' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:170: style: Parameter 'nCid' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:181: style: Parameter 'niter' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:193: style: Parameter 'ninteg' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:209: style: Parameter 'tol' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:235: style: Parameter 's0' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:31:247: style: Parameter 'm0' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixT.c:37:11: style: Variable 'st1_mu_2' can be declared as pointer to const [constVariablePointer] DeMixT/src/DeMixT.c:37:22: style: Variable 'st2_mu_2' can be declared as pointer to const [constVariablePointer] DeMixT/src/DeMixT.c:37:33: style: Variable 'st1_sig_2' can be declared as pointer to const [constVariablePointer] DeMixT/src/DeMixT.c:37:45: style: Variable 'st2_sig_2' can be declared as pointer to const [constVariablePointer] DeMixT/src/DeMixT.c:474:24: style: Parameter 'mat1' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixTH.h:157:20: style: Parameter 'array' can be declared as pointer to const [constParameterPointer] DeMixT/src/DeMixTH.h:192:16: style: Variable 'cof' can be declared as const array [constVariable] DeMixT/src/DeMixT.c:128:12: style: Variable 'st1_mu_2' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:129:12: style: Variable 'st2_mu_2' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:130:13: style: Variable 'st1_sig_2' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:131:13: style: Variable 'st2_sig_2' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:128:14: style: Variable 'st1_mu_2' is allocated memory that is never used. [unusedAllocatedMemory] DeMixT/src/DeMixT.c:129:14: style: Variable 'st2_mu_2' is allocated memory that is never used. [unusedAllocatedMemory] DeMixT/src/DeMixT.c:130:15: style: Variable 'st1_sig_2' is allocated memory that is never used. [unusedAllocatedMemory] DeMixT/src/DeMixT.c:131:15: style: Variable 'st2_sig_2' is allocated memory that is never used. [unusedAllocatedMemory] DeMixT/src/DeMixT.c:600:17: style: Variable 'obj_old' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:602:17: style: Variable 'obj_new' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:616:17: style: Variable 'obj_old' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:618:17: style: Variable 'obj_new' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:671:13: style: Variable 'sigma' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:680:13: style: Variable 'sigma' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:703:10: style: Variable 'tol1' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:809:10: style: Variable 'tol1' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:926:10: style: Variable 'tol1' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1179:10: style: Variable 'tol1' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1278:9: style: Variable 'pii2' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1283:17: style: Variable 'obj_old' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1285:17: style: Variable 'obj_new' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1290:17: style: Variable 'obj_old' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1294:17: style: Variable 'obj_new' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1309:10: style: Variable 'obj_old' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1311:10: style: Variable 'obj_new' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1324:13: style: Variable 'obj_old' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1329:13: style: Variable 'obj_new' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1413:10: style: Variable 'tol1' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1573:10: style: Variable 'tol1' is assigned a value that is never used. [unreadVariable] DeMixT/src/DeMixT.c:1703:10: style: Variable 'tol1' is assigned a value that is never used. [unreadVariable] diff: 2.18.0 DeMixT/src/DeMixT.c:1056:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _a [valueFlowBailoutIncompleteVar] DONE