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

Method record_vars_with_bitfields

src/Bookkeeper.cpp:477–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477void
478Bookkeeper::record_vars_with_bitfields(const Type *type)
479{
480 assert(type);
481 const Type *base_type = type->get_base_type();
482 if (!base_type->is_aggregate() ||
483 (!base_type->has_bitfields()))
484 return;
485
486 int level = type->get_indirect_level();
487 incr_counter(Bookkeeper::vars_with_bitfields, level);
488 if (type->is_full_bitfields_struct())
489 incr_counter(Bookkeeper::vars_with_full_bitfields, level);
490}
491
492void
493Bookkeeper::record_type_with_bitfields(const Type *typ)

Callers

nothing calls this directly

Calls 6

incr_counterFunction · 0.85
get_base_typeMethod · 0.80
has_bitfieldsMethod · 0.80
is_aggregateMethod · 0.45
get_indirect_levelMethod · 0.45

Tested by

no test coverage detected