use crate::records::cfg_allocator::CfgAllocator;
use crate::type_aliases::block_id::BlockId;
use crate::type_aliases::definition::Definition;
use alloc::vec::Vec;
use luaur_ast::records::ast_expr::AstExpr;
use luaur_common::records::dense_hash_map::DenseHashMap;
#[derive(Debug, Clone)]
pub struct ControlFlowGraph {
pub use_defs: DenseHashMap<*mut AstExpr, *mut Definition>,
pub blocks: Vec<BlockId>,
pub entry_idx: usize,
pub(crate) allocator: *mut CfgAllocator,
}
unsafe impl Send for ControlFlowGraph {}
unsafe impl Sync for ControlFlowGraph {}