Skip to content

Commit

Permalink
How to output verbose CFGs
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored May 23, 2024
1 parent 1876844 commit f817a86
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/manual/creating-a-checker.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2139,9 +2139,17 @@
for dotfile in *.dot; do dot -Tpdf -o "$dotfile.pdf" "$dotfile"; done
\end{Verbatim}

\noindent
or (for more verbose output)

\begin{Verbatim}
javacheck -processor mypackage.MyProcessor -Acfgviz=org.checkerframework.dataflow.cfg.visualize.DOTCFGVisualizer,outdir=.,verbose MyClass.java
for dotfile in *.dot; do dot -Tpdf -o "$dotfile.pdf" "$dotfile"; done
\end{Verbatim}

\noindent
where the first command creates file \<MyClass.dot> that
represents the CFG, and the last command draws the CFG in a PDF file.
represents the CFG, and the second command writes the CFG to a PDF file.
The \<dot> program is part of \href{http://www.graphviz.org}{Graphviz}.

In the output, conditional basic blocks are represented as octagons with
Expand Down

0 comments on commit f817a86

Please sign in to comment.