Can any one tell me how to make a figure exactly like this picture, with 2 arrows etc.
This is my unsuccessful attempt:
\begin{figure}[ht]
\centering
\begin{minipage}[b]{0.35\linewidth}
\begin{lstlisting}[language=C, frame=single,
xleftmargin=5.0ex,basicstyle=\footnotesize\ttfamily,
numbers=left,stepnumber=0, morekeywords={assert} ]
x=x+y;
if(x!=1){
x=2;
if(z) x++;
}
\end{lstlisting}
\end{minipage}
\begin{minipage}[b]{0.35\linewidth}
\begin{lstlisting}[mathescape % to use mathmode inside listing
,language=C, frame=single,
xleftmargin=5.0ex,basicstyle=\footnotesize\ttfamily,
numbers=left,stepnumber=0, morekeywords={assert} ]
x$_1$=x$_0$+y$_0$;
if(x$_1$!=1){
x$_2$=2;
if(z$_0$) x$_3$=x$_2$+1;
}
\end{lstlisting}
\end{minipage}
\fbox{
\begin{minipage}[b]{0.4\linewidth}
\begin{align*}
x_1 &= x_0 + y_0 \wedge
\\ x_2 &= ((x_1 \neq 1)?2:x_1) \wedge
\\ x_3 &= ((x_1 \neq 1 \wedge z_0)?x_2+1:x_2)
\end{align*}
\end{minipage}
}
\end{figure}
Thank you.
very vague in word search
) figure in Question title as something likeequations in box
/code snippets in box
orany known technical tile
for easy searchability of future Users