| 167 | |
| 168 | |
| 169 | def write_error_evidence(stderr, obstacle): |
| 170 | # Static LLVM22 library evidence; first native RED must confirm this binding. |
| 171 | # Different wording is an unknown precondition, never guessed to be success. |
| 172 | errors = [line for line in stderr.splitlines() if line.startswith("LLVM Profile Error:")] |
| 173 | matched = [] |
| 174 | for line in errors: |
| 175 | found = re.fullmatch(r'LLVM Profile Error: Failed to write file "(.*)": (.+)', line) |
| 176 | if not found or not same_path(found.group(1), obstacle): |
| 177 | return False, errors |
| 178 | matched.append(line) |
| 179 | return bool(matched), matched |
| 180 | |
| 181 | |
| 182 | def test_output(stdout): |