MCPcopy Create free account
hub / github.com/antirez/ds4 / log_context_memory

Function log_context_memory

ds4_eval.c:4017–4032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4015 &mc_d, "</think>Answer: It isn't B, so D", "D");
4016 failed += extractor_self_test_case(
4017 "MC: a leading pick followed by 'not B' is still graded as the pick",
4018 &mc_d, "</think>Answer: D, not B", "D");
4019
4020 /* Integer: when the answer line shows the arithmetic, the graded value
4021 * must be the stated result (right of the last '='), not the first
4022 * summand/factor; digits on later lines must not leak in either. Many
4023 * embedded AIME2025 cases ask for a derived sum (m+n, a+b+c, ...). */
4024 const eval_case int_293 = {.source = "AIME2025", .answer = "293"};
4025 failed += extractor_self_test_case(
4026 "integer: sum line grades the total, not the first summand",
4027 &int_293, "</think>Answer: m+n = 256+37 = 293", "293");
4028 const eval_case int_62 = {.source = "AIME2025", .answer = "62"};
4029 failed += extractor_self_test_case(
4030 "integer: three-term sum line grades the total",
4031 &int_62, "</think>Answer: a+b+c = 12+25+25 = 62", "62");
4032 const eval_case int_81 = {.source = "AIME2025", .answer = "81"};
4033 failed += extractor_self_test_case(
4034 "integer: product-sum line grades the result, not the first factor",
4035 &int_81, "</think>Answer: 2*7 + 3*6 + 5*4 + 7*5 = 81", "81");

Callers 1

mainFunction · 0.70

Calls 2

ds4_backend_nameFunction · 0.85

Tested by

no test coverage detected