Skip to content

Commit

Permalink
try to fix issues with mint segfaults
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightguth committed Oct 28, 2024
1 parent f7e5cc3 commit 49637fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ast/definition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,10 @@ void kore_definition::preprocess() {
for (auto const &sort : symbol->get_arguments()) {
process_sort_ordinal(sort.get(), sorts, all_sorts_, next_sort);
}
process_sort_ordinal(
symbol->get_sort().get(), sorts, all_sorts_, next_sort);
if (symbol->get_sort()->is_concrete()) {
process_sort_ordinal(
symbol->get_sort().get(), sorts, all_sorts_, next_sort);
}
if (!instantiations.contains(*symbol)) {
instantiations.emplace(*symbol, next_symbol++);
}
Expand Down

0 comments on commit 49637fd

Please sign in to comment.