| 3571 | } |
| 3572 | |
| 3573 | static char *trace_copy_model_output(const char *case_start, const char *case_end) { |
| 3574 | const char *begin = trace_find_block_begin(case_start, case_end, "MODEL_OUTPUT_BEGIN"); |
| 3575 | if (!begin) return NULL; |
| 3576 | const char *line_end = memchr(begin, '\n', (size_t)(case_end - begin)); |
| 3577 | if (!line_end) return NULL; |
| 3578 | const char *content = line_end + 1; |
| 3579 | |
| 3580 | size_t len = 0; |
| 3581 | const char *bytes = bounded_strstr(begin, line_end, "bytes="); |