Skip to content

SMV: use explicit stack for type checking DEFINEs#1624

Merged
tautschnig merged 1 commit intomainfrom
typecheck-defines
Feb 5, 2026
Merged

SMV: use explicit stack for type checking DEFINEs#1624
tautschnig merged 1 commit intomainfrom
typecheck-defines

Conversation

@kroening
Copy link
Collaborator

@kroening kroening commented Feb 4, 2026

This replaces the recursion for type checking DEFINEs by an explicit std::stack. This prevents stack overflow when given deep definition chains.

This is an alternative to #234 that does not require the construction of an explicit graph.

Closes #17

@kroening kroening force-pushed the typecheck-defines branch 2 times, most recently from 834c45a to 7fbd285 Compare February 4, 2026 23:31
This replaces the recusion for type checking DEFINEs by an explicit
std::stack.  This prevents stack overflow when given deep definition chains.

This is an alternative to #234 that does not require the construction of an
explicit graph.

Closes #17
@kroening kroening marked this pull request as ready for review February 5, 2026 14:42
@tautschnig tautschnig merged commit 77bd377 into main Feb 5, 2026
11 checks passed
@tautschnig tautschnig deleted the typecheck-defines branch February 5, 2026 18:24
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.

segfault on typecheck

2 participants