Skip to content

Commit

Permalink
removing debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
castrod committed Feb 21, 2024
1 parent 69184e7 commit df45728
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/normalizer2.h
Original file line number Diff line number Diff line change
Expand Up @@ -526,21 +526,6 @@ auto get_vars_from_nso(const nso<BAs...>& n) {
return select_top(n, is_var_or_capture<BAs...>);
}

template <typename...BAs>
std::ostream& print_sp_tau_node(std::ostream &os, sp_tau_node<BAs...> n, size_t l = 0) {
os << "{";
// for (size_t t = 0; t < l; t++) os << " ";
std::visit(overloaded {
[&os](tau_source_sym v) { if (v.nt()) os << v.n(); else os << v.t(); },
[&os](std::variant<BAs...>) {
os << "...BAs..."; },
[&os](size_t v) { os << v; }},
n->value);
for (auto& d : n->child) print_sp_tau_node(os, d, l + 1);
os << "}";
return os;
}

template <typename... BAs>
bool is_nso_equivalent_to(nso<BAs...> n1, nso<BAs...> n2) {
auto vars1 = get_vars_from_nso(n1);
Expand All @@ -556,7 +541,6 @@ bool is_nso_equivalent_to(nso<BAs...> n1, nso<BAs...> n2) {

for(auto& v: vars) wff = build_wff_all<BAs...>(v, wff);

print_sp_tau_node(std::cout, wff); std::cout << std::endl;

rr<nso<BAs...>> nso_rr{wff};
auto normalized = normalizer(nso_rr);
Expand Down

0 comments on commit df45728

Please sign in to comment.