mirror of
https://github.com/kmc7468/cs420.git
synced 2026-11-04 08:10:29 +09:00
Update mem2reg test
This commit is contained in:
1 parent
7c53818f73
commit
61b2162408
4 files changed
+252
-29
No files matched your search
+1
-1
@@ -321,7 +321,7 @@ impl fmt::Display for JumpArg {
|
||||
self.bid,
|
||||
self.args
|
||||
.iter()
|
||||
.map(|a| a.to_string())
|
||||
.map(|a| format!("{}:{}", a, a.dtype()))
|
||||
.collect::<Vec<_>>()
|
||||
.join(", ")
|
||||
)
|
||||
|
||||
+2
-2
@@ -259,12 +259,12 @@ impl WriteString for BlockExit {
|
||||
default,
|
||||
cases,
|
||||
} => format!(
|
||||
"switch {} default: {} [\n{}\n ]",
|
||||
"switch {} default {} [\n{}\n ]",
|
||||
value.write_string(),
|
||||
default,
|
||||
cases
|
||||
.iter()
|
||||
.map(|(v, b)| format!(" {}:{}, {}", v, v.dtype(), b))
|
||||
.map(|(v, b)| format!(" {}:{} {}", v, v.dtype(), b))
|
||||
.collect::<Vec<_>>()
|
||||
.join("\n")
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user