#include "stdinc.h"
#include "OptimizeStrategy.h"
#include "tests.h"
#include "IdealFactory.h"
#include "Ideal.h"
#include "TermTranslator.h"
#include "TermGrader.h"
#include "SplitStrategy.h"
#include "Slice.h"
#include <vector>
Go to the source code of this file.
◆ INNER_SIMP_TEST
#define INNER_SIMP_TEST |
( |
|
strat, |
|
|
|
div, |
|
|
|
dom, |
|
|
|
degree, |
|
|
|
expectPivot |
|
) |
| |
Value: { \
Term gotPivot(
Term(expectPivot).getVarCount()); \
ASSERT_EQ(strat.getInnerSimplify \
(
Term(div),
Term(dom), degree, gotPivot), \
expectSimplify); \
if (expectSimplify) { \
ASSERT_EQ(gotPivot,
Term(expectPivot)); \
} \
}
Term represents a product of variables which does not include a coefficient.
static bool isIdentity(const Exponent *a, size_t varCount)
Returns whether a is 1, i.e. whether all entries of a are 0.
Definition at line 100 of file OptimizeStrategyTest.cpp.
◆ OUTER_SIMP_TEST
#define OUTER_SIMP_TEST |
( |
|
strat, |
|
|
|
div, |
|
|
|
dom, |
|
|
|
degree, |
|
|
|
expectPivot |
|
) |
| |
Value: { \
Term gotPivot(
Term(expectPivot).getVarCount()); \
ASSERT_EQ(strat.getOuterSimplify \
(
Term(div),
Term(dom), degree, gotPivot), \
expectSimplify); \
if (expectSimplify) { \
ASSERT_EQ(gotPivot,
Term(expectPivot)); \
} \
}
Definition at line 112 of file OptimizeStrategyTest.cpp.
◆ TEST() [1/4]
◆ TEST() [2/4]
◆ TEST() [3/4]
◆ TEST() [4/4]