Allow to easily check the generated assembly

This commit is contained in:
Quentin Boyer 2024-12-05 00:12:10 +01:00
parent 345914c97a
commit 6674696505
3 changed files with 7 additions and 1 deletions

View file

@ -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";