MCPcopy Create free account
hub / github.com/csmith-project/csmith / get_number

Method get_number

src/SimpleDeltaSequence.cpp:169–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169int
170SimpleDeltaSequence::get_number(int bound)
171{
172
173 SimpleDeltaSequence::ValuePair *p = sequence_[current_pos_];
174 assert("SimpleDeltaSequence: get_number p is NULL!" && p);
175 int b = p->get_bound();
176 assert("SimpleDeltaSequence: bound doesn't match!" && bound == b);
177 seq_map_[current_pos_] = p;
178 ++current_pos_;
179 return p->get_value();
180}
181
182void
183SimpleDeltaSequence::clear()

Callers

nothing calls this directly

Calls 2

get_boundMethod · 0.80
get_valueMethod · 0.45

Tested by

no test coverage detected