mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-14 22:38:46 +00:00
Update assertion message
This commit is contained in:
@@ -635,7 +635,7 @@ impl IrgenFunc<'_> {
|
||||
/// %b0:i1:unit = store %b0:p1:i32 %l1:i32*
|
||||
/// %b0:i2:unit = store %b0:p2:i32 %l2:i32*
|
||||
/// ```
|
||||
///
|
||||
///
|
||||
/// In particular, note that it is added to the local allocation list and store them to the
|
||||
/// initial phinodes.
|
||||
///
|
||||
|
||||
14
src/tests.rs
14
src/tests.rs
@@ -186,7 +186,7 @@ pub fn test_irgen(path: &Path) {
|
||||
// size. For this reason, we make `fuzzer` generate the C source code which returns values
|
||||
// typecasted to `unsigned char`. However, during `creduce` to reduce the code, typecasting may
|
||||
// be nullified. So, we truncate the result value to byte size one more time here.
|
||||
println!("clang: {}, kecc: {}", status as u8, value as u8);
|
||||
println!("clang (expected): {}, kecc: {}", status as u8, value as u8);
|
||||
assert_eq!(status as u8, value as u8);
|
||||
}
|
||||
|
||||
@@ -371,7 +371,10 @@ pub fn test_asmgen(path: &Path) {
|
||||
drop(buffer);
|
||||
temp_dir.close().expect("temp dir deletion failed");
|
||||
|
||||
println!("kecc interp: {}, qemu: {}", value as u8, qemu_status as u8);
|
||||
println!(
|
||||
"kecc interp (expected): {}, qemu: {}",
|
||||
value as u8, qemu_status as u8
|
||||
);
|
||||
assert_eq!(value as u8, qemu_status as u8);
|
||||
}
|
||||
|
||||
@@ -463,7 +466,7 @@ pub fn test_end_to_end(path: &Path) {
|
||||
// typecasted to `unsigned char`. However, during `creduce` to reduce the code, typecasting may
|
||||
// be nullified. So, we truncate the result value to byte size one more time here.
|
||||
println!(
|
||||
"clang: {}, kecc interp: {}",
|
||||
"clang (expected): {}, kecc interp: {}",
|
||||
clang_status as u8, value as u8
|
||||
);
|
||||
assert_eq!(clang_status as u8, value as u8);
|
||||
@@ -531,6 +534,9 @@ pub fn test_end_to_end(path: &Path) {
|
||||
drop(buffer);
|
||||
temp_dir.close().expect("temp dir deletion failed");
|
||||
|
||||
println!("clang: {}, qemu: {}", clang_status as u8, qemu_status as u8);
|
||||
println!(
|
||||
"clang (expected): {}, qemu: {}",
|
||||
clang_status as u8, qemu_status as u8
|
||||
);
|
||||
assert_eq!(clang_status as u8, qemu_status as u8);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user