/span>
<span id="cb198-5"><a href="print-statements.html#cb198-5" aria-hidden="true" tabindex="-1"></a><span class="kw">print</span>(<span class="st">&quot;log density after =&quot;</span>, target());</span></code></pre></div>
<p>The example has a bug in that <code>y[2]</code> is not defined before the
vector <code>y</code> is used in the sampling statement. By printing the
value of the log probability accumulator before and after each
sampling statement, it’s possible to isolate where the log probability