% Requires: \usepackage{float}  % for [H]

\begin{algorithm2e}[H]
% \color{blue}
\DontPrintSemicolon
\SetAlgoVlined
\SetAlgoSkip{0pt}
\caption{VLM Query for MPD Communication}
\label{alg:mpd_comm_query}

\KwIn{CT scan $\mathcal{I}$, VLM $\mathcal{V}$, threshold $\tau$}
\KwOut{MPD communication flag $C$, confidence score $s$}

\SetKwFunction{FScore}{ScorePrompt}

\Fn{\FScore{$\mathcal{I}, \mathcal{V}, q$}}{
  \Return{$\mathcal{V}.\textsc{ImageTextMatching}(\mathcal{I}, [q])$}\;
}

\BlankLine
$q^+ \gets$ ``There is evidence the cyst communicates with the main pancreatic duct (MPD).''\;
$q^- \gets$ ``There is no evidence of MPD communication with the cyst.''\;

$p^+ \gets$ \FScore{$\mathcal{I}, \mathcal{V}, q^+$}\;
$p^- \gets$ \FScore{$\mathcal{I}, \mathcal{V}, q^-$}\;

$s \gets p^+ - p^-$ \tcp*{consistency margin}
$C \gets (s > \tau)$\;

\Return{$(C, s)$}\;
\end{algorithm2e}
