Files
korg-paper/figures/drop.tex
Your Name 2d4eb9b507 more
2025-02-24 10:55:54 -05:00

29 lines
1.2 KiB
TeX

%!TEX root = ../main.tex
\begin{figure}[h]
\centering
\begin{tikzpicture}[scale=0.15]
\tikzstyle{every node}+=[inner sep=0pt]
\draw [black] (10.7,-13) circle (4.7);
\draw (10.7,-13) node {consume};
\draw [black] (35.6,-13) circle (4.7);
\draw (35.6,-13) node {end};
\draw [black] (8.628,-8.802) arc (234:-54:3.525);
\draw (10.7,-1.93) node [above, align=center] {\textit{consume} \texttt{msg} from \texttt{chan} \\ \texttt{lim-=1}};
\fill [black] (12.77,-8.8) -- (13.65,-8.45) -- (12.84,-7.86);
\draw [black] (15.4,-13) -- (30.9,-13);
\fill [black] (30.9,-13) -- (30.1,-12.5) -- (30.1,-13.5);
\draw (23.15,-12.5) node [above] {\texttt{lim=0}};
\draw [black] (12.772,-17.198) arc (54:-234:3.525);
\draw (10.7,-24.08) node [below] {\textit{pass} \texttt{msg} on \texttt{chan}};
\fill [black] (8.63,-17.2) -- (7.75,-17.55) -- (8.56,-18.14);
\draw [black] (0.2,-13) -- (6,-13);
\fill [black] (6,-13) -- (5.2,-12.5) -- (5.2,-13.5);
\end{tikzpicture}
\caption{high-level state machine diagram of the \textit{drop} attacker gadget, attacking a channel \texttt{chan}. A natural number \texttt{lim} is pre-defined.}
\label{fig:drop}
\end{figure}