(&mut self, floats: Vec<f32>)
| 170 | } |
| 171 | |
| 172 | pub fn append_float_array(&mut self, floats: Vec<f32>) { |
| 173 | let var = format!( |
| 174 | "FDPConsumeFloatingArray(fuzz_float_array_{0}, fuzz_float_array_size_{0}, fdp);", |
| 175 | self.get_fuzz_id_inc() |
| 176 | ); |
| 177 | self.fuzz_stmts.push(var); |
| 178 | let mut bytes: Vec<u8> = Vec::new(); |
| 179 | for float in floats { |
| 180 | bytes.extend(float.to_le_bytes()); |
| 181 | } |
| 182 | self.append_fuzz_seeds_with_magic(&bytes); |
| 183 | } |
| 184 | |
| 185 | fn append_double_var(&mut self, d: f64) { |
| 186 | let var = format!( |
nothing calls this directly
no test coverage detected