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

Method get_integer_arg

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

Source from the content-addressed store, hash-verified

45 }
46
47 pub fn get_integer_arg(&self) -> usize {
48 match self {
49 Constraint::ArrayLen(tuple) => tuple.1,
50 Constraint::ArrayIndex(tuple) => tuple.1,
51 Constraint::WeakArrayLen(tuple) => tuple.1,
52 Constraint::AllocSize(pos) => *pos,
53 Constraint::FileName(pos) => *pos,
54 Constraint::FileDesc(pos) => *pos,
55 Constraint::Format(pos) => *pos,
56 Constraint::Invalid(tuple) => tuple.1,
57 Constraint::LoopCount(pos) => *pos,
58 }
59 }
60
61 pub fn get_arg_tuple(&self) -> Option<&ArgTuple> {
62 match self {

Callers 3

dedup_constraintFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected