source code analysis -凯发k8网页登录

improve code quality without code execution

source code analysis (also known as static code analysis) lets you analyze source code for quality, reliability, and security. you can identify defects and security vulnerabilities that can compromise the safety and security of your application. formal methods–based deep semantic static code analysis also enables you to diagnose run-time errors such as overflows, divide by zero, and illegally dereferenced pointers. static analysis can be a cost-effective approach to measure and track software quality metrics without the overhead of writing test cases or instrumenting your code. because this analysis is automated, you can analyze code without executing the program or developing test cases.

basic source analysis techniques include:

  • generating code quality metrics, such as counting the number of lines of code, determining comment density, and assessing code complexity
  • verifying compliance with code standards such as misra c®/c or jsf  (joint strike fighter air vehicle c )

sophisticated techniques couple source code analysis with formal methods that apply theoretical computer science fundamentals to solve problems such as proving that the software will not fail with a run-time error.

the combination of source code analysis and formal methods enables you to:

this comprehensive approach makes sure that every failure point in the code is identified as proven to fail, proven not to fail, may never execute (dead code), or unproven. this is particularly important for safety because one escaped defect can compromise your system, leading to tragic consequences. growing concerns about cybersecurity bring similar challenges because it takes just one software vulnerability to exploit your application.

for details about source code analysis tools that use formal methods, see polyspace® products: polyspace bug finder™, polyspace code prover™, and polyspace products for ada.


examples and how to

see also: static analysis with polyspace products, verification, validation, and test, embedded systems, abstract interpretation, code review, cyclomatic complexity, formal methods, software metrics, software qa, software quality objectives, static code analysis

网站地图