Forti4D analyses a directory of Fortran source files and writes a structured set of CSV reports, a Markdown executive summary, optional call graph DOT files, and a self-contained interactive HTML report — all in a single command. This guide walks you through your first run from install to opening the report in a browser.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/acdeveloper-sci/forti4d/llms.txt
Use this file to discover all available pages before exploring further.
Install Forti4D
Install the package from PyPI with pip or uv:Verify the install by listing the pipeline steps:You should see all 19 steps printed to the terminal along with the active
FORT_SRC and FORT_OUT paths.Run the full pipeline
Point The pipeline runs all 19 steps in dependency order. Each step prints its name, description, a pass/fail indicator, and elapsed time:When all steps finish, a summary table is printed:
--project at the root of your Fortran source tree and --output at the directory where you want results written:Explore the output files
The
results/ directory now contains the full analysis. Key files to look at first:| File | Description |
|---|---|
report.html | Self-contained HTML report — filterable and sortable unit table |
PROJECT_SUMMARY.md | Executive summary in Markdown |
report_prioritization.csv | Units ranked by composite migration risk score |
report_consolidated.csv | All metrics joined — one row per unit |
report_reachability.csv | Dead code detection — units unreachable from any entry point |
report_complexity.csv | McCabe cyclomatic complexity per unit |
report_clones.csv | Identical, similar, and diverged duplicate unit pairs |
dep_02_unit_graph.csv | Resolved call graph (CALL, USE, FUNC_CALL edges) |
dep_03_impact_matrix.csv | Fan-In and Fan-Out per unit |
graph_*.dot | Graphviz call graphs (full, simplified, and per entry point) |
Running Selected Steps
You do not need to run all 19 steps every time. Forti4D provides three flags for controlling which steps execute: Resume from a step — skip all earlier steps and start from the named step (inclusive):symbols and skip visual_graph:
Quiet Mode
By default, each step prints its full diagnostic output to the console. Pass--quiet to suppress this and show only step names, pass/fail indicators, and elapsed time:
--quiet only affects the console. Every run writes a full-detail log at DEBUG level to results/forti4d.log regardless of this flag. Use --log-file PATH to write the log to a different location, or --no-log-file to disable it entirely.Parallel Execution
Theinventory, profiler, and blocks steps support per-file parallelism. Use --workers to set the number of parallel worker processes:
FORT_WORKERS environment variable, which is useful for CI environments or shell aliases:
--workers argument always takes precedence over FORT_WORKERS. If neither is set, the pipeline runs sequentially (one worker).
Continue on Error
By default, the pipeline stops at the first failing step. Use--continue-on-error to proceed past failures and collect results from as many steps as possible: