| 136 | } |
| 137 | |
| 138 | std::set<std::string> CHCSmtLib2Interface::collectVariableNames(Expression const& _expr) const |
| 139 | { |
| 140 | std::set<std::string> names; |
| 141 | auto dfs = [&](Expression const& _current, auto _recurse) -> void |
| 142 | { |
| 143 | if (_current.arguments.empty()) |
| 144 | { |
| 145 | if (m_context.isDeclared(_current.name)) |
| 146 | names.insert(_current.name); |
| 147 | } |
| 148 | else |
| 149 | for (auto const& arg: _current.arguments) |
| 150 | _recurse(arg, _recurse); |
| 151 | }; |
| 152 | dfs(_expr, dfs); |
| 153 | return names; |
| 154 | } |
| 155 | |
| 156 | std::string CHCSmtLib2Interface::forall(Expression const& _expr) |
| 157 | { |
nothing calls this directly
no test coverage detected