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

Method match

src/CVQualifiers.cpp:155–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155bool
156CVQualifiers::match(const CVQualifiers& qfer) const
157{
158 if (wildcard) {
159 return true;
160 }
161 if (CGOptions::match_exact_qualifiers()) {
162 return is_consts == qfer.get_consts() && is_volatiles == qfer.get_volatiles();
163 }
164 // return true if both variables are non-pointer (has only one level qualifier)
165 if (is_consts.size() == qfer.get_consts().size() && is_consts.size()==1) {
166 assert(is_consts.size() == is_volatiles.size());
167 return true;
168 }
169 return (!accept_stricter && stricter_than(qfer)) || (accept_stricter && qfer.stricter_than(*this));
170}
171
172bool
173CVQualifiers::match_indirect(const CVQualifiers& qfer) const

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
stricter_thanMethod · 0.80

Tested by

no test coverage detected