pub fn patch_immutable_bytecodes(&self, compiled_code: &mut [u8], deployed_code: &mut [u8]) {
        for spans in self.immutable_refs.values() {
            for span in spans {
                let start = span.start;
                let end = start + span.length;
                if end <= compiled_code.len() && end <= deployed_code.len() {
                    compiled_code[start..end].fill(0);
                    deployed_code[start..end].fill(0);
                }
            }
        }
    }
Patches the provided `compiled_code` and `deployed_code` slices by zeroing
out the bytes corresponding to each immutable reference.
core/lib/types/src/contract_verification/api.rs