|
|
@ -560,13 +560,13 @@ bool ASTManager::DirectlyRelated(const ASTNode& first, const ASTNode& second) co
|
|
|
|
return min->GetParent() == max->GetParent();
|
|
|
|
return min->GetParent() == max->GetParent();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ASTManager::ShowCurrentState(std::string_view state) {
|
|
|
|
void ASTManager::ShowCurrentState(std::string_view state) const {
|
|
|
|
LOG_CRITICAL(HW_GPU, "\nState {}:\n\n{}\n", state, Print());
|
|
|
|
LOG_CRITICAL(HW_GPU, "\nState {}:\n\n{}\n", state, Print());
|
|
|
|
SanityCheck();
|
|
|
|
SanityCheck();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ASTManager::SanityCheck() {
|
|
|
|
void ASTManager::SanityCheck() const {
|
|
|
|
for (auto& label : labels) {
|
|
|
|
for (const auto& label : labels) {
|
|
|
|
if (!label->GetParent()) {
|
|
|
|
if (!label->GetParent()) {
|
|
|
|
LOG_CRITICAL(HW_GPU, "Sanity Check Failed");
|
|
|
|
LOG_CRITICAL(HW_GPU, "Sanity Check Failed");
|
|
|
|
}
|
|
|
|
}
|
|
|
|