本文整理汇总了C++中Lattice::combine方法的典型用法代码示例。如果您正苦于以下问题:C++ Lattice::combine方法的具体用法?C++ Lattice::combine怎么用?C++ Lattice::combine使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lattice
的用法示例。
在下文中一共展示了Lattice::combine方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: computePostInfo
void
SPRAY::PASolver1::computeCombinedPreInfo(Label lab,Lattice& info) {
LabelSet pred=_flow.pred(lab);
for(LabelSet::iterator i=pred.begin();i!=pred.end();++i) {
Lattice* predInfo=_initialElementFactory.create();
predInfo->combine(*_analyzerDataPreInfo[(*i).getId()]); // clone info of predecessor
computePostInfo(*i,*predInfo);
info.combine(*predInfo);
delete predInfo;
}
}
示例2: computePostInfo
void
SPRAY::PASolver1::computeCombinedPreInfo(Label lab,Lattice& info) {
if(!_flow.contains(lab)) {
// schroder3 (2016-07-07): If the label does not exist in the CFG, then
// it does not have predecessors and the given pre-info therefore does
// not change. This check is necessary if Flow::pred(Label) uses the
// Sawyer graph as underlying datastructure because Flow::pred then
// expects that the given label exists in the CFG.
return;
}
LabelSet pred=_flow.pred(lab);
for(LabelSet::iterator i=pred.begin();i!=pred.end();++i) {
Lattice* predInfo=_initialElementFactory.create();
predInfo->combine(*_analyzerDataPreInfo[(*i).getId()]); // clone info of predecessor
computePostInfo(*i,*predInfo);
info.combine(*predInfo);
delete predInfo;
}
}