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

Method is_valid_volatile

src/Variable.cpp:1132–1146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1130}
1131
1132bool
1133Variable::is_valid_volatile(void) const
1134{
1135 if (is_inside_union_field()) {
1136 const Variable *uv = get_container_union();
1137 assert(uv && "NULL union var!");
1138 return uv->is_valid_volatile();
1139 }
1140
1141 assert(init && "NULL init expression!");
1142 if (!is_const() || init->not_equals(0) || (type->eType != ePointer))
1143 return true;
1144
1145 return false;
1146}
1147
1148int
1149Variable::output_volatile_address(ostream &out, int indent, const string &fp_string, vector<std::string> &seen_names) const

Callers

nothing calls this directly

Calls 1

not_equalsMethod · 0.45

Tested by

no test coverage detected