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

Method getJumpCond

ir/state.cpp:1450–1458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1448}
1449
1450expr State::getJumpCond(const BasicBlock &src, const BasicBlock &dst) const {
1451 auto I = predecessor_data.find(&dst);
1452 if (I == predecessor_data.end())
1453 return false;
1454
1455 auto J = I->second.find(&src);
1456 return J == I->second.end() ? expr(false)
1457 : J->second.path() && J->second.UB.factor()();
1458}
1459
1460void State::addGlobalVarBid(const string &glbvar, unsigned bid) {
1461 ENSURE(glbvar_bids.emplace(glbvar, make_pair(bid, true)).second);

Callers 2

errorFunction · 0.80
execFunction · 0.80

Calls 4

findMethod · 0.80
factorMethod · 0.80
exprClass · 0.70
endMethod · 0.45

Tested by

no test coverage detected