2025-05-08 00:18 ftp://ftp.de.debian.org/debian/pool/main/s/sim4/sim4_0.0.20121010.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 -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: ebc80c0 (2025-05-07 18:59:31 +0200) count: 116 116 elapsed-time: 14.9 15.2 head-timing-info: old-timing-info: head results: sim4.2012-10-10/charvec.c:4:33: debug: Function::addArguments found argument 'ra' with varid 0. [varid0] sim4.2012-10-10/charvec.c:22:41: debug: Function::addArguments found argument 'a' with varid 0. [varid0] sim4.2012-10-10/charvec.c:8:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ra [valueFlowBailoutIncompleteVar] sim4.2012-10-10/charvec.c:28:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable a [valueFlowBailoutIncompleteVar] sim4.2012-10-10/align.c:120:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sim4.2012-10-10/align.c:269:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sim4.2012-10-10/discrim.c:32:4: style: Statements following noreturn function 'fatalf()' will never be executed. [unreachableCode] sim4.2012-10-10/misc.c:15:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sim4.2012-10-10/misc.c:26:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sim4.2012-10-10/misc.c:34:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sim4.2012-10-10/misc.c:46:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sim4.2012-10-10/misc.c:61:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sim4.2012-10-10/misc.c:74:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sim4.2012-10-10/misc.c:137:15: error: Returning pointer to local variable 'p' that will be invalid when returning. [returnDanglingLifetime] sim4.2012-10-10/misc.c:137:16: note: Passed to 'strcpy'. sim4.2012-10-10/misc.c:134:8: note: Variable created here. sim4.2012-10-10/misc.c:137:15: note: Returning pointer to local variable 'p' that will be invalid when returning. sim4.2012-10-10/misc.c:17:2: style: Statements following noreturn function 'fatalf()' will never be executed. [unreachableCode] sim4.2012-10-10/misc.c:25:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/poly.c:228:12: warning:inconclusive: Either the condition 'tp' is redundant or there is possible null pointer dereference: tp. [nullPointerRedundantCheck] sim4.2012-10-10/poly.c:188:21: note: Assuming that condition 'tp' is not redundant sim4.2012-10-10/poly.c:228:12: note: Null pointer dereference sim4.2012-10-10/poly.c:382:12: warning:inconclusive: Either the condition 'tp' is redundant or there is possible null pointer dereference: tp. [nullPointerRedundantCheck] sim4.2012-10-10/poly.c:342:21: note: Assuming that condition 'tp' is not redundant sim4.2012-10-10/poly.c:382:12: note: Null pointer dereference sim4.2012-10-10/poly.c:21:25: style: Variable 't' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/poly.c:21:29: style: Variable 'v' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/poly.c:108:29: style: Variable 'prev' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/poly.c:109:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/poly.c:109:17: style: Variable 'end' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/poly.c:159:12: style: Variable 'a' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/poly.c:159:16: style: Variable 'b' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/poly.c:272:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/poly.c:272:17: style: Variable 'end' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/poly.c:316:12: style: Variable 'a' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/poly.c:316:16: style: Variable 'b' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/align.c:659:15: warning: Identical condition 'x>M', second condition is always false [identicalConditionAfterEarlyExit] sim4.2012-10-10/align.c:656:14: note: If condition 'x>M' is true, the function will return/exit sim4.2012-10-10/align.c:659:15: note: Testing identical condition 'x>M' sim4.2012-10-10/align.c:503:55: style: Parameter 'S' can be declared as const array [constParameter] sim4.2012-10-10/prnt.c:32:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sim4.2012-10-10/prnt.c:25:71: style: Parameter 'ds' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/prnt.c:73:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/prnt.c:78:34: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/prnt.c:85:99: style: Parameter 'S' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/prnt.c:88:16: style: Variable 'P' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/prnt.c:88:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/prnt.c:88:24: style: Variable 'q' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/seq.c:77:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] sim4.2012-10-10/seq_read.c:28:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sim4.2012-10-10/seq_read.c:35:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sim4.2012-10-10/seq_read.c:72:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sim4.2012-10-10/seq.c:225:20: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/seq.c:235:22: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/seq.c:77:7: style: Variable 'mode' is assigned a value that is never used. [unreadVariable] sim4.2012-10-10/sim4.init.c:177:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sim4.2012-10-10/sim4.init.c:234:27: style: Expression is always true because 'else if' condition is opposite to previous condition at line 226. [multiCondition] sim4.2012-10-10/sim4.init.c:226:27: note: first condition sim4.2012-10-10/sim4.init.c:234:27: note: else if condition is opposite to first condition sim4.2012-10-10/sim4.init.c:124:16: style: Local variable 'seq1' shadows outer variable [shadowVariable] sim4.2012-10-10/sim4b1.h:5:15: note: Shadowed declaration sim4.2012-10-10/sim4.init.c:124:16: note: Shadow variable sim4.2012-10-10/sim4.init.c:124:23: style: Local variable 'seq2' shadows outer variable [shadowVariable] sim4.2012-10-10/sim4b1.h:5:22: note: Shadowed declaration sim4.2012-10-10/sim4.init.c:124:23: note: Shadow variable sim4.2012-10-10/sim4.init.c:665:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4.init.c:714:21: style: Variable 'q' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:1274:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] sim4.2012-10-10/sim4b1.c:1328:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sim4.2012-10-10/sim4b1.c:1423:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sim4.2012-10-10/sim4b1.c:2698:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sim4.2012-10-10/splice.c:41:24: style:inconclusive: Function 'splice' argument 9 names different: declaration 'g' definition 'gcell'. [funcArgNamesDifferent] sim4.2012-10-10/splice.h:14:56: note: Function 'splice' argument 9 names different: declaration 'g' definition 'gcell'. sim4.2012-10-10/splice.c:41:24: note: Function 'splice' argument 9 names different: declaration 'g' definition 'gcell'. sim4.2012-10-10/splice.c:41:42: style:inconclusive: Function 'splice' argument 10 names different: declaration 'c' definition 'ccell'. [funcArgNamesDifferent] sim4.2012-10-10/splice.h:14:70: note: Function 'splice' argument 10 names different: declaration 'c' definition 'ccell'. sim4.2012-10-10/splice.c:41:42: note: Function 'splice' argument 10 names different: declaration 'c' definition 'ccell'. sim4.2012-10-10/splice.c:209:51: style:inconclusive: Function 'splice_donor_uni' argument 6 names different: declaration 'max_IF' definition 'max_If'. [funcArgNamesDifferent] sim4.2012-10-10/splice.c:30:47: note: Function 'splice_donor_uni' argument 6 names different: declaration 'max_IF' definition 'max_If'. sim4.2012-10-10/splice.c:209:51: note: Function 'splice_donor_uni' argument 6 names different: declaration 'max_IF' definition 'max_If'. sim4.2012-10-10/splice.c:209:65: style:inconclusive: Function 'splice_donor_uni' argument 7 names different: declaration 'end_Ii' definition 'start_Ii'. [funcArgNamesDifferent] sim4.2012-10-10/splice.c:30:61: note: Function 'splice_donor_uni' argument 7 names different: declaration 'end_Ii' definition 'start_Ii'. sim4.2012-10-10/splice.c:209:65: note: Function 'splice_donor_uni' argument 7 names different: declaration 'end_Ii' definition 'start_Ii'. sim4.2012-10-10/splice.c:156:71: style: Parameter 'gt_score' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/splice.c:157:31: style: Parameter 'ct_score' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/splice.c:209:35: style: Parameter 'It_score' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/splice.c:254:34: style: Parameter 'ag_score' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/splice.c:254:49: style: Parameter 'ac_score' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/splice.c:307:38: style: Parameter 'aI_score' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/splice.c:109:21: style: Variable 'keep_Gi' is assigned a value that is never used. [unreadVariable] sim4.2012-10-10/splice.c:120:21: style: Variable 'keep_Ci' is assigned a value that is never used. [unreadVariable] sim4.2012-10-10/Xtend1.c:18:23: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/Xtend1.c:280:23: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/Xtend1.c:280:34: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] sim4.2012-10-10/sim4b1.c:222:14: style: Condition 'diff' is always true [knownConditionTrueFalse] sim4.2012-10-10/sim4b1.c:181:10: note: Assuming that condition 'diff' is not redundant sim4.2012-10-10/sim4b1.c:222:14: note: Condition 'diff' is always true sim4.2012-10-10/sim4b1.c:448:23: style: Condition 'diff' is always true [knownConditionTrueFalse] sim4.2012-10-10/sim4b1.c:181:10: note: Assuming that condition 'diff' is not redundant sim4.2012-10-10/sim4b1.c:448:23: note: Condition 'diff' is always true sim4.2012-10-10/sim4b1.c:1311:53: style: Condition '!exons->next_exon' is always false [knownConditionTrueFalse] sim4.2012-10-10/sim4b1.c:1487:35: style: Condition 'xto<=t2' is always true [knownConditionTrueFalse] sim4.2012-10-10/sim4b1.c:1486:16: note: Assuming that condition 't2score==g->score' is always true [knownConditionTrueFalse] sim4.2012-10-10/sim4b1.c:2764:34: note: Assuming that condition 'c->score>g->score' is not redundant sim4.2012-10-10/sim4b1.c:2762:27: note: Assuming that condition 'g->score>c->score' is not redundant sim4.2012-10-10/sim4b1.c:2766:34: note: Condition 'c->score==g->score' is always true sim4.2012-10-10/sim4b1.c:156:22: style: Variable 'Lblock' is reassigned a value before the old one has been used. [redundantAssignment] sim4.2012-10-10/sim4b1.c:147:26: note: Lblock is assigned sim4.2012-10-10/sim4b1.c:156:22: note: Lblock is overwritten sim4.2012-10-10/sim4b1.c:398:48: style: Variable 'tmp_Lblock' is reassigned a value before the old one has been used. [redundantAssignment] sim4.2012-10-10/sim4b1.c:392:38: note: tmp_Lblock is assigned sim4.2012-10-10/sim4b1.c:398:48: note: tmp_Lblock is overwritten sim4.2012-10-10/sim4b1.c:2580:18: style: Variable 'head' is reassigned a value before the old one has been used. [redundantAssignment] sim4.2012-10-10/sim4b1.c:2578:11: note: head is assigned sim4.2012-10-10/sim4b1.c:2580:18: note: head is overwritten sim4.2012-10-10/sim4b1.c:2723:35: style:inconclusive: Function 'sync_slide_intron' argument 1 names different: declaration 'w' definition 'in_w'. [funcArgNamesDifferent] sim4.2012-10-10/sim4b1.c:49:37: note: Function 'sync_slide_intron' argument 1 names different: declaration 'w' definition 'in_w'. sim4.2012-10-10/sim4b1.c:2723:35: note: Function 'sync_slide_intron' argument 1 names different: declaration 'w' definition 'in_w'. sim4.2012-10-10/sim4b1.c:2911:30: style:inconclusive: Function 'slide_intron' argument 1 names different: declaration 'w' definition 'in_w'. [funcArgNamesDifferent] sim4.2012-10-10/sim4b1.c:48:32: note: Function 'slide_intron' argument 1 names different: declaration 'w' definition 'in_w'. sim4.2012-10-10/sim4b1.c:2911:30: note: Function 'slide_intron' argument 1 names different: declaration 'w' definition 'in_w'. sim4.2012-10-10/sim4b1.c:656:18: style: Local variable 'W' shadows outer variable [shadowVariable] sim4.2012-10-10/sim4b1.c:40:32: note: Shadowed declaration sim4.2012-10-10/sim4b1.c:656:18: note: Shadow variable sim4.2012-10-10/sim4b1.c:111:11: style: Variable 'sig' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:866:16: style: Variable 't' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:951:38: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:954:25: style: Variable 't' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:1160:12: style: Variable 's1' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:1160:17: style: Variable 's2' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:1160:22: style: Variable 'q1' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:1160:27: style: Variable 'q2' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:1267:22: style: Variable 'tmp_block1' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:1402:75: style: Parameter 'gene' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:1725:14: style: Variable 't1' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:1768:34: style: Parameter 'tmp_block' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:1768:51: style: Parameter 'tmp_block1' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:1772:13: style: Variable 's1' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:1772:18: style: Variable 's2' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:1772:23: style: Variable 'e1' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:1821:27: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:1821:38: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:2188:29: style: Parameter 's1' can be declared as pointer to const. However it seems that 'extend_bw' is a callback function, if 's1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sim4.2012-10-10/sim4b1.c:294:27: note: You might need to cast the function pointer here sim4.2012-10-10/sim4b1.c:2188:29: note: Parameter 's1' can be declared as pointer to const sim4.2012-10-10/sim4b1.c:2188:40: style: Parameter 's2' can be declared as pointer to const. However it seems that 'extend_bw' is a callback function, if 's2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sim4.2012-10-10/sim4b1.c:294:27: note: You might need to cast the function pointer here sim4.2012-10-10/sim4b1.c:2188:40: note: Parameter 's2' can be declared as pointer to const sim4.2012-10-10/sim4b1.c:2350:29: style: Parameter 's1' can be declared as pointer to const. However it seems that 'extend_fw' is a callback function, if 's1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sim4.2012-10-10/sim4b1.c:377:27: note: You might need to cast the function pointer here sim4.2012-10-10/sim4b1.c:2350:29: note: Parameter 's1' can be declared as pointer to const sim4.2012-10-10/sim4b1.c:2350:40: style: Parameter 's2' can be declared as pointer to const. However it seems that 'extend_fw' is a callback function, if 's2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sim4.2012-10-10/sim4b1.c:377:27: note: You might need to cast the function pointer here sim4.2012-10-10/sim4b1.c:2350:40: note: Parameter 's2' can be declared as pointer to const sim4.2012-10-10/sim4b1.c:2643:40: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:2689:45: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:2704:47: style: Parameter 'rblock' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:2726:33: style: Variable 'cell' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:2861:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:2862:12: style: Variable 'q' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:2930:19: style: Variable 's' can be declared as pointer to const [constVariablePointer] sim4.2012-10-10/sim4b1.c:3070:41: style: Parameter 'tgt' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:3081:51: style: Parameter 'rblock' can be declared as pointer to const [constParameterPointer] sim4.2012-10-10/sim4b1.c:708:45: style: Variable 'len1' is assigned a value that is never used. [unreadVariable] sim4.2012-10-10/sim4b1.c:708:58: style: Variable 'len2' is assigned a value that is never used. [unreadVariable] diff: DONE