pub fn rr_traced(&mut self, register: Register) -> (MemoryReadRecord, u32) {
        let record = self.rt.rr_traced(
            register,
            self.current_shard,
            self.clk,
            Some(&mut self.local_memory_access),
        );
        (record, record.value)
    }
Read a register and record the memory access.
crates/core/executor/src/syscalls/context.rs