#include "Parser.h"
#include "Utils.h"
#include "mlir/Analysis/Presburger/Simplex.h"
#include "mlir/IR/MLIRContext.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <optional>
usingnamespacemlir;
usingnamespacepresburger;
void addInequality(SimplexBase &simplex, ArrayRef<int64_t> coeffs) { … }
void addEquality(SimplexBase &simplex, ArrayRef<int64_t> coeffs) { … }
bool isRedundantInequality(Simplex &simplex, ArrayRef<int64_t> coeffs) { … }
bool isRedundantInequality(LexSimplex &simplex, ArrayRef<int64_t> coeffs) { … }
bool isRedundantEquality(Simplex &simplex, ArrayRef<int64_t> coeffs) { … }
bool isSeparateInequality(LexSimplex &simplex, ArrayRef<int64_t> coeffs) { … }
Simplex::IneqType findIneqType(Simplex &simplex, ArrayRef<int64_t> coeffs) { … }
TEST(SimplexTest, emptyRollback) { … }
TEST(SimplexTest, addEquality_separate) { … }
void expectInequalityMakesSetEmpty(Simplex &simplex, ArrayRef<int64_t> coeffs,
bool expect) { … }
TEST(SimplexTest, addInequality_rollback) { … }
Simplex simplexFromConstraints(unsigned nDim,
ArrayRef<SmallVector<int64_t, 8>> ineqs,
ArrayRef<SmallVector<int64_t, 8>> eqs) { … }
TEST(SimplexTest, isUnbounded) { … }
TEST(SimplexTest, getSamplePointIfIntegral) { … }
TEST(SimplexTest, isMarkedRedundant_no_var_ge_zero) { … }
TEST(SimplexTest, isMarkedRedundant_no_var_eq) { … }
TEST(SimplexTest, isMarkedRedundant_pos_var_eq) { … }
TEST(SimplexTest, isMarkedRedundant_zero_var_eq) { … }
TEST(SimplexTest, isMarkedRedundant_neg_var_eq) { … }
TEST(SimplexTest, isMarkedRedundant_pos_var_ge) { … }
TEST(SimplexTest, isMarkedRedundant_zero_var_ge) { … }
TEST(SimplexTest, isMarkedRedundant_neg_var_ge) { … }
TEST(SimplexTest, isMarkedRedundant_no_redundant) { … }
TEST(SimplexTest, isMarkedRedundant_repeated_constraints) { … }
TEST(SimplexTest, isMarkedRedundant) { … }
TEST(SimplexTest, isMarkedRedundantTiledLoopNestConstraints) { … }
TEST(SimplexTest, pivotRedundantRegressionTest) { … }
TEST(SimplexTest, addInequality_already_redundant) { … }
TEST(SimplexTest, appendVariable) { … }
TEST(SimplexTest, isRedundantInequality) { … }
TEST(SimplexTest, ineqType) { … }
TEST(SimplexTest, isRedundantEquality) { … }
TEST(SimplexTest, IsRationalSubsetOf) { … }
TEST(SimplexTest, addDivisionVariable) { … }
TEST(SimplexTest, LexIneqType) { … }