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

Method join

src/FactUnion.cpp:217–230  ·  view source on GitHub ↗

* return 1 if changed, 0 otherwise. currently facts from diff. categories are not joined */

Source from the content-addressed store, hash-verified

215 * return 1 if changed, 0 otherwise. currently facts from diff. categories are not joined
216 */
217int
218FactUnion::join(const Fact& f)
219{
220 if (is_related(f)) {
221 if (imply(f)) return 0;
222 if (f.imply(*this)) {
223 last_written_fid = ((const FactUnion&)f).get_last_written_fid();
224 } else {
225 set_bottom();
226 }
227 return 1;
228 }
229 return 0;
230}
231
232/*
233 * join facts about a list of vars, return the merged facts

Callers 1

join_var_factsMethod · 0.45

Calls 2

get_last_written_fidMethod · 0.80
implyMethod · 0.45

Tested by

no test coverage detected