-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DetectCycles to detect cycles in compared structs
The current comparison fails on stack overflow when given a cyclic struct (such as a cyclic linked list for example). This fix adds a new option: DecetctCycles, which finds cycles by adding information to the path stack, when iterating over pointers. When a cycle is checked (every time a pointer kind is compared) the path stack is iterated to find cycles. The comparison of cycles is by they length. Fixes: #74
- Loading branch information
Showing
3 changed files
with
210 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters