Allow to easily check the generated assembly
This commit is contained in:
parent
345914c97a
commit
6674696505
3 changed files with 7 additions and 1 deletions
|
|
@ -43,6 +43,7 @@ fn rays<'a, T>(
|
|||
.map(|ray| ray.map(|(x, y)| &table[x][y]))
|
||||
}
|
||||
|
||||
#[inline(never)]
|
||||
pub fn part1(input: Parsed) {
|
||||
let expected = b"XMAS";
|
||||
let mut ray_count = 0;
|
||||
|
|
@ -60,6 +61,7 @@ pub fn part1(input: Parsed) {
|
|||
print_res!("Word count: {ray_count}");
|
||||
}
|
||||
|
||||
#[inline(never)]
|
||||
pub fn part2(input: Parsed) {
|
||||
let mut cross_count = 0;
|
||||
let expected = *b"MAS";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue