fn scope( scope: &VariableScope, declared: &BTreeMap<String, String>, live: Option<&[Variable]>, mode: Mode, report: &mut Report, ) -> Vec<Operation>