a modern C++ library for the manipulation of Boolean functions
a modern C++ library for the manipulation of Boolean functions
a modern C++ library for the manipulation of Boolean functions
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Require: three ROBDD nodes i, t and e<br />
function ite(i, t, e)<br />
if i = 1 <strong>the</strong>n<br />
return t<br />
else if i = 0 <strong>the</strong>n<br />
return e<br />
else if t = 1 and e = 0 <strong>the</strong>n<br />
return i<br />
else if t = e <strong>the</strong>n<br />
return t<br />
else<br />
xtop = min {ivar, tvar, evar} <br />
if xtop = ivar <strong>the</strong>n<br />
inewt = itrue<br />
inewf = ifalse<br />
else<br />
inewt = inewf = i<br />
if xtop = tvar <strong>the</strong>n<br />
tnewt = ttrue<br />
tnewf = tfalse<br />
else<br />
tnewt = tnewf = t<br />
if xtop = evar <strong>the</strong>n<br />
enewt = etrue<br />
enewf = efalse<br />
else<br />
enewt = enewf = e<br />
return make_node xtop, ite(inewt, tnewt, enewt), ite(inewf , tnewf , enewf ) <br />
Algorithm 3: The ite function<br />
3.2 ROBDD algorithms 16