The labels that are jumped to from the select_val match then are checking that the rest of the string matches. The select_val is being generated in label(28)’s block because there is a group of clauses for render_template generated in Phoenix.Template.__before_compile__ My theory is that this is how BEAM makes pattern matching efficient in general: it finds prefixes that can be matched against wit