fn get_element_ptr(base: u32, offset: u32, scale: u32) -> Result<u32, Trap>