| 717 | } |
| 718 | |
| 719 | static bool pr_seen(pr_search_t *s, int ti) { |
| 720 | for (int i = 0; i < s->nvisited; i++) { |
| 721 | if (s->visited[i] == ti) { |
| 722 | return true; |
| 723 | } |
| 724 | } |
| 725 | if (s->nvisited == PR_VISIT_MAX) { |
| 726 | s->open = true; /* too wide to follow: not every supertype was read */ |
| 727 | return true; |
| 728 | } |
| 729 | s->visited[s->nvisited++] = ti; |
| 730 | return false; |
| 731 | } |
| 732 | |
| 733 | static bool pr_search(pr_search_t *s, int ti, int depth) { |
| 734 | if (depth > PR_MAX_DEPTH) { |