MCPcopy Create free account
hub / github.com/Z3Prover/z3 / is_value

Method is_value

src/ast/array_decl_plugin.cpp:560–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560bool array_decl_plugin::is_value(app * _e) const {
561 expr* e = _e;
562 array_util u(*m_manager);
563 while (true) {
564 if (u.is_const(e, e))
565 return m_manager->is_value(e);
566 if (u.is_store(e)) {
567 for (unsigned i = 1; i < to_app(e)->get_num_args(); ++i)
568 if (!m_manager->is_value(to_app(e)->get_arg(i)))
569 return false;
570 e = to_app(e)->get_arg(0);
571 continue;
572 }
573 return false;
574 }
575}
576
577bool array_decl_plugin::is_unique_value(app* _e) const {
578 array_util u(*m_manager);

Callers

nothing calls this directly

Calls 5

to_appFunction · 0.70
is_constMethod · 0.45
is_storeMethod · 0.45
get_num_argsMethod · 0.45
get_argMethod · 0.45

Tested by

no test coverage detected