TOPIC 51/5126 MINNOT STARTED

Static analysis: control flow, data flow and maintainability

Find control flow and data flow anomalies, work out cyclomatic complexity, and propose ways to make code easier to maintain.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: proofreading a map before a trip. You can check a map without driving. You may find a road that leads nowhere, a loop with no exit, or a bridge that is not on any road. You can also find a place where the map shows a rubbish bin used before it was put in place. Nobody had to make the trip to see that.

Daily List is a made-up to-do app. Mei, the test lead, asks Tom to check Leo's new reminder code with a tool before anyone runs it. Tom wants three things from the tool. He wants routes that make no sense, values that are used in the wrong order, and parts that will be hard to change later.

This is . It checks code without running it. The tool or a person looks at its form and structure.

The picture has a limit. A map has no moving parts, but code can behave in ways a read cannot predict.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

PLAIN WORDS · 1 in this section
proofreading
reading closely to find mistakes before printing

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Checking a map before a trip: spotting roads that lead nowhere, tools used before they are put out, and a town too tangled to cross.

  1. Dead ends and routes
  2. Order of use
  3. Tangles and repeats
Proofreading a map

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A road that cannot be entered from the starting pointUnreachable code, a control flow anomaly
A count of separate routes through a townCyclomatic complexity
A tool used before it was put outA data flow anomaly, use before define
Two towns that share every roadHigh coupling; cohesion measures each part’s internal focus separately

WHERE THIS PICTURE STOPS

  • A map has no moving parts, but code can behave in ways a read cannot show.
  • A map shows every road, but a tool may not know whether a path is possible.

HOOK

Dead ends, routes, order of use, tangles.

TELL A FRIEND

Think of proofreading a map before a trip: you can spot dead ends and tangles without driving.

OFTEN MIXED UP WITH Static analysis for testers: linters, scanners and quality gates. The earlier lesson shows the tools that run on every change. This lesson shows what the analysis finds and how to read it.

PRACTISE AND KEEP

Sources for this topic — 6 sources
  1. Market practice

    ISTQB Certified Tester Advanced Level Technical Test Analyst (CTAL-TTA) Syllabus v4.0 ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CTAL-TTA v4.0, 30 June 2021), version checked against the document's own front matter, read in full text: section 3.2.1 (TTA-3.2.1, K3) control flow analysis, printed page 22: analysis of a control flow graph, usually by a tool; anomalies (badly designed loops with several entry points or no end, ambiguous call targets, wrong sequencing, unreachable code, uncalled functions)

    Version 4.0 syllabus (footer date 2021-06-30), read in full text. Used for the objective ids, the review checklists in sections 5.2.1 and 5.2.2, dynamic and static analysis, white-box detail and compatibility. Paraphrased, not quoted. · Checked 2026-10-18

    Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CTAL-TTA v4.0, dated 2021-06-30 in its footer), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it.

    Specialist review 6 November 2026: Actual CTAL-TTA4.0 §3.3 dynamic-analysis body reviewed; no claim of a full-syllabus review. Professional certification guidance, not binding legislation or a formal ISO standard. Inherited full-text descriptions are not a claim that this audit read every PDF page.

  2. Market practice

    ISTQB Certified Tester Advanced Level Technical Test Analyst (CTAL-TTA) Syllabus v4.0 ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CTAL-TTA v4.0, 30 June 2021), version checked against the document's own front matter, read in full text: section 3.2.2 (TTA-3.2.2, K3) data flow analysis, printed pages 22-23: the life of a variable (declared, defined, used, destroyed); three atomic actions (define, use, kill); anomalies (definition followed by definition or kill with no use, definition with no kill, use or kill before definition, use or kill after a kill); compilers and separate tools; false reports from infeasible paths; trouble with data structures and shared variables

    Version 4.0 syllabus (footer date 2021-06-30), read in full text. Used for the objective ids, the review checklists in sections 5.2.1 and 5.2.2, dynamic and static analysis, white-box detail and compatibility. Paraphrased, not quoted. · Checked 2026-10-18

    Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CTAL-TTA v4.0, dated 2021-06-30 in its footer), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it.

    Specialist review 6 November 2026: Actual CTAL-TTA4.0 §3.3 dynamic-analysis body reviewed; no claim of a full-syllabus review. Professional certification guidance, not binding legislation or a formal ISO standard. Inherited full-text descriptions are not a claim that this audit read every PDF page.

  3. Market practice

    ISTQB Certified Tester Advanced Level Technical Test Analyst (CTAL-TTA) Syllabus v4.0 ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CTAL-TTA v4.0, 30 June 2021), version checked against the document's own front matter, read in full text: section 3.2.3 (TTA-3.2.3, K3) improving maintainability, printed pages 23-24: poor code is harder to maintain; coding standards for naming, commenting, indentation and modularization; tools raise warnings, not defects; repeated code, coupling and cohesion metrics, class visibility and structural complexity; website tree balance; security checks such as code injection and cross-site scripting

    Version 4.0 syllabus (footer date 2021-06-30), read in full text. Used for the objective ids, the review checklists in sections 5.2.1 and 5.2.2, dynamic and static analysis, white-box detail and compatibility. Paraphrased, not quoted. · Checked 2026-10-18

    Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CTAL-TTA v4.0, dated 2021-06-30 in its footer), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it.

    Specialist review 6 November 2026: Actual CTAL-TTA4.0 §3.3 dynamic-analysis body reviewed; no claim of a full-syllabus review. Professional certification guidance, not binding legislation or a formal ISO standard. Inherited full-text descriptions are not a claim that this audit read every PDF page.

  4. Market practice

    Glossary of testing terms from the International Software Testing Qualifications Board (equivalence partition, equivalence partitioning, boundary value) ↗ — International Software Testing Qualifications Board (ISTQB) · Glossary entries for static analysis, cyclomatic complexity and data flow analysis (search excerpt, page not opened)

    The board's glossary of testing terms. Cited for two definitions. An equivalence partition is a subset of a value domain for which a component or system is expected to treat all values the same. A boundary value is the minimum or maximum value of an ordered equivalence partition. · Checked 2026-10-12

    Seen as a search excerpt; the page was not opened. The authoring container could not resolve this publisher's host name when a fetch was tried on 12 October 2026 for related hosts, so this is a reachability gap and not a statement about the publisher. The glossary has an older and a newer version of the entry for equivalence partitioning; the newer one defines the partition rather than the technique.

  5. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    What this simplifies: Daily List and its code are invented. Real tools use many more rules and report many more warnings.

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

  6. Market practice

    ISTQB CTAL-TTA syllabus v 4.0 ↗ — International Software Testing Qualifications Board · ISTQB CTAL-TTA v4.0, 30 June 2021; publisher download opened 6 November 2026. Sections 2.4–2.8 and 3.2. Syllabus guidance does not substitute for a safety standard or the delivered build evaluation policy.

    Sections 2.4–2.8 and 3.2 on conditions, MC/DC, API testing, coverage selection and static analysis. Safety recommendations are the syllabus summary, not an independent reading of IEC 61508. · Checked 2026-11-06

    Version 4.0, 30 June 2021; front matter checked. Official download opened 6 November 2026. Paraphrased for teaching; no licence claim.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.