This commit is contained in:
Nilton Constantino
2026-01-30 16:43:35 +00:00
parent 8c161e3e13
commit 926ad2a807
4 changed files with 270 additions and 23 deletions
+2 -1
View File
@@ -170,6 +170,7 @@ pub enum InstrKind {
pub const RC_SENSITIVE_OPS: &[&str] = &[
"LocalStore",
"GateStore",
"GateLoad",
"Pop",
"Ret",
"FrameSync",
@@ -373,7 +374,7 @@ mod tests {
// Required by PR-06: Documentation test or unit assertion that the RC-sensitive list exists
assert!(!RC_SENSITIVE_OPS.is_empty(), "RC-sensitive instructions list must not be empty");
let expected = ["LocalStore", "GateStore", "Pop", "Ret", "FrameSync"];
let expected = ["LocalStore", "GateStore", "GateLoad", "Pop", "Ret", "FrameSync"];
for op in expected {
assert!(RC_SENSITIVE_OPS.contains(&op), "RC-sensitive list must contain {}", op);
}