2024-04-12 15:55 ftp://ftp.de.debian.org/debian/pool/main/r/rubiks/rubiks_20070912.orig.tar.bz2 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 -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-102-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.55 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.13.0 head-info: 646f869 (2024-04-12 10:43:30 +0200) count: 378 345 elapsed-time: 120.7 305.7 head-timing-info: old-timing-info: head results: rubiks-20070912/dietz/cu2/cu2.cpp:31:3: performance: Variable 'solution' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] rubiks-20070912/dietz/cu2/cu2.h:27:14: style:inconclusive: Technically the member function 'cu2::operator==' can be const. [functionConst] rubiks-20070912/dietz/cu2/cu2.cpp:45:17: note: Technically the member function 'cu2::operator==' can be const. rubiks-20070912/dietz/cu2/cu2.h:27:14: note: Technically the member function 'cu2::operator==' can be const. rubiks-20070912/dietz/cu2/cu2.h:31:14: style:inconclusive: Technically the member function 'cu2::issolved' can be const. [functionConst] rubiks-20070912/dietz/cu2/cu2.cpp:128:17: note: Technically the member function 'cu2::issolved' can be const. rubiks-20070912/dietz/cu2/cu2.h:31:14: note: Technically the member function 'cu2::issolved' can be const. rubiks-20070912/dietz/cu2/cu2.h:33:8: performance:inconclusive: Technically the member function 'cu2::copytemp' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/cu2/cu2.cpp:179:11: note: Technically the member function 'cu2::copytemp' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/cu2/cu2.h:33:8: note: Technically the member function 'cu2::copytemp' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/cu2/cu2.cpp:130:13: style: The scope of the variable 'd' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:359:7: style: The scope of the variable 'axis_direction' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:359:23: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:382:10: style: The scope of the variable 'a' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:536:8: style: The scope of the variable 'slice_std' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:536:36: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:577:24: style: The scope of the variable 'slice_metr' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:577:36: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:619:8: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:619:15: style: The scope of the variable 'dir_std' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:644:8: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:644:29: style: The scope of the variable 'dir_rel' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:701:8: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:701:15: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:701:20: style: The scope of the variable 'slice_next' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:701:32: style: The scope of the variable 'dir_next' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:732:10: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:803:12: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:803:19: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:803:24: style: The scope of the variable 'slice_next' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:803:36: style: The scope of the variable 'dir_next' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:844:12: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:844:19: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:844:24: style: The scope of the variable 'slice_next' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:844:36: style: The scope of the variable 'dir_next' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:844:46: style: The scope of the variable 'slice_after' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:844:59: style: The scope of the variable 'dir_after' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:881:12: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:881:19: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:881:24: style: The scope of the variable 'slice_next' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:881:36: style: The scope of the variable 'dir_next' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/cu2.cpp:380:32: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/cu2/cu2.cpp:533:38: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/cu2/cu2.cpp:574:38: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/cu2/cu2.cpp:616:37: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/cu2/cu2.cpp:641:37: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/cu2/cu2.cpp:685:38: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/cu2/cu2.cpp:690:38: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/cu2/cu2.cpp:695:39: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/cu2/cu2.cpp:724:34: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/cu2/cu2.cpp:382:12: style: Variable 'a' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/cu2/main.cpp:81:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rubiks-20070912/dietz/cu2/main.cpp:356:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] rubiks-20070912/dietz/cu2/main.cpp:184:20: style: The scope of the variable 'isused' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/main.cpp:287:15: style: The scope of the variable 'out' can be reduced. [variableScope] rubiks-20070912/dietz/cu2/main.cpp:36:25: performance: Function parameter 'c' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/cu2/main.cpp:181:28: performance: Function parameter 'cmdln' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/cu2/main.cpp:268:26: style: Parameter 'argv' can be declared as const array [constParameter] rubiks-20070912/dietz/cu2/main.cpp:208:12: performance: Inefficient usage of string::find() in condition; string::starts_with() could be faster. [stlIfStrFind] rubiks-20070912/dietz/cu2/main.cpp:287:19: style: Variable 'out' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/main.cpp:81:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rubiks-20070912/dietz/mcube/main.cpp:368:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] rubiks-20070912/dietz/mcube/main.cpp:192:20: style: The scope of the variable 'isused' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/main.cpp:295:15: style: The scope of the variable 'out' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/main.cpp:36:27: performance: Function parameter 'c' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/mcube/main.cpp:189:28: performance: Function parameter 'cmdln' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/mcube/main.cpp:276:26: style: Parameter 'argv' can be declared as const array [constParameter] rubiks-20070912/dietz/mcube/main.cpp:216:12: performance: Inefficient usage of string::find() in condition; string::starts_with() could be faster. [stlIfStrFind] rubiks-20070912/dietz/mcube/main.cpp:295:19: style: Variable 'out' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:32:3: performance: Variable 'solution' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] rubiks-20070912/dietz/mcube/mcube.h:27:14: style:inconclusive: Technically the member function 'mcube::operator==' can be const. [functionConst] rubiks-20070912/dietz/mcube/mcube.cpp:46:19: note: Technically the member function 'mcube::operator==' can be const. rubiks-20070912/dietz/mcube/mcube.h:27:14: note: Technically the member function 'mcube::operator==' can be const. rubiks-20070912/dietz/mcube/mcube.h:31:14: style:inconclusive: Technically the member function 'mcube::issolved' can be const. [functionConst] rubiks-20070912/dietz/mcube/mcube.cpp:147:19: note: Technically the member function 'mcube::issolved' can be const. rubiks-20070912/dietz/mcube/mcube.h:31:14: note: Technically the member function 'mcube::issolved' can be const. rubiks-20070912/dietz/mcube/mcube.h:33:8: performance:inconclusive: Technically the member function 'mcube::copytemp' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/mcube/mcube.cpp:199:13: note: Technically the member function 'mcube::copytemp' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/mcube/mcube.h:33:8: note: Technically the member function 'mcube::copytemp' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/mcube/mcube.cpp:3272:32: style: Expression is always false because 'else if' condition matches previous condition at line 3270. [multiCondition] rubiks-20070912/dietz/mcube/mcube.cpp:3286:32: style: Expression is always false because 'else if' condition matches previous condition at line 3284. [multiCondition] rubiks-20070912/dietz/mcube/mcube.cpp:2936:9: style: Variable 'l_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2931:11: note: l_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2936:9: note: l_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2936:9: style: Variable 'ly' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2931:11: note: ly is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2936:9: note: ly is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2937:9: style: Variable 'r_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2932:11: note: r_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2937:9: note: r_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2937:9: style: Variable 'ry' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2932:11: note: ry is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2937:9: note: ry is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2953:9: style: Variable 'l_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2948:11: note: l_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2953:9: note: l_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2953:9: style: Variable 'ly' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2948:11: note: ly is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2953:9: note: ly is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2954:9: style: Variable 'r_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2949:11: note: r_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2954:9: note: r_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2954:9: style: Variable 'ry' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2949:11: note: ry is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2954:9: note: ry is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2984:9: style: Variable 'l_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2962:13: note: l_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2984:9: note: l_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2984:9: style: Variable 'lx' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2962:13: note: lx is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2984:9: note: lx is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2984:9: style: Variable 'l_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2968:13: note: l_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2984:9: note: l_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2984:9: style: Variable 'lx' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2968:13: note: lx is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2984:9: note: lx is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2984:9: style: Variable 'ly' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2968:13: note: ly is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2984:9: note: ly is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2985:9: style: Variable 'r_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2974:13: note: r_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2985:9: note: r_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2985:9: style: Variable 'rx' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2974:13: note: rx is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2985:9: note: rx is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2985:9: style: Variable 'r_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2980:13: note: r_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2985:9: note: r_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2985:9: style: Variable 'rx' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2980:13: note: rx is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2985:9: note: rx is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2985:9: style: Variable 'ry' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:2980:13: note: ry is assigned rubiks-20070912/dietz/mcube/mcube.cpp:2985:9: note: ry is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:3069:15: style: Variable 'r_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:3065:17: note: r_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:3069:15: note: r_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:3095:13: style: Variable 'r_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:3078:13: note: r_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:3095:13: note: r_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:3095:13: style: Variable 'r_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:3085:17: note: r_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:3095:13: note: r_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:3095:13: style: Variable 'r_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:3090:17: note: r_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:3095:13: note: r_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:3112:13: style: Variable 'r_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:3095:13: note: r_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:3112:13: note: r_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:3112:13: style: Variable 'r_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:3102:17: note: r_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:3112:13: note: r_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:3112:13: style: Variable 'r_fnd' is reassigned a value before the old one has been used. [redundantAssignment] rubiks-20070912/dietz/mcube/mcube.cpp:3107:17: note: r_fnd is assigned rubiks-20070912/dietz/mcube/mcube.cpp:3112:13: note: r_fnd is overwritten rubiks-20070912/dietz/mcube/mcube.cpp:2701:25: style: Same expression 'cube[2][1][0]==3' found multiple times in chain of '&&' operators. [duplicateExpression] rubiks-20070912/dietz/mcube/mcube.cpp:2886:27: style: Same expression 'cube[2][1][0]==3' found multiple times in chain of '&&' operators. [duplicateExpression] rubiks-20070912/dietz/mcube/mcube.cpp:149:13: style: The scope of the variable 'd' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:565:7: style: The scope of the variable 'axis_direction' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:565:23: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:588:10: style: The scope of the variable 'a' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1117:8: style: The scope of the variable 'slice_std' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1117:36: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1164:24: style: The scope of the variable 'slice_metr' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1164:36: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1212:8: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1212:15: style: The scope of the variable 'dir_std' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1237:8: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1237:29: style: The scope of the variable 'dir_rel' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1300:8: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1300:15: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1300:20: style: The scope of the variable 'slice_next' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1300:32: style: The scope of the variable 'dir_next' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1331:10: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1402:12: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1402:19: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1402:24: style: The scope of the variable 'slice_next' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1402:36: style: The scope of the variable 'dir_next' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1443:12: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1443:19: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1443:24: style: The scope of the variable 'slice_next' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1443:36: style: The scope of the variable 'dir_next' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1443:46: style: The scope of the variable 'slice_after' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1443:59: style: The scope of the variable 'dir_after' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1480:12: style: The scope of the variable 'slice' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1480:19: style: The scope of the variable 'dir' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1480:24: style: The scope of the variable 'slice_next' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1480:36: style: The scope of the variable 'dir_next' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:2909:9: style: The scope of the variable 'l_fnd' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:2909:16: style: The scope of the variable 'r_fnd' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:2909:23: style: The scope of the variable 'lx' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:2909:27: style: The scope of the variable 'ly' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:2909:31: style: The scope of the variable 'lz' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:2909:35: style: The scope of the variable 'rx' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:2909:39: style: The scope of the variable 'ry' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:2909:43: style: The scope of the variable 'rz' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:3051:9: style: The scope of the variable 'r_fnd' can be reduced. [variableScope] rubiks-20070912/dietz/mcube/mcube.cpp:1333:10: style: Local variable 'dL' shadows outer function [shadowFunction] rubiks-20070912/dietz/mcube/mcube.h:54:14: note: Shadowed declaration rubiks-20070912/dietz/mcube/mcube.cpp:1333:10: note: Shadow variable rubiks-20070912/dietz/mcube/mcube.cpp:1333:14: style: Local variable 'dR' shadows outer function [shadowFunction] rubiks-20070912/dietz/mcube/mcube.h:55:14: note: Shadowed declaration rubiks-20070912/dietz/mcube/mcube.cpp:1333:14: note: Shadow variable rubiks-20070912/dietz/mcube/mcube.cpp:586:34: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/mcube/mcube.cpp:1114:40: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/mcube/mcube.cpp:1161:40: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/mcube/mcube.cpp:1209:39: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/mcube/mcube.cpp:1234:39: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/mcube/mcube.cpp:1284:40: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/mcube/mcube.cpp:1289:40: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/mcube/mcube.cpp:1294:41: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/mcube/mcube.cpp:1323:36: performance: Function parameter 's' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/mcube/mcube.cpp:588:12: style: Variable 'a' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:2918:13: style: Variable 'l_fnd' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:2936:9: style: Variable 'l_fnd' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:2953:9: style: Variable 'l_fnd' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:2984:9: style: Variable 'l_fnd' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:2992:11: style: Variable 'l_fnd' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3005:11: style: Variable 'l_fnd' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3112:13: style: Variable 'r_fnd' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3118:17: style: Variable 'r_fnd' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3234:24: style: Variable 'b_fnd' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3239:20: style: Variable 'bx' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3243:20: style: Variable 'bx' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3264:18: style: Variable 'ax' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3268:18: style: Variable 'bx' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3288:18: style: Variable 'ax' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3293:19: style: Variable 'b_fnd' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3294:34: style: Variable 'bz' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3316:19: style: Variable 'b_fnd' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/mcube/mcube.cpp:3317:34: style: Variable 'bz' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:18:8: warning: Member variable 'Cubex::fx' is not initialized in the constructor. [uninitMemberVar] rubiks-20070912/dietz/solver/cubex.cpp:18:8: warning: Member variable 'Cubex::fy' is not initialized in the constructor. [uninitMemberVar] rubiks-20070912/dietz/solver/cubex.cpp:18:8: warning: Member variable 'Cubex::fz' is not initialized in the constructor. [uninitMemberVar] rubiks-20070912/dietz/solver/cubex.cpp:18:8: warning: Member variable 'Cubex::Tmp' is not initialized in the constructor. [uninitMemberVar] rubiks-20070912/dietz/solver/cubex.cpp:24:3: performance: Variable 'solution' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] rubiks-20070912/dietz/solver/cubex.h:31:14: style:inconclusive: Technically the member function 'Cubex::operator==' can be const. [functionConst] rubiks-20070912/dietz/solver/cubex.cpp:37:19: note: Technically the member function 'Cubex::operator==' can be const. rubiks-20070912/dietz/solver/cubex.h:31:14: note: Technically the member function 'Cubex::operator==' can be const. rubiks-20070912/dietz/solver/cubex.h:35:14: style:inconclusive: Technically the member function 'Cubex::IsSolved' can be const. [functionConst] rubiks-20070912/dietz/solver/cubex.cpp:146:19: note: Technically the member function 'Cubex::IsSolved' can be const. rubiks-20070912/dietz/solver/cubex.h:35:14: note: Technically the member function 'Cubex::IsSolved' can be const. rubiks-20070912/dietz/solver/cubex.h:43:14: performance:inconclusive: Technically the member function 'Cubex::UL' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:522:19: note: Technically the member function 'Cubex::UL' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:43:14: note: Technically the member function 'Cubex::UL' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:44:14: performance:inconclusive: Technically the member function 'Cubex::UR' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:523:19: note: Technically the member function 'Cubex::UR' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:44:14: note: Technically the member function 'Cubex::UR' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:45:14: performance:inconclusive: Technically the member function 'Cubex::DL' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:524:19: note: Technically the member function 'Cubex::DL' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:45:14: note: Technically the member function 'Cubex::DL' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:46:14: performance:inconclusive: Technically the member function 'Cubex::DR' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:525:19: note: Technically the member function 'Cubex::DR' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:46:14: note: Technically the member function 'Cubex::DR' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:47:14: performance:inconclusive: Technically the member function 'Cubex::LU' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:526:19: note: Technically the member function 'Cubex::LU' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:47:14: note: Technically the member function 'Cubex::LU' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:48:14: performance:inconclusive: Technically the member function 'Cubex::LD' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:527:19: note: Technically the member function 'Cubex::LD' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:48:14: note: Technically the member function 'Cubex::LD' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:49:14: performance:inconclusive: Technically the member function 'Cubex::RU' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:528:19: note: Technically the member function 'Cubex::RU' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:49:14: note: Technically the member function 'Cubex::RU' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:50:14: performance:inconclusive: Technically the member function 'Cubex::RD' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:529:19: note: Technically the member function 'Cubex::RD' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:50:14: note: Technically the member function 'Cubex::RD' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:51:14: performance:inconclusive: Technically the member function 'Cubex::FC' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:530:19: note: Technically the member function 'Cubex::FC' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:51:14: note: Technically the member function 'Cubex::FC' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:52:14: performance:inconclusive: Technically the member function 'Cubex::FA' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:531:19: note: Technically the member function 'Cubex::FA' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:52:14: note: Technically the member function 'Cubex::FA' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:53:14: performance:inconclusive: Technically the member function 'Cubex::BC' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:532:19: note: Technically the member function 'Cubex::BC' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:53:14: note: Technically the member function 'Cubex::BC' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:54:14: performance:inconclusive: Technically the member function 'Cubex::BA' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:533:19: note: Technically the member function 'Cubex::BA' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:54:14: note: Technically the member function 'Cubex::BA' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:55:14: performance:inconclusive: Technically the member function 'Cubex::ML' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:534:19: note: Technically the member function 'Cubex::ML' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:55:14: note: Technically the member function 'Cubex::ML' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:56:14: performance:inconclusive: Technically the member function 'Cubex::MR' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:535:19: note: Technically the member function 'Cubex::MR' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:56:14: note: Technically the member function 'Cubex::MR' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:57:14: performance:inconclusive: Technically the member function 'Cubex::MU' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:536:19: note: Technically the member function 'Cubex::MU' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:57:14: note: Technically the member function 'Cubex::MU' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:58:14: performance:inconclusive: Technically the member function 'Cubex::MD' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:537:19: note: Technically the member function 'Cubex::MD' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:58:14: note: Technically the member function 'Cubex::MD' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:59:14: performance:inconclusive: Technically the member function 'Cubex::MC' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:538:19: note: Technically the member function 'Cubex::MC' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:59:14: note: Technically the member function 'Cubex::MC' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:60:14: performance:inconclusive: Technically the member function 'Cubex::MA' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:539:19: note: Technically the member function 'Cubex::MA' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:60:14: note: Technically the member function 'Cubex::MA' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:61:14: performance:inconclusive: Technically the member function 'Cubex::CL' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:540:19: note: Technically the member function 'Cubex::CL' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:61:14: note: Technically the member function 'Cubex::CL' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:62:14: performance:inconclusive: Technically the member function 'Cubex::CR' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:541:19: note: Technically the member function 'Cubex::CR' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:62:14: note: Technically the member function 'Cubex::CR' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:63:14: performance:inconclusive: Technically the member function 'Cubex::CU' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:542:19: note: Technically the member function 'Cubex::CU' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:63:14: note: Technically the member function 'Cubex::CU' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:64:14: performance:inconclusive: Technically the member function 'Cubex::CD' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:543:19: note: Technically the member function 'Cubex::CD' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:64:14: note: Technically the member function 'Cubex::CD' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:65:14: performance:inconclusive: Technically the member function 'Cubex::CC' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:544:19: note: Technically the member function 'Cubex::CC' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:65:14: note: Technically the member function 'Cubex::CC' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:66:14: performance:inconclusive: Technically the member function 'Cubex::CA' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:545:19: note: Technically the member function 'Cubex::CA' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:66:14: note: Technically the member function 'Cubex::CA' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:87:16: performance:inconclusive: Technically the member function 'Cubex::Efficient' can be static (but you may consider moving to unnamed namespace). [functionStatic] rubiks-20070912/dietz/solver/cubex.cpp:898:21: note: Technically the member function 'Cubex::Efficient' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.h:87:16: note: Technically the member function 'Cubex::Efficient' can be static (but you may consider moving to unnamed namespace). rubiks-20070912/dietz/solver/cubex.cpp:149:13: style: The scope of the variable 'd' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:557:7: style: The scope of the variable 'n' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:557:10: style: The scope of the variable 'o' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:578:10: style: The scope of the variable 'a' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:610:14: style: The scope of the variable 'x' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:610:17: style: The scope of the variable 'y' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:610:20: style: The scope of the variable 'z' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:697:7: style: The scope of the variable 'b' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:909:32: style: The scope of the variable 'f' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:909:35: style: The scope of the variable 'f1' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1036:36: style: The scope of the variable 'f' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1036:39: style: The scope of the variable 'f1' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1036:43: style: The scope of the variable 'f2' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1163:36: style: The scope of the variable 'f' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1163:39: style: The scope of the variable 'f1' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1236:31: style: The scope of the variable 'r' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1285:27: style: The scope of the variable 'l' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1347:24: style: The scope of the variable 'l' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1390:33: style: The scope of the variable 'd' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1390:43: style: The scope of the variable 'r' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1480:14: style: The scope of the variable 'b' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:1655:52: style: The scope of the variable 'n' can be reduced. [variableScope] rubiks-20070912/dietz/solver/cubex.cpp:69:43: style:inconclusive: Function 'operator!=' argument 1 names different: declaration 'q' definition 'a'. [funcArgNamesDifferent] rubiks-20070912/dietz/solver/cubex.h:32:38: note: Function 'operator!=' argument 1 names different: declaration 'q' definition 'a'. rubiks-20070912/dietz/solver/cubex.cpp:69:43: note: Function 'operator!=' argument 1 names different: declaration 'q' definition 'a'. rubiks-20070912/dietz/solver/cubex.cpp:687:36: performance: Function parameter 'a' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/solver/cubex.cpp:898:38: performance: Function parameter 'a' should be passed by const reference. [passedByValue] rubiks-20070912/dietz/solver/cubex.cpp:775:11: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] rubiks-20070912/dietz/solver/cubex.cpp:557:20: style: Variable 's' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:578:12: style: Variable 'a' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:691:13: style: Variable 's1' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:691:29: style: Variable 's2' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:691:45: style: Variable 's3' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:692:13: style: Variable 't1' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:692:29: style: Variable 't2' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:693:13: style: Variable 'zz' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:693:29: style: Variable 'yy' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:693:45: style: Variable 'xx' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:694:13: style: Variable 'ww' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:694:29: style: Variable 'vv' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:694:45: style: Variable 'uu' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:695:13: style: Variable 'mm' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:695:29: style: Variable 'll' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:695:45: style: Variable 'kk' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:696:13: style: Variable 'jj' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:696:29: style: Variable 'ii' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:696:45: style: Variable 'hh' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/cubex.cpp:1656:27: style: Variable 't' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/loadsave.cpp:44:32: style: Parameter 'cube' can be declared as pointer to const [constParameterPointer] rubiks-20070912/dietz/solver/main.cpp:201:26: style: Parameter 'argv' can be declared as const array [constParameter] rubiks-20070912/dietz/solver/main.cpp:128:12: performance: Inefficient usage of string::find() in condition; string::starts_with() could be faster. [stlIfStrFind] rubiks-20070912/dietz/solver/main.cpp:62:36: warning: Uninitialized variable: mov [uninitvar] rubiks-20070912/dietz/solver/main.cpp:30:21: note: Assuming condition is false rubiks-20070912/dietz/solver/main.cpp:62:36: note: Uninitialized variable: mov rubiks-20070912/dietz/solver/main.cpp:29:12: style: Variable 'a' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dietz/solver/main.cpp:195:10: style: Variable 'cm' is assigned a value that is never used. [unreadVariable] rubiks-20070912/dik/cube.c:9:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/cube.c:19:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/cube.c:178:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/cube.c:274:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/permcube.c:3:1: portability: Omitted return type of function 'perm_cube' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/phase1.c:19:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/phase1.c:54:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/phase1.c:209:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mm_twists [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/phase1.c:264:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/phase1.c:264:5: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] rubiks-20070912/dik/phase2.c:19:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/phase2.c:70:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mm_cperms [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/phase2.c:111:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mm_cperms [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/phase2.c:37:11: style: Unused variable: k [unusedVariable] rubiks-20070912/dik/prntsol.c:5:1: portability: Omitted return type of function 'prnt_sol' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/prntsol.c:18:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/rancube.c:4:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/setcube.c:38:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable orient_found [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/setcube.c:56:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable orient_found [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/setcube.c:74:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable orient_found [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/setcube.c:30:7: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] rubiks-20070912/dik/setcube.c:48:7: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] rubiks-20070912/dik/setcube.c:68:5: style: Unused variable: i [unusedVariable] rubiks-20070912/dik/setcube.c:68:8: style: Unused variable: j [unusedVariable] rubiks-20070912/dik/size222.c:20:1: portability: Omitted return type of function 'do_pr' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/size222.c:32:1: portability: Omitted return type of function 'try_one' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/size222.c:67:1: portability: Omitted return type of function 'try' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/size222.c:96:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/size222.c:29:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/size222.c:39:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_TWISTS [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/size222.c:74:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_TWISTS [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/size222.c:106:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/size333c.c:119:5: error: Unmatched '}'. Configuration: '__GNUC__=1'. [syntaxError] rubiks-20070912/dik/sizedom.c:123:5: error: Unmatched '}'. Configuration: '__GNUC__=1'. [syntaxError] rubiks-20070912/dik/sizekoc1.c:31:1: portability: Omitted return type of function 'do_pr' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/sizekoc1.c:43:1: portability: Omitted return type of function 'try_one' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/sizekoc1.c:94:1: portability: Omitted return type of function 'try' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/sizekoc1.c:123:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/trans/twist.c:26:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_TWISTS [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizekoc1.c:40:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizekoc1.c:51:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FLIPS [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizekoc1.c:101:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FLIPS [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizekoc1.c:133:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/trans/twist.c:20:14: style: Unused variable: val [unusedVariable] rubiks-20070912/dik/sizekoc2.c:31:1: portability: Omitted return type of function 'do_pr' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/sizekoc2.c:43:1: portability: Omitted return type of function 'try_one' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/sizekoc2.c:131:1: portability: Omitted return type of function 'try' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/sizekoc2.c:160:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/trans/cperm.c:24:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_CPERMS [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizekoc2.c:40:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizekoc2.c:51:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_EPERMS [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizekoc2.c:138:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_EPERMS [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizekoc2.c:170:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizesquare.c:19:1: portability: Omitted return type of function 'do_pr' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/sizesquare.c:31:1: portability: Omitted return type of function 'try_one' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/sizesquare.c:59:1: portability: Omitted return type of function 'try' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/sizesquare.c:88:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] rubiks-20070912/dik/sizesquare.c:28:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizesquare.c:38:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_CPERMS2 [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizesquare.c:66:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_EPERMS2 [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizesquare.c:97:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/sizesquare.c:36:8: style: Unused variable: j [unusedVariable] rubiks-20070912/dik/trans/choice.c:24:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_CHOICES [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/trans/choice.c:17:11: style: Unused variable: k [unusedVariable] rubiks-20070912/dik/trans/choice.c:19:14: style: Unused variable: val [unusedVariable] rubiks-20070912/dik/trans/cperm.c:17:11: style: Unused variable: k [unusedVariable] rubiks-20070912/dik/trans/eperm.c:24:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_EPERMS [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/trans/eperm.c:17:11: style: Unused variable: k [unusedVariable] rubiks-20070912/dik/trans/flip.c:26:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FLIPS [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/trans/flip.c:17:11: style: Unused variable: k [unusedVariable] rubiks-20070912/dik/trans/flip.c:20:14: style: Unused variable: val [unusedVariable] rubiks-20070912/dik/trans/sperm.c:24:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_SPERMS [valueFlowBailoutIncompleteVar] rubiks-20070912/dik/trans/sperm.c:17:11: style: Unused variable: k [unusedVariable] rubiks-20070912/dik/trans/twist.c:17:11: style: Unused variable: k [unusedVariable] rubiks-20070912/reid/optimal.c:328:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rubiks-20070912/reid/optimal.c:3680:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] rubiks-20070912/reid/optimal.c:3893:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rubiks-20070912/reid/optimal.c:4268:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rubiks-20070912/reid/optimal.c:4293:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] rubiks-20070912/reid/optimal.c:2176:25: warning: Either the condition 'count>=495' is redundant or the array 'conv_tab[495]' is accessed at index 495, which is out of bounds. [arrayIndexOutOfBoundsCond] rubiks-20070912/reid/optimal.c:2174:27: note: Assuming that condition 'count>=495' is not redundant rubiks-20070912/reid/optimal.c:2176:25: note: Array index out of bounds rubiks-20070912/reid/optimal.c:2178:36: warning: Either the condition 'count>=495' is redundant or the array 'conv_tab[495]' is accessed at index 495, which is out of bounds. [arrayIndexOutOfBoundsCond] rubiks-20070912/reid/optimal.c:2174:27: note: Assuming that condition 'count>=495' is not redundant rubiks-20070912/reid/optimal.c:2178:36: note: Array index out of bounds rubiks-20070912/reid/optimal.c:2211:23: warning: Either the condition 'eloc_conv_or_unconv>=495' is redundant or the array 'eloc_conv[495]' is accessed at index 495, which is out of bounds. [arrayIndexOutOfBoundsCond] rubiks-20070912/reid/optimal.c:2208:58: note: Assuming that condition 'eloc_conv_or_unconv>=495' is not redundant rubiks-20070912/reid/optimal.c:2211:23: note: Array index out of bounds rubiks-20070912/reid/optimal.c:2211:23: warning: Either the condition 'eloc_conv_or_unconv<0' is redundant or the array 'eloc_conv[495]' is accessed at index -1, which is out of bounds. [negativeIndex] rubiks-20070912/reid/optimal.c:2208:29: note: Assuming that condition 'eloc_conv_or_unconv<0' is not redundant rubiks-20070912/reid/optimal.c:2211:23: note: Negative array index rubiks-20070912/reid/optimal.c:2223:27: warning: Either the condition 'eloc_conv_or_unconv>=4096' is redundant or the array 'eloc_unconv[4096]' is accessed at index 4096, which is out of bounds. [arrayIndexOutOfBoundsCond] rubiks-20070912/reid/optimal.c:2220:58: note: Assuming that condition 'eloc_conv_or_unconv>=4096' is not redundant rubiks-20070912/reid/optimal.c:2223:27: note: Array index out of bounds rubiks-20070912/reid/optimal.c:2223:27: warning: Either the condition 'eloc_conv_or_unconv<0' is redundant or the array 'eloc_unconv[4096]' is accessed at index -1, which is out of bounds. [negativeIndex] rubiks-20070912/reid/optimal.c:2220:29: note: Assuming that condition 'eloc_conv_or_unconv<0' is not redundant rubiks-20070912/reid/optimal.c:2223:27: note: Negative array index rubiks-20070912/reid/optimal.c:2857:24: warning: Either the condition 'count>=64430' is redundant or the array 'edge_to_fulledge[64430]' is accessed at index 64430, which is out of bounds. [arrayIndexOutOfBoundsCond] rubiks-20070912/reid/optimal.c:2854:18: note: Assuming that condition 'count>=64430' is not redundant rubiks-20070912/reid/optimal.c:2857:24: note: Array index out of bounds rubiks-20070912/reid/optimal.c:2858:19: warning: Either the condition 'count>=64430' is redundant or the array 'stabilizers[64430]' is accessed at index 64430, which is out of bounds. [arrayIndexOutOfBoundsCond] rubiks-20070912/reid/optimal.c:2854:18: note: Assuming that condition 'count>=64430' is not redundant rubiks-20070912/reid/optimal.c:2858:19: note: Array index out of bounds rubiks-20070912/reid/optimal.c:2859:22: warning: Either the condition 'count>=64430' is redundant or the array 'multiplicities[64430]' is accessed at index 64430, which is out of bounds. [arrayIndexOutOfBoundsCond] rubiks-20070912/reid/optimal.c:2854:18: note: Assuming that condition 'count>=64430' is not redundant rubiks-20070912/reid/optimal.c:2859:22: note: Array index out of bounds rubiks-20070912/reid/optimal.c:3136:36: warning: Either the condition 'count>=4' is redundant or the array 'temp_arr[4]' is accessed at index 4, which is out of bounds. [arrayIndexOutOfBoundsCond] rubiks-20070912/reid/optimal.c:3133:18: note: Assuming that condition 'count>=4' is not redundant rubiks-20070912/reid/optimal.c:3136:36: note: Array index out of bounds rubiks-20070912/reid/optimal.c:3159:16: warning: Either the condition 'count>=4' is redundant or the array 'temp_arr[4]' is accessed at index 4, which is out of bounds. [arrayIndexOutOfBoundsCond] rubiks-20070912/reid/optimal.c:3156:18: note: Assuming that condition 'count>=4' is not redundant rubiks-20070912/reid/optimal.c:3159:16: note: Array index out of bounds rubiks-20070912/reid/optimal.c:745:34: style: Condition 'p_user_options->search_limit<=0' is always true [knownConditionTrueFalse] rubiks-20070912/reid/optimal.c:744:32: note: Assignment 'p_user_options->search_limit=0', assigned value is 0 rubiks-20070912/reid/optimal.c:745:34: note: Condition 'p_user_options->search_limit<=0' is always true rubiks-20070912/reid/optimal.c:752:19: style: Condition 'p_user_options->use_symmetry' is always true [knownConditionTrueFalse] rubiks-20070912/reid/optimal.c:751:32: note: Assignment 'p_user_options->use_symmetry=1', assigned value is 1 rubiks-20070912/reid/optimal.c:752:19: note: Condition 'p_user_options->use_symmetry' is always true rubiks-20070912/reid/optimal.c:758:19: style: Condition 'p_user_options->one_solution_only' is always false [knownConditionTrueFalse] rubiks-20070912/reid/optimal.c:757:37: note: Assignment 'p_user_options->one_solution_only=0', assigned value is 0 rubiks-20070912/reid/optimal.c:758:19: note: Condition 'p_user_options->one_solution_only' is always false rubiks-20070912/reid/optimal.c:855:31: warning: Either the condition 'mem_ptr==NULL' is redundant or there is possible null pointer dereference: mem_ptr. [nullPointerRedundantCheck] rubiks-20070912/reid/optimal.c:851:13: note: Assuming that condition 'mem_ptr==NULL' is not redundant rubiks-20070912/reid/optimal.c:855:31: note: Null pointer dereference rubiks-20070912/reid/optimal.c:964:31: warning: Either the condition 'mem_ptr==NULL' is redundant or there is possible null pointer dereference: mem_ptr. [nullPointerRedundantCheck] rubiks-20070912/reid/optimal.c:959:13: note: Assuming that condition 'mem_ptr==NULL' is not redundant rubiks-20070912/reid/optimal.c:964:31: note: Null pointer dereference rubiks-20070912/reid/optimal.c:965:31: warning: Either the condition 'mem_ptr==NULL' is redundant or there is possible null pointer dereference: mem_ptr. [nullPointerRedundantCheck] rubiks-20070912/reid/optimal.c:959:13: note: Assuming that condition 'mem_ptr==NULL' is not redundant rubiks-20070912/reid/optimal.c:965:31: note: Null pointer dereference rubiks-20070912/reid/optimal.c:966:31: warning: Either the condition 'mem_ptr==NULL' is redundant or there is possible null pointer dereference: mem_ptr. [nullPointerRedundantCheck] rubiks-20070912/reid/optimal.c:959:13: note: Assuming that condition 'mem_ptr==NULL' is not redundant rubiks-20070912/reid/optimal.c:966:31: note: Null pointer dereference rubiks-20070912/reid/optimal.c:1819:30: warning: Either the condition 'mem_ptr==NULL' is redundant or there is possible null pointer dereference: mem_ptr. [nullPointerRedundantCheck] rubiks-20070912/reid/optimal.c:1815:13: note: Assuming that condition 'mem_ptr==NULL' is not redundant rubiks-20070912/reid/optimal.c:1819:30: note: Null pointer dereference rubiks-20070912/reid/optimal.c:311:38: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] rubiks-20070912/reid/optimal.c:358:35: style: Parameter 'array_in' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:381:36: style: Parameter 'array_in' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:408:37: style: Parameter 'array_in' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:453:39: style: Parameter 'perm0_in' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:453:56: style: Parameter 'perm1_in' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:469:41: style: Parameter 'arr_in' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:469:56: style: Parameter 'conjugator' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:536:28: style: Parameter 'p_cube' can be declared as pointer to const [constParameterPointer] rubiks-20070912/reid/optimal.c:569:29: style: Parameter 'cube0' can be declared as pointer to const [constParameterPointer] rubiks-20070912/reid/optimal.c:569:43: style: Parameter 'cube1' can be declared as pointer to const [constParameterPointer] rubiks-20070912/reid/optimal.c:1255:36: style: Parameter 'twists' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:1298:29: style: Parameter 'subgroup' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:1299:29: style: Parameter 'subgroup_list' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:1641:36: style: Parameter 'subgroup' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:1642:36: style: Parameter 'sym_on_twist' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:1659:37: style: Parameter 'subgroup' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:1856:26: style: Parameter 'array_in' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:2275:24: style: Parameter 'array_in' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:2526:25: style: Parameter 'array_in' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:2882:34: style: Parameter 'edge_to_fulledge' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:3144:29: style: Parameter 'array_in' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:3397:70: style: Parameter 'p_data' can be declared as pointer to const [constParameterPointer] rubiks-20070912/reid/optimal.c:3533:30: style: Parameter 'string' can be declared as const array [constParameter] rubiks-20070912/reid/optimal.c:3865:25: style: Variable 'twist_string' can be declared as const array [constVariable] rubiks-20070912/reid/optimal.c:3902:39: style: Parameter 'p_cube' can be declared as pointer to const [constParameterPointer] rubiks-20070912/reid/twist.c:529:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] rubiks-20070912/reid/twist.c:539:13: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] rubiks-20070912/reid/twist.c:110:39: style: Parameter 'perm_in' can be declared as const array [constParameter] rubiks-20070912/reid/twist.c:183:28: style: Parameter 'p_cube' can be declared as pointer to const [constParameterPointer] diff: 2.13.0 rubiks-20070912/dietz/cu2/cu2.cpp:201:16: style: Condition 's==N' is always true [knownConditionTrueFalse] rubiks-20070912/dietz/cu2/cu2.cpp:198:11: note: Assuming that condition 's==1' is not redundant rubiks-20070912/dietz/cu2/cu2.cpp:189:18: note: Assuming that condition 's>N' is not redundant rubiks-20070912/dietz/cu2/cu2.cpp:201:16: note: Condition 's==N' is always true 2.13.0 rubiks-20070912/dietz/cu2/cu2.cpp:225:16: style: Condition 's==N' is always true [knownConditionTrueFalse] rubiks-20070912/dietz/cu2/cu2.cpp:222:11: note: Assuming that condition 's==1' is not redundant rubiks-20070912/dietz/cu2/cu2.cpp:213:18: note: Assuming that condition 's>N' is not redundant rubiks-20070912/dietz/cu2/cu2.cpp:225:16: note: Condition 's==N' is always true head rubiks-20070912/dietz/cu2/cu2.cpp:695:39: performance: Function parameter 's' should be passed by const reference. [passedByValue] head rubiks-20070912/dietz/cu2/cu2.cpp:724:34: performance: Function parameter 's' should be passed by const reference. [passedByValue] head rubiks-20070912/dietz/cu2/main.cpp:356:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head rubiks-20070912/dietz/mcube/main.cpp:368:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head rubiks-20070912/dietz/mcube/mcube.cpp:1294:41: performance: Function parameter 's' should be passed by const reference. [passedByValue] head rubiks-20070912/dietz/mcube/mcube.cpp:1323:36: performance: Function parameter 's' should be passed by const reference. [passedByValue] head rubiks-20070912/dietz/mcube/mcube.cpp:1333:10: style: Local variable 'dL' shadows outer function [shadowFunction] rubiks-20070912/dietz/mcube/mcube.h:54:14: note: Shadowed declaration rubiks-20070912/dietz/mcube/mcube.cpp:1333:10: note: Shadow variable head rubiks-20070912/dietz/mcube/mcube.cpp:1333:14: style: Local variable 'dR' shadows outer function [shadowFunction] rubiks-20070912/dietz/mcube/mcube.h:55:14: note: Shadowed declaration rubiks-20070912/dietz/mcube/mcube.cpp:1333:14: note: Shadow variable head rubiks-20070912/dik/cube.c:178:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/cube.c:274:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/phase1.c:209:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mm_twists [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/phase1.c:264:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/phase1.c:54:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/phase2.c:111:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mm_cperms [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/phase2.c:70:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mm_cperms [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/setcube.c:56:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable orient_found [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/setcube.c:74:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable orient_found [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/size222.c:106:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/size222.c:39:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_TWISTS [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/size222.c:74:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_TWISTS [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/sizekoc1.c:101:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FLIPS [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/sizekoc1.c:133:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/sizekoc1.c:40:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/sizekoc1.c:51:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FLIPS [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/sizekoc2.c:138:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_EPERMS [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/sizekoc2.c:170:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/sizekoc2.c:40:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/sizekoc2.c:51:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_EPERMS [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/sizesquare.c:38:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_CPERMS2 [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/sizesquare.c:66:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_EPERMS2 [valueFlowBailoutIncompleteVar] head rubiks-20070912/dik/sizesquare.c:97:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.13.0 rubiks-20070912/reid/optimal.c:316:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIT_FAILURE [valueFlowBailoutIncompleteVar] head rubiks-20070912/reid/optimal.c:328:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head rubiks-20070912/reid/optimal.c:3680:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head rubiks-20070912/reid/optimal.c:3893:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head rubiks-20070912/reid/optimal.c:4268:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head rubiks-20070912/reid/optimal.c:4293:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] DONE