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

Method get_array_arg

src/program/infer/mod.rs:33–45  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

31
32impl Constraint {
33 pub fn get_array_arg(&self) -> usize {
34 match self {
35 Constraint::ArrayLen(tuple) => tuple.0,
36 Constraint::ArrayIndex(tuple) => tuple.0,
37 Constraint::WeakArrayLen(tuple) => tuple.0,
38 Constraint::AllocSize(pos) => *pos,
39 Constraint::FileName(pos) => *pos,
40 Constraint::FileDesc(pos) => *pos,
41 Constraint::Format(pos) => *pos,
42 Constraint::Invalid(tuple) => tuple.0,
43 Constraint::LoopCount(pos) => *pos,
44 }
45 }
46
47 pub fn get_integer_arg(&self) -> usize {
48 match self {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected