mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Bump
This commit is contained in:
@@ -1064,7 +1064,7 @@ impl Byte {
|
||||
izip!(fields, offsets).for_each(|(f, o)| {
|
||||
let result = Self::value_to_bytes(f.deref(), structs);
|
||||
let size_of_data = f.deref().dtype().size_align_of(structs).unwrap().0;
|
||||
let _unused = values.splice(*o..(*o + size_of_data), result.into_iter());
|
||||
let _unused = values.splice(*o..(*o + size_of_data), result);
|
||||
});
|
||||
|
||||
values
|
||||
@@ -1134,7 +1134,7 @@ impl Memory {
|
||||
let block = self.inner[bid].as_mut().unwrap();
|
||||
|
||||
if 0 <= offset && end <= block.len() {
|
||||
let _unused = block.splice(offset as usize..end, bytes.into_iter());
|
||||
let _unused = block.splice(offset as usize..end, bytes);
|
||||
Ok(())
|
||||
} else {
|
||||
Err(())
|
||||
|
||||
@@ -57,7 +57,7 @@ impl Translate<TranslationUnit> for Visualizer {
|
||||
}
|
||||
}
|
||||
|
||||
let inner = vec![subgraphs, edges].concat().join("\n");
|
||||
let inner = [subgraphs, edges].concat().join("\n");
|
||||
|
||||
Ok(format!("digraph G {{\n{inner}\n}}"))
|
||||
}
|
||||
@@ -176,7 +176,7 @@ impl Visualizer {
|
||||
}
|
||||
|
||||
// TODO: Add init information (bid_init, allocations)
|
||||
let inner = vec![subgraphs, vec![label], edges].concat().join("\n");
|
||||
let inner = [subgraphs, vec![label], edges].concat().join("\n");
|
||||
|
||||
Ok(format!("subgraph \"cluster.{name}\" {{\n{inner}\n}}"))
|
||||
}
|
||||
@@ -208,7 +208,7 @@ impl Visualizer {
|
||||
|
||||
let edges = (0..block.instructions.len())
|
||||
.map(|iid| self.translate_instruction_node(name, *bid, iid))
|
||||
.chain([self.translate_block_exit_node(name, *bid)].into_iter())
|
||||
.chain([self.translate_block_exit_node(name, *bid)])
|
||||
.collect::<Vec<String>>()
|
||||
.join(" -> ");
|
||||
|
||||
@@ -221,7 +221,7 @@ impl Visualizer {
|
||||
.block_first_instruction
|
||||
.insert((name.to_string(), *bid), first_instruction);
|
||||
|
||||
let inner = vec![header, nodes, vec![edges]].concat().join("\n");
|
||||
let inner = [header, nodes, vec![edges]].concat().join("\n");
|
||||
|
||||
Ok(format!("subgraph \"cluster.{name}.{bid}\" {{\n{inner}\n}}"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user