Skip to content

Commit

Permalink
Clean info files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalashnikovni committed Jul 26, 2024
2 parents 96c8b38 + 4ea5eef commit 25947a3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 313 deletions.
170 changes: 0 additions & 170 deletions sbg/info.cpp

This file was deleted.

127 changes: 0 additions & 127 deletions sbg/info.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion sbg/sbg_algorithms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ Exp SBGTopSort<Set>::calculateExp(Util::MD_NAT from, Util::MD_NAT to)
Exp res;

Util::RATIONAL one(1, 1);
for (unsigned int j = 0; j < from.arity(); ++j) {
for (unsigned int j = 0; j < from.size(); ++j) {
Util::RATIONAL r_from(from[j]), r_to(to[j]);
res.emplaceBack(LExp(1, r_to - r_from));
}
Expand Down
17 changes: 2 additions & 15 deletions sbg/sbg_algorithms.hpp
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -176,24 +176,13 @@ typedef SBGSCC<OrdSet> CanonSCC;

template<typename Set>
struct SBGTopSort {
using Map = SBGMap<Set>;
using PW = PWMap<Set>;

//*** SBG info, constant
member_class(DSBGraph<Set>, dsbg);

//-----------------------------
member_class(PW, smap);

member_class(Set, E);
member_class(PW, mapB);
member_class(PW, mapD);

member_class(Set, unordered);
member_class(Set, not_dependent);
member_class(Set, visitedV);

member_class(Util::MD_NAT, curr);

member_class(bool, debug);

SBGTopSort();
Expand All @@ -202,9 +191,7 @@ struct SBGTopSort {
PW calculate();

private:
Exp calculateExp(Util::MD_NAT x1, Util::MD_NAT x2);
void topSortStep();
void updateStatus(Set dom, Exp exp, Set ingoing);
Exp calculateExp(Util::MD_NAT from, Util::MD_NAT to);
};

typedef SBGTopSort<UnordSet> BaseTopSort;
Expand Down

0 comments on commit 25947a3

Please sign in to comment.