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

Method mkUndef

ir/type.cpp:270–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270StateValue Type::mkUndef(State &s) const {
271 auto val = getDummyValue(true);
272 expr var = expr::mkFreshVar("undef", val.value);
273 s.addUndefVar(expr(var));
274 return { std::move(var), std::move(val.non_poison) };
275}
276
277pair<expr, expr> Type::mkUndefInput(State &s, const ParamAttrs &attrs) const {
278 auto var = expr::mkFreshVar("undef", mkInput(s, "", attrs));

Callers 1

toSMTMethod · 0.45

Calls 2

addUndefVarMethod · 0.80
exprClass · 0.70

Tested by

no test coverage detected