(&mut self, int_var: &IntegerLiteral, ty: &str)
| 376 | } |
| 377 | |
| 378 | fn create_integer_fuzzer_var(&mut self, int_var: &IntegerLiteral, ty: &str) -> Result<()> { |
| 379 | match ty { |
| 380 | "int8_t" => self |
| 381 | .fuzzer_shim |
| 382 | .append_integer_var(int_var.get_value::<i8>()?), |
| 383 | "uint8_t" => self |
| 384 | .fuzzer_shim |
| 385 | .append_integer_var(int_var.get_value::<u8>()?), |
| 386 | "int16_t" | "short" => self |
| 387 | .fuzzer_shim |
| 388 | .append_integer_var(int_var.get_value::<i16>()?), |
| 389 | "uint16_t" | "unsigned short" => self |
| 390 | .fuzzer_shim |
| 391 | .append_integer_var(int_var.get_value::<u16>()?), |
| 392 | "int32_t" | "int" => self |
| 393 | .fuzzer_shim |
| 394 | .append_integer_var(int_var.get_value::<i32>()?), |
| 395 | "uint32_t" | "unsigned int" => self |
| 396 | .fuzzer_shim |
| 397 | .append_integer_var(int_var.get_value::<u32>()?), |
| 398 | "int64_t" | "long" | "long long" => self |
| 399 | .fuzzer_shim |
| 400 | .append_integer_var(int_var.get_value::<i64>()?), |
| 401 | "uint64_t" | "size_t" | "unsigned long" | "unsigned long long" => self |
| 402 | .fuzzer_shim |
| 403 | .append_integer_var(int_var.get_value::<u64>()?), |
| 404 | _ => unimplemented!("{ty} unimplemented type"), |
| 405 | } |
| 406 | Ok(()) |
| 407 | } |
| 408 | |
| 409 | fn init_fuzzable_list_var( |
| 410 | &mut self, |
no test coverage detected