path: root/lib/
authorSergey Poznyakoff <>2020-10-18 19:20:16 (GMT)
committer Sergey Poznyakoff <>2020-10-18 19:20:16 (GMT)
commitc26297063aa2dad0fecd28791a47a8bffcfc9925 (patch) (side-by-side diff)
tree964990a4dd3c62bf0f25f248518b729403eb3c1a /lib/
parenta7f3e6adb0ffbe56d9b521522d22cf758ee6acb7 (diff)
Fix cyclic dependecy detection and reporting.HEADmaster
Use modified Floyd-Warshall algorithm for cyclic dependecy detection. The computed next vertex indices are used when reporting the cycles found. This fixes dead loops that occurred in earlier versions when trying to report cycles. One of inputs that caused such behavior is used as a new test in * src/depmap.c: Rewrite using modified Floyd-Warshall algorithm. (depmap_cycle_detect,depmap_path_free): New functions. * src/comp.c (report_cyclic_dependency): Take struct depmap_path * as argument. (component_build_depmap): Use depmap_cycle_detect to detect cyclic dependencies. (depmap_dump): Special handling for zero-sized depmap. * tests/ Add new test. * src/pies.h (depmap_dim, depmap_free) (depmap_cycle_detect,depmap_path_free): New protos. * NEWS: Document changes.
Diffstat (limited to 'lib/') (more/less context) (ignore whitespace changes)
0 files changed, 0 insertions, 0 deletions

Return to:

Send suggestions and report system problems to the System administrator.