Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant DC verification #510

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

xJoskiy
Copy link
Contributor

@xJoskiy xJoskiy commented Jan 6, 2025

Add DC verification with constant predicactes, add violations highlights and minimization algorithm

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

src/core/algorithms/dc/model/dc.cpp Outdated Show resolved Hide resolved
src/core/algorithms/dc/model/dc.cpp Outdated Show resolved Hide resolved
src/core/algorithms/dc/parser/dc_parser.cpp Show resolved Hide resolved
src/core/algorithms/dc/parser/dc_parser.cpp Show resolved Hide resolved
src/core/util/kdtree.h Outdated Show resolved Hide resolved
@xJoskiy xJoskiy force-pushed the DC-verification branch 2 times, most recently from cee6cc2 to 02b27b6 Compare January 14, 2025 00:54
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

src/core/algorithms/dc/verifier/dc_verifier.cpp Outdated Show resolved Hide resolved
src/core/algorithms/dc/verifier/dc_verifier.cpp Outdated Show resolved Hide resolved
src/core/algorithms/dc/verifier/dc_verifier.cpp Outdated Show resolved Hide resolved
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

src/core/algorithms/dc/parser/dc_parser.cpp Outdated Show resolved Hide resolved
src/core/algorithms/dc/parser/dc_parser.cpp Outdated Show resolved Hide resolved
@xJoskiy xJoskiy force-pushed the DC-verification branch 2 times, most recently from ebd4eae to deaa199 Compare January 20, 2025 20:21
@xJoskiy xJoskiy changed the title WIP: Constant DC verification Constant DC verification Jan 20, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

src/core/algorithms/dc/model/column_operand.h Outdated Show resolved Hide resolved
@xJoskiy xJoskiy force-pushed the DC-verification branch 3 times, most recently from a90e568 to 3d0b351 Compare January 25, 2025 10:07
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

src/core/algorithms/dc/model/dc.cpp Outdated Show resolved Hide resolved
src/core/algorithms/dc/parser/dc_parser.cpp Outdated Show resolved Hide resolved
src/core/algorithms/dc/parser/dc_parser.cpp Outdated Show resolved Hide resolved
@xJoskiy xJoskiy force-pushed the DC-verification branch 5 times, most recently from ce333d9 to 9e2a146 Compare January 27, 2025 05:37
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions


std::string ToString() const {
std::ostringstream ss;
static char constexpr const open[]{'(', '['};
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: invalid case style for static constant 'open' [readability-identifier-naming]

Suggested change
static char constexpr const open[]{'(', '['};
static char constexpr const kOpen[]{'(', '['};

src/core/util/kdtree.h:80:

-             ss << open[lower_bound_type_[i]] << lower_bound_[i].ToString() << ", ";
+             ss << kOpen[lower_bound_type_[i]] << lower_bound_[i].ToString() << ", ";

std::string ToString() const {
std::ostringstream ss;
static char constexpr const open[]{'(', '['};
static char constexpr const closed[]{')', ']'};
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: invalid case style for static constant 'closed' [readability-identifier-naming]

Suggested change
static char constexpr const closed[]{')', ']'};
static char constexpr const kClosed[]{')', ']'};

src/core/util/kdtree.h:81:

-             ss << upper_bound_[i].ToString() << closed[upper_bound_type_[i]] << '\n';
+             ss << upper_bound_[i].ToString() << kClosed[upper_bound_type_[i]] << '\n';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant