MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / get

Method get

ir/fast_math.cpp:72–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 vector<vector<const Node*>> nodes_eqs; // root -> equiv nodes
71
72 unsigned get(Node &&n) {
73 auto [I, inserted] = nodes.try_emplace(std::move(n), 0);
74 if (inserted) {
75 I->second = uf.mk();
76 nodes_eqs.emplace_back(1, &I->first);
77 }
78 return I->second;
79 }
80
81 void decl_equivalent(Node &&node, unsigned n1) {
82 unsigned n2 = get(std::move(node));

Callers 1

float_refinedFunction · 0.45

Calls 9

isFPAddMethod · 0.80
isFPSubMethod · 0.80
isFPMulMethod · 0.80
isFPDivMethod · 0.80
isFPNegMethod · 0.80
fn_nameMethod · 0.80
getFnArgMethod · 0.80
mkMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected