(err: uc_err)
| 99 | } |
| 100 | |
| 101 | pub fn map_uc_err(err: uc_err) -> anyhow::Result<()> { |
| 102 | if err == UC_ERR_OK { |
| 103 | return Ok(()); |
| 104 | } |
| 105 | Err(anyhow::format_err!("{}", fuzzware::uc_error_str(err))) |
| 106 | } |
| 107 | |
| 108 | fn read_err_to_uc_err(err: icicle_vm::cpu::mem::MemError) -> uc_err { |
| 109 | match err { |