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

Method addGuardableUB

ir/state.cpp:914–922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

912}
913
914void State::addGuardableUB(expr &&ub) {
915 if (config::disallow_ub_exploitation) {
916 if (!ub.isConst())
917 domain.undef_vars.insert(undef_vars.begin(), undef_vars.end());
918 guardable_ub.add(domain.path && !ub);
919 } else {
920 addUB(std::move(ub));
921 }
922}
923
924void State::addNoReturn(const expr &cond) {
925 if (cond.isFalse())

Callers 2

div_ubFunction · 0.80
toSMTMethod · 0.80

Calls 4

isConstMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected