mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Update mem2reg test
This commit is contained in:
@@ -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(", ")
|
||||
)
|
||||
|
||||
@@ -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