MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / append_float_var

Method append_float_var

src/program/shim.rs:156–164  ·  view source on GitHub ↗
(&mut self, f: f32)

Source from the content-addressed store, hash-verified

154 }
155
156 fn append_float_var(&mut self, f: f32) {
157 let var = format!(
158 "FDPConsumeFloatingPoint(fuzz_float_{}, fdp);",
159 self.get_fuzz_id_inc()
160 );
161 self.fuzz_stmts.push(var);
162 let bytes = f.to_le_bytes();
163 self.append_fuzz_seeds(&bytes);
164 }
165
166 pub fn append_float_vars(&mut self, floats: Vec<f32>) {
167 for f in floats {

Callers 1

append_float_varsMethod · 0.80

Calls 2

append_fuzz_seedsMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected