Skip to main content

Module translate_bodies

Module translate_bodies 

Source
Expand description

Translate functions from the rust compiler MIR to our internal representation. Our internal representation is very close to MIR, but is more convenient for us to handle, and easier to maintain - rustc’s representation can evolve independently.

Re-exportsΒ§

use itertools::Itertools; πŸ”’
use rustc_attr_ir::LangItem; πŸ”’
use std::borrow::Cow; πŸ”’
use std::collections::VecDeque; πŸ”’
use std::mem; πŸ”’
use std::ops::Deref; πŸ”’
use std::ops::DerefMut; πŸ”’
use std::panic; πŸ”’
use std::panic; πŸ”’
use std::rc::Rc; πŸ”’
use crate::frontend as front; πŸ”’
use rustc_middle::mir; πŸ”’
use rustc_middle::ty; πŸ”’
use rustc_span::Symbol; πŸ”’
use rustc_span::kw; πŸ”’
use rustc_span::sym; πŸ”’
use super::user_type_annotations::UserTypeAnnotations; πŸ”’
use charon_lib::formatter::FmtCtx; πŸ”’
use charon_lib::formatter::IntoFormatter; πŸ”’
use charon_lib::formatter::compute_local_names; πŸ”’
use charon_lib::name_matcher::NamePattern; πŸ”’
use charon_lib::options::TranslateOptions; πŸ”’
use charon_lib::pretty::FmtWithCtx; πŸ”’
use charon_lib::transform::ctx::BodyTransformCtx; πŸ”’
use super::translate_ctx::*; πŸ”’
use charon_lib::ullbc_ast::*; πŸ”’

StructsΒ§

BlockTransCtx πŸ”’
A translation context for function blocks.
BodyTransCtx πŸ”’
A translation context for function bodies.