2025-06-26 13:18 ftp://ftp.de.debian.org/debian/pool/main/c/cohomcalg/cohomcalg_0.32+ds.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 4780cd2 (2025-06-26 14:24:42 +0200) count: 104 101 elapsed-time: 0.6 0.6 head-timing-info: old-timing-info: head results: cohomCalg-0.32/source/tokenizer.cpp:191:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/tokenizer.cpp:349:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/main.h:107:31: performance: Function 'GetInputFileName()' should return member 'strInputFileName' by const reference. [returnByReference] cohomCalg-0.32/source/main.h:114:31: performance: Function 'GetAppendInput()' should return member 'strAppendInput' by const reference. [returnByReference] cohomCalg-0.32/source/main.h:117:31: performance: Function 'GetMonomialFileName()' should return member 'strMonomialFileName' by const reference. [returnByReference] cohomCalg-0.32/source/tokenizer.cpp:83:76: style: C-style pointer casting [cstyleCast] cohomCalg-0.32/source/main.h:123:64: style: Parameter 'filename' can be declared as reference to const [constParameterReference] cohomCalg-0.32/source/main.cpp:217:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/main.cpp:306:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/main.cpp:416:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/rationals.cpp:133:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/rationals.cpp:143:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/rationals.cpp:208:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/rationals.cpp:283:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/rationals.cpp:299:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/rationals.cpp:418:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/rationals.cpp:835:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/rationals.cpp:970:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/rationals.cpp:1017:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:101:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:186:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:232:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:355:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:424:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:486:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:565:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:752:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:853:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:1007:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable out [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:1178:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:1200:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/iohandler.cpp:1289:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/secondarycohom.cpp:156:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/secondarycohom.cpp:202:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/secondarycohom.cpp:332:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/secondarycohom.cpp:460:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/secondarycohom.cpp:538:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/secondarycohom.cpp:619:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/secondarycohom.cpp:689:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nGroup [valueFlowBailoutIncompleteVar] cohomCalg-0.32/source/main.cpp:335:36: style: Condition 'bCheckForFilename' is always true [knownConditionTrueFalse] cohomCalg-0.32/source/main.cpp:277:30: note: Assignment 'bCheckForFilename=true', assigned value is 1 cohomCalg-0.32/source/main.cpp:335:36: note: Condition 'bCheckForFilename' is always true cohomCalg-0.32/source/main.cpp:242:63: style: Parameter 'argv' can be declared as const array [constParameter] cohomCalg-0.32/source/main.cpp:535:33: style: Variable 'ts.t20SeqExactnessStart' is assigned a value that is never used. [unreadVariable] cohomCalg-0.32/source/rationals.cpp:295:19: style: C-style pointer casting [cstyleCast] cohomCalg-0.32/source/rationals.cpp:417:28: style: C-style pointer casting [cstyleCast] cohomCalg-0.32/source/rationals.cpp:277:9: style: The scope of the variable 'pos' can be reduced. [variableScope] cohomCalg-0.32/source/rationals.cpp:298:12: style: The scope of the variable 'tmp' can be reduced. [variableScope] cohomCalg-0.32/source/rationals.cpp:298:17: style: The scope of the variable 'cureqn' can be reduced. [variableScope] cohomCalg-0.32/source/rationals.cpp:298:25: style: The scope of the variable 'mathematica' can be reduced. [variableScope] cohomCalg-0.32/source/rationals.cpp:295:13: style: Variable 'Mat' can be declared as pointer to const [constVariablePointer] cohomCalg-0.32/source/rationals.cpp:277:13: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] cohomCalg-0.32/source/rationals.cpp:693:123: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/rationals.cpp:697:123: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/rationals.cpp:707:118: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/rationals.cpp:711:118: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/rationals.cpp:740:114: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/rationals.cpp:745:123: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/rationals.cpp:749:123: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/rationals.cpp:759:118: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/rationals.cpp:779:114: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/rationals.cpp:794:114: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/rationals.cpp:806:123: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/iohandler.cpp:461:18: performance:inconclusive: Technically the member function 'CInputFile::ParseMonomialFileCommand' can be static (but you may consider moving to unnamed namespace). [functionStatic] cohomCalg-0.32/source/iohandler.cpp:59:10: note: Technically the member function 'CInputFile::ParseMonomialFileCommand' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:461:18: note: Technically the member function 'CInputFile::ParseMonomialFileCommand' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:500:18: performance:inconclusive: Technically the member function 'CInputFile::DiscardCommand' can be static (but you may consider moving to unnamed namespace). [functionStatic] cohomCalg-0.32/source/iohandler.cpp:60:7: note: Technically the member function 'CInputFile::DiscardCommand' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:500:18: note: Technically the member function 'CInputFile::DiscardCommand' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:160:18: performance:inconclusive: Technically the member function 'CInputFile::HandleSyntaxError' can be static (but you may consider moving to unnamed namespace). [functionStatic] cohomCalg-0.32/source/iohandler.cpp:63:10: note: Technically the member function 'CInputFile::HandleSyntaxError' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:160:18: note: Technically the member function 'CInputFile::HandleSyntaxError' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:1366:25: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cohomCalg-0.32/source/iohandler.cpp:218:21: style: The scope of the variable 'dummy' can be reduced. [variableScope] cohomCalg-0.32/source/iohandler.cpp:90:54: performance: Function parameter 'strFileName' should be passed by const reference. [passedByValue] cohomCalg-0.32/source/iohandler.cpp:133:47: performance: Function parameter 'strFileName' should be passed by const reference. [passedByValue] cohomCalg-0.32/source/iohandler.cpp:743:50: performance: Function parameter 'strFileName' should be passed by const reference. [passedByValue] cohomCalg-0.32/source/iohandler.cpp:743:70: performance: Function parameter 'strAppend' should be passed by const reference. [passedByValue] cohomCalg-0.32/source/iohandler.cpp:765:85: performance: Function parameter 'strZeroVal' should be passed by const reference. [passedByValue] cohomCalg-0.32/source/iohandler.cpp:794:76: performance: Function parameter 'strSep' should be passed by const reference. [passedByValue] cohomCalg-0.32/source/iohandler.cpp:794:91: performance: Function parameter 'strZeroVal' should be passed by const reference. [passedByValue] cohomCalg-0.32/source/iohandler.cpp:1001:72: performance: Function parameter 'strFileName' should be passed by const reference. [passedByValue] cohomCalg-0.32/source/iohandler.cpp:1044:71: performance: Function parameter 'strFileName' should be passed by const reference. [passedByValue] cohomCalg-0.32/source/iohandler.cpp:1382:77: performance: Function parameter 'strFileName' should be passed by const reference. [passedByValue] cohomCalg-0.32/source/iohandler.cpp:1388:78: performance: Function parameter 'strFileName' should be passed by const reference. [passedByValue] cohomCalg-0.32/source/iohandler.cpp:1220:9: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] cohomCalg-0.32/source/iohandler.cpp:1240:9: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] cohomCalg-0.32/source/iohandler.cpp:547:18: style: Variable 'bResult' is assigned a value that is never used. [unreadVariable] cohomCalg-0.32/source/iohandler.cpp:677:9: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/iohandler.cpp:1021:122: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/iohandler.cpp:1028:131: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/iohandler.cpp:1149:110: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/iohandler.cpp:1155:119: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/iohandler.cpp:1284:9: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/iohandler.cpp:1335:129: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/secondarycohom.cpp:535:29: style: Condition 'seq_len<1' is always false [knownConditionTrueFalse] cohomCalg-0.32/source/secondarycohom.cpp:534:56: note: Assignment 'seq_len=seq_end-seq_start+1', assigned value is greater than 0 cohomCalg-0.32/source/secondarycohom.cpp:535:29: note: Condition 'seq_len<1' is always false cohomCalg-0.32/source/secondarycohom.cpp:287:27: style: C-style pointer casting [cstyleCast] cohomCalg-0.32/source/secondarycohom.cpp:322:28: style: C-style pointer casting [cstyleCast] cohomCalg-0.32/source/secondarycohom.cpp:419:50: style: C-style pointer casting [cstyleCast] cohomCalg-0.32/source/secondarycohom.cpp:288:20: style: The scope of the variable 'pbuf' can be reduced. [variableScope] cohomCalg-0.32/source/secondarycohom.cpp:525:47: style: Unsigned expression 'i' can't be negative so it is unnecessary to test it. [unsignedPositive] cohomCalg-0.32/source/secondarycohom.cpp:403:17: style: Local variable 'k' shadows outer variable [shadowVariable] cohomCalg-0.32/source/secondarycohom.cpp:379:20: note: Shadowed declaration cohomCalg-0.32/source/secondarycohom.cpp:403:17: note: Shadow variable cohomCalg-0.32/source/secondarycohom.cpp:429:10: style: Variable 'stat' can be declared as pointer to const [constVariablePointer] cohomCalg-0.32/source/secondarycohom.cpp:429:15: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] cohomCalg-0.32/source/secondarycohom.cpp:429:10: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] cohomCalg-0.32/source/secondarycohom.cpp:126:102: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/secondarycohom.cpp:160:9: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/secondarycohom.cpp:456:4: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/secondarycohom.cpp:555:25: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/secondarycohom.cpp:719:17: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/secondarycohom.cpp:777:21: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] cohomCalg-0.32/source/secondarycohom.cpp:782:5: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] diff: head cohomCalg-0.32/source/iohandler.cpp:1220:9: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] head cohomCalg-0.32/source/iohandler.cpp:1240:9: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] head cohomCalg-0.32/source/iohandler.cpp:160:18: performance:inconclusive: Technically the member function 'CInputFile::HandleSyntaxError' can be static (but you may consider moving to unnamed namespace). [functionStatic] cohomCalg-0.32/source/iohandler.cpp:63:10: note: Technically the member function 'CInputFile::HandleSyntaxError' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:160:18: note: Technically the member function 'CInputFile::HandleSyntaxError' can be static (but you may consider moving to unnamed namespace). head cohomCalg-0.32/source/iohandler.cpp:461:18: performance:inconclusive: Technically the member function 'CInputFile::ParseMonomialFileCommand' can be static (but you may consider moving to unnamed namespace). [functionStatic] cohomCalg-0.32/source/iohandler.cpp:59:10: note: Technically the member function 'CInputFile::ParseMonomialFileCommand' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:461:18: note: Technically the member function 'CInputFile::ParseMonomialFileCommand' can be static (but you may consider moving to unnamed namespace). head cohomCalg-0.32/source/iohandler.cpp:500:18: performance:inconclusive: Technically the member function 'CInputFile::DiscardCommand' can be static (but you may consider moving to unnamed namespace). [functionStatic] cohomCalg-0.32/source/iohandler.cpp:60:7: note: Technically the member function 'CInputFile::DiscardCommand' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:500:18: note: Technically the member function 'CInputFile::DiscardCommand' can be static (but you may consider moving to unnamed namespace). 2.17.0 cohomCalg-0.32/source/iohandler.cpp:59:10: performance:inconclusive: Technically the member function 'CInputFile::ParseMonomialFileCommand' can be static (but you may consider moving to unnamed namespace). [functionStatic] cohomCalg-0.32/source/iohandler.cpp:461:18: note: Technically the member function 'CInputFile::ParseMonomialFileCommand' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:59:10: note: Technically the member function 'CInputFile::ParseMonomialFileCommand' can be static (but you may consider moving to unnamed namespace). 2.17.0 cohomCalg-0.32/source/iohandler.cpp:60:7: performance:inconclusive: Technically the member function 'CInputFile::DiscardCommand' can be static (but you may consider moving to unnamed namespace). [functionStatic] cohomCalg-0.32/source/iohandler.cpp:500:18: note: Technically the member function 'CInputFile::DiscardCommand' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:60:7: note: Technically the member function 'CInputFile::DiscardCommand' can be static (but you may consider moving to unnamed namespace). 2.17.0 cohomCalg-0.32/source/iohandler.cpp:63:10: performance:inconclusive: Technically the member function 'CInputFile::HandleSyntaxError' can be static (but you may consider moving to unnamed namespace). [functionStatic] cohomCalg-0.32/source/iohandler.cpp:160:18: note: Technically the member function 'CInputFile::HandleSyntaxError' can be static (but you may consider moving to unnamed namespace). cohomCalg-0.32/source/iohandler.cpp:63:10: note: Technically the member function 'CInputFile::HandleSyntaxError' can be static (but you may consider moving to unnamed namespace). head cohomCalg-0.32/source/secondarycohom.cpp:429:10: style: Variable 'stat' is assigned a value that is never used. [unreadVariable] DONE