Skip to content

Commit 8b0d5ea

Browse files
committed
Debugged new initial implementation
1 parent e9b7810 commit 8b0d5ea

5 files changed

Lines changed: 15 additions & 4 deletions

File tree

sbg/dom_ord_pwmap.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ namespace LIB {
2929
// Domain Ordered PWMap Implementation -----------------------------------------
3030
////////////////////////////////////////////////////////////////////////////////
3131

32-
// Auxiliary functions - Ordered Piecewise maps --------------------------------
32+
// Auxiliary functions - Domain Ordered Piecewise maps -------------------------
33+
34+
namespace {
3335

3436
DomOrdPWMap::SetPerimeter calculatePerimeter(const Set &s)
3537
{
@@ -121,7 +123,9 @@ void advanceHint(DomOrdPWMap::OrdMapCollection &ord_pw, const MD_NAT crit
121123
}
122124
}
123125

124-
// Member functions - Ordered Piecewise maps -----------------------------------
126+
}
127+
128+
// Member functions - Domain Ordered Piecewise maps ----------------------------
125129

126130
member_imp(DomOrdPWMap, DomOrdPWMap::OrdMapCollection, pieces);
127131

sbg/dom_ord_pwmap.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
33
@brief <b>Domain Ordered PWMap Implementation</b>
44
5-
Domain ordered and map ordered piecewise map implementation.
5+
Domain ordered and map ordered piecewise map implementation. The evaluator will
6+
be in charge of checking that the choosen set implementation is ordered when
7+
this structure is used.
68
79
<hr>
810

sbg/ord_pwmap.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ namespace LIB {
3131

3232
// Auxiliary functions - Ordered Piecewise maps --------------------------------
3333

34+
namespace {
35+
3436
OrdPWMap::SetPerimeter calculatePerimeter(const Set &s)
3537
{
3638
MD_NAT max_per(s.arity(), 0);
@@ -121,6 +123,8 @@ void advanceHint(OrdPWMap::OrdMapCollection &ord_pw, const MD_NAT crit
121123
}
122124
}
123125

126+
}
127+
124128
// Member functions - Ordered Piecewise maps -----------------------------------
125129

126130
member_imp(OrdPWMap, OrdPWMap::OrdMapCollection, pieces);

sbg/pwmap_fact.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
******************************************************************************/
1919

2020
#include "sbg/pwmap_fact.hpp"
21+
#include "sbg/dom_ord_pwmap.hpp"
2122
#include "sbg/ord_pwmap.hpp"
2223
#include "sbg/unord_pwmap.hpp"
2324

test/eval/eval_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ TEST_P(EvalTests, Eval)
4343
const std::string DIR_CMD = "mkdir -p " + TEST_DIR;
4444
std::system(DIR_CMD.c_str());
4545
const std::string EVAL_CMD = TEST_ROOT + "/../build/eval/sbg-eval " + TEST_ROOT + "/" + NAME
46-
+ ".test > " + TEST_DIR + "/" + NAME + ".log 2>&1";
46+
+ ".test -s 0 -p 0 > " + TEST_DIR + "/" + NAME + ".log 2>&1";
4747
std::system(EVAL_CMD.c_str());
4848
const std::string TEST_CMD = EVAL_TEST_ROOT + "/results.sh " + NAME + " " + EVAL_TEST_ROOT;
4949
std::system(TEST_CMD.c_str());

0 commit comments

Comments
 (0)