| 184 | } |
| 185 | |
| 186 | static int cv_expect(const char *lang, cv_result_t r) { |
| 187 | bool ok = r.nodes == 1 && r.clean_names == 1 && r.to_alpha >= 1 && r.to_beta >= 1 && |
| 188 | r.from_caller >= 1 && r.variant_spans >= 2; |
| 189 | if (!ok) { |
| 190 | fprintf( |
| 191 | stderr, " [%s] nodes=%d clean=%d ->alpha=%d ->beta=%d caller->=%d variant_spans=%d\n", |
| 192 | lang, r.nodes, r.clean_names, r.to_alpha, r.to_beta, r.from_caller, r.variant_spans); |
| 193 | } |
| 194 | return ok; |
| 195 | } |
| 196 | |
| 197 | static int cv_run(const char *lang, const cv_file_t *files, int count, const char *pick, |
| 198 | const char *alpha, const char *beta, const char *caller) { |