2021-08-30 11:49:05 +02:00
|
|
|
#![crate_type = "cdylib"]
|
|
|
|
#![no_std]
|
|
|
|
|
|
|
|
#[panic_handler]
|
|
|
|
fn my_panic(_info: &core::panic::PanicInfo) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[no_mangle]
|
|
|
|
pub fn multer(a: i128, b: i128) -> i128 {
|
2023-08-19 16:10:49 +08:00
|
|
|
// Trigger usage of the __multi3 compiler intrinsic which then leads to an imported function
|
2023-10-17 11:31:30 -04:00
|
|
|
// such as panic or __multi3 (externally defined) in case of a bug. We verify that
|
|
|
|
// no imports exist in our verifier.
|
2021-08-30 11:49:05 +02:00
|
|
|
a * b
|
|
|
|
}
|