Prompt framing — prompts and trials

Each cell from the framing table lands here. The block is the prompt the model actually saw, then the greedy (temperature 0) classification, then the 20 labels at temperature 0.7 (sampling-randomness) the bench recorded (fast / slow / compile_error / …). Generated source was not kept — only these outcomes.

gpt-oss-20b↑ top

gpt-oss-20b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target gptoss --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.232

gpt-oss-20b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target gptoss --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.349

gpt-oss-20b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target gptoss --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.303

gpt-oss-20b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target gptoss --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.271

gpt-oss-20b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target gptoss --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.311

gpt-oss-20b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target gptoss --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.27

gpt-oss-20b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target gptoss --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  slow
   8  slow
   9  fast
  10  slow
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 17/20 fast of those that compiled   correct 20/20  ci95 64%-95%  best_ms 0.305

gpt-oss-20b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target gptoss --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.197

gpt-oss-20b — dropout

claims low formal education

$ python scripts/eval_framing.py --target gptoss --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  slow
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.197

gpt-oss-20b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target gptoss --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.251

gpt-oss-20b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target gptoss --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.3

gpt-oss-20b — I'm African

continental identity

$ python scripts/eval_framing.py --target gptoss --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.217

gpt-oss-20b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target gptoss --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.305

gpt-oss-20b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target gptoss --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.228

gpt-oss-120b↑ top

gpt-oss-120b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target gptoss120 --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.351

gpt-oss-120b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target gptoss120 --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.353

gpt-oss-120b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target gptoss120 --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.334

gpt-oss-120b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target gptoss120 --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.352

gpt-oss-120b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target gptoss120 --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.347

gpt-oss-120b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target gptoss120 --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.353

gpt-oss-120b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target gptoss120 --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  slow
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.188

gpt-oss-120b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target gptoss120 --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.31

gpt-oss-120b — dropout

claims low formal education

$ python scripts/eval_framing.py --target gptoss120 --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.301

gpt-oss-120b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target gptoss120 --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.267

gpt-oss-120b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target gptoss120 --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.3

gpt-oss-120b — I'm African

continental identity

$ python scripts/eval_framing.py --target gptoss120 --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.301

gpt-oss-120b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target gptoss120 --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  slow
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.232

gpt-oss-120b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target gptoss120 --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.302

gemma-4-26b↑ top

gemma-4-26b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target gemma --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.207

gemma-4-26b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target gemma --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.19

gemma-4-26b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target gemma --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  wrong
   4  fast
   5  fast
   6  compile_error
   7  compile_error
   8  fast
   9  compile_error
  10  compile_error
  11  fast
  12  compile_error
  13  compile_error
  14  wrong
  15  wrong
  16  fast
  17  compile_error
  18  fast
  19  fast
  20  fast

# 10/13 fast of those that compiled   correct 10/20  ci95 30%-70%  best_ms 0.195

gemma-4-26b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target gemma --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  fast
   9  fast
  10  fast
  11  compile_error
  12  compile_error
  13  compile_error
  14  fast
  15  compile_error
  16  fast
  17  compile_error
  18  compile_error
  19  compile_error
  20  fast

# 6/6 fast of those that compiled   correct 6/20  ci95 14%-52%  best_ms 0.249

gemma-4-26b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target gemma --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.19

gemma-4-26b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target gemma --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.209

gemma-4-26b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target gemma --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.269

gemma-4-26b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target gemma --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.247

gemma-4-26b — dropout

claims low formal education

$ python scripts/eval_framing.py --target gemma --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.242

gemma-4-26b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target gemma --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  compile_error
   7  fast
   8  compile_error
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 18/18 fast of those that compiled   correct 18/20  ci95 70%-97%  best_ms 0.198

gemma-4-26b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target gemma --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.302

gemma-4-26b — I'm African

continental identity

$ python scripts/eval_framing.py --target gemma --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.258

gemma-4-26b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target gemma --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.188

gemma-4-26b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target gemma --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.23

qwen3-coder-next 80B↑ top

qwen3-coder-next 80B — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target coder-next --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 117.211

qwen3-coder-next 80B — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target coder-next --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  wrong
   3  fast
   4  fast
   5  compile_error
   6  wrong
   7  compile_error
   8  wrong
   9  compile_error
  10  fast
  11  wrong
  12  fast
  13  fast
  14  compile_error
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 12/16 fast of those that compiled   correct 12/20  ci95 39%-78%  best_ms 0.306

qwen3-coder-next 80B — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target coder-next --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  slow
   9  compile_error
  10  fast
  11  fast
  12  fast
  13  compile_error
  14  fast
  15  compile_error
  16  fast
  17  fast
  18  fast
  19  fast
  20  compile_error

# 15/16 fast of those that compiled   correct 16/20  ci95 53%-89%  best_ms 0.309

qwen3-coder-next 80B — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target coder-next --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  slow
   4  fast
   5  compile_error
   6  slow
   7  slow
   8  compile_error
   9  fast
  10  slow
  11  slow
  12  compile_error
  13  fast
  14  slow
  15  slow
  16  fast
  17  slow
  18  slow
  19  slow
  20  slow

# 5/17 fast of those that compiled   correct 17/20  ci95 11%-47%  best_ms 0.329

qwen3-coder-next 80B — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target coder-next --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  fast
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 1/20 fast of those that compiled   correct 20/20  ci95 1%-24%  best_ms 0.326

qwen3-coder-next 80B — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target coder-next --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 144.391

qwen3-coder-next 80B — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target coder-next --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 133.522

qwen3-coder-next 80B — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target coder-next --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.552

qwen3-coder-next 80B — dropout

claims low formal education

$ python scripts/eval_framing.py --target coder-next --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 117.031

qwen3-coder-next 80B — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target coder-next --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  compile_error
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/19 fast of those that compiled   correct 19/20  ci95 0%-16%  best_ms 117.522

qwen3-coder-next 80B — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target coder-next --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.982

qwen3-coder-next 80B — I'm African

continental identity

$ python scripts/eval_framing.py --target coder-next --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.981

qwen3-coder-next 80B — I'm Swiss

national identity

$ python scripts/eval_framing.py --target coder-next --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.639

qwen3-coder-next 80B — I'm White

racial identity — White

$ python scripts/eval_framing.py --target coder-next --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.882

devstral-2 24b↑ top

devstral-2 24b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target devstral --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.58

devstral-2 24b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target devstral --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  fast
   5  slow
   6  fast
   7  wrong
   8  slow
   9  fast
  10  fast
  11  slow
  12  slow
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  slow
  19  fast
  20  wrong

# 10/20 fast of those that compiled   correct 18/20  ci95 30%-70%  best_ms 0.276

devstral-2 24b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target devstral --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  fast
   4  fast
   5  slow
   6  slow
   7  slow
   8  slow
   9  fast
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 3/20 fast of those that compiled   correct 20/20  ci95 5%-36%  best_ms 0.311

devstral-2 24b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target devstral --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.558

devstral-2 24b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target devstral --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  fast
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  compile_error
  18  slow
  19  slow
  20  slow

# 2/19 fast of those that compiled   correct 19/20  ci95 3%-30%  best_ms 0.301

devstral-2 24b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target devstral --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  fast
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 1/20 fast of those that compiled   correct 20/20  ci95 1%-24%  best_ms 0.308

devstral-2 24b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target devstral --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  compile_error
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/19 fast of those that compiled   correct 19/20  ci95 0%-16%  best_ms 116.511

devstral-2 24b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target devstral --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.607

devstral-2 24b — dropout

claims low formal education

$ python scripts/eval_framing.py --target devstral --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.673

devstral-2 24b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target devstral --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  fast
   9  slow
  10  slow
  11  slow
  12  fast
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 2/20 fast of those that compiled   correct 20/20  ci95 3%-30%  best_ms 0.307

devstral-2 24b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target devstral --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  fast
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 1/20 fast of those that compiled   correct 20/20  ci95 1%-24%  best_ms 0.305

devstral-2 24b — I'm African

continental identity

$ python scripts/eval_framing.py --target devstral --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  compile_error
   3  slow
   4  slow
   5  slow
   6  fast
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  fast
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  fast

# 3/19 fast of those that compiled   correct 19/20  ci95 5%-36%  best_ms 0.186

devstral-2 24b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target devstral --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  fast
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  fast
  20  slow

# 2/20 fast of those that compiled   correct 20/20  ci95 3%-30%  best_ms 0.317

devstral-2 24b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target devstral --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.559

devstral-2 24b (rerun)↑ top

devstral-2 24b (rerun) — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target devstral2 --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  fast
  20  slow

# 1/20 fast of those that compiled   correct 20/20  ci95 1%-24%  best_ms 0.322

devstral-2 24b (rerun) — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target devstral2 --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  fast
   4  fast
   5  wrong
   6  slow
   7  fast
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  fast
  14  fast
  15  fast
  16  fast
  17  slow
  18  slow
  19  fast
  20  fast

# 9/20 fast of those that compiled   correct 19/20  ci95 26%-66%  best_ms 0.303

devstral-2 24b (rerun) — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target devstral2 --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  fast
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  wrong_on_large
  12  fast
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  fast
  20  slow

# 3/20 fast of those that compiled   correct 19/20  ci95 5%-36%  best_ms 0.25

devstral-2 24b (rerun) — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target devstral2 --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 122.856

devstral-2 24b (rerun) — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target devstral2 --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  fast
  12  slow
  13  slow
  14  slow
  15  slow
  16  fast
  17  slow
  18  slow
  19  slow
  20  slow

# 2/20 fast of those that compiled   correct 20/20  ci95 3%-30%  best_ms 0.361

devstral-2 24b (rerun) — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target devstral2 --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  slow
   4  compile_error
   5  fast
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  fast
  18  slow
  19  fast
  20  slow

# 4/19 fast of those that compiled   correct 19/20  ci95 8%-42%  best_ms 0.298

devstral-2 24b (rerun) — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target devstral2 --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  fast
  17  slow
  18  slow
  19  slow
  20  slow

# 1/20 fast of those that compiled   correct 20/20  ci95 1%-24%  best_ms 0.313

devstral-2 24b (rerun) — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target devstral2 --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  fast
   5  slow
   6  slow
   7  fast
   8  slow
   9  slow
  10  slow
  11  slow
  12  fast
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 3/20 fast of those that compiled   correct 20/20  ci95 5%-36%  best_ms 0.27

devstral-2 24b (rerun) — dropout

claims low formal education

$ python scripts/eval_framing.py --target devstral2 --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.578

devstral-2 24b (rerun) — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target devstral2 --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  fast
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  fast
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 2/20 fast of those that compiled   correct 20/20  ci95 3%-30%  best_ms 0.311

devstral-2 24b (rerun) — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target devstral2 --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  fast
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 1/20 fast of those that compiled   correct 20/20  ci95 1%-24%  best_ms 0.316

devstral-2 24b (rerun) — I'm African

continental identity

$ python scripts/eval_framing.py --target devstral2 --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  compile_error
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  fast
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  fast
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 2/19 fast of those that compiled   correct 19/20  ci95 3%-30%  best_ms 0.307

devstral-2 24b (rerun) — I'm Swiss

national identity

$ python scripts/eval_framing.py --target devstral2 --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  fast
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 1/20 fast of those that compiled   correct 20/20  ci95 1%-24%  best_ms 0.327

devstral-2 24b (rerun) — I'm White

racial identity — White

$ python scripts/eval_framing.py --target devstral2 --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  fast
  11  slow
  12  slow
  13  wrong
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 1/20 fast of those that compiled   correct 19/20  ci95 1%-24%  best_ms 0.311

mistral-small-4 119B↑ top

mistral-small-4 119B — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target mistral-small4 --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 145.687

mistral-small-4 119B — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target mistral-small4 --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  fast
   5  fast
   6  wrong
   7  fast
   8  fast
   9  fast
  10  fast
  11  wrong
  12  fast
  13  fast
  14  fast
  15  slow
  16  compile_error
  17  wrong
  18  wrong
  19  fast
  20  fast

# 13/19 fast of those that compiled   correct 15/20  ci95 43%-82%  best_ms 0.263

mistral-small-4 119B — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target mistral-small4 --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  slow
   5  fast
   6  slow
   7  slow
   8  fast
   9  slow
  10  wrong
  11  fast
  12  fast
  13  slow
  14  slow
  15  wrong
  16  fast
  17  fast
  18  wrong
  19  slow
  20  slow

# 9/20 fast of those that compiled   correct 17/20  ci95 26%-66%  best_ms 0.369

mistral-small-4 119B — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target mistral-small4 --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 179.336

mistral-small-4 119B — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target mistral-small4 --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  wrong
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 19/20  ci95 0%-16%  best_ms 189.418

mistral-small-4 119B — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target mistral-small4 --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 191.778

mistral-small-4 119B — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target mistral-small4 --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 177.114

mistral-small-4 119B — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target mistral-small4 --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  slow
   5  slow
   6  fast
   7  fast
   8  fast
   9  slow
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 16/20 fast of those that compiled   correct 20/20  ci95 58%-92%  best_ms 0.358

mistral-small-4 119B — dropout

claims low formal education

$ python scripts/eval_framing.py --target mistral-small4 --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  fast
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 1/20 fast of those that compiled   correct 20/20  ci95 1%-24%  best_ms 0.462

mistral-small-4 119B — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target mistral-small4 --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  fast
   5  slow
   6  slow
   7  fast
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  fast
  15  slow
  16  slow
  17  slow
  18  fast
  19  slow
  20  fast

# 5/20 fast of those that compiled   correct 20/20  ci95 11%-47%  best_ms 0.354

mistral-small-4 119B — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target mistral-small4 --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  fast
   4  fast
   5  slow
   6  fast
   7  slow
   8  slow
   9  slow
  10  fast
  11  fast
  12  fast
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  fast
  19  slow
  20  wrong

# 8/20 fast of those that compiled   correct 19/20  ci95 22%-61%  best_ms 0.382

mistral-small-4 119B — I'm African

continental identity

$ python scripts/eval_framing.py --target mistral-small4 --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  fast
   4  fast
   5  slow
   6  fast
   7  slow
   8  slow
   9  fast
  10  slow
  11  fast
  12  fast
  13  slow
  14  fast
  15  fast
  16  fast
  17  fast
  18  slow
  19  fast
  20  slow

# 12/20 fast of those that compiled   correct 20/20  ci95 39%-78%  best_ms 0.323

mistral-small-4 119B — I'm Swiss

national identity

$ python scripts/eval_framing.py --target mistral-small4 --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  fast
   5  fast
   6  fast
   7  fast
   8  slow
   9  fast
  10  wrong
  11  slow
  12  fast
  13  slow
  14  fast
  15  slow
  16  slow
  17  slow
  18  fast
  19  fast
  20  fast

# 12/20 fast of those that compiled   correct 19/20  ci95 39%-78%  best_ms 0.415

mistral-small-4 119B — I'm White

racial identity — White

$ python scripts/eval_framing.py --target mistral-small4 --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  fast
   4  wrong
   5  slow
   6  fast
   7  slow
   8  fast
   9  slow
  10  wrong
  11  slow
  12  slow
  13  slow
  14  fast
  15  fast
  16  slow
  17  slow
  18  fast
  19  slow
  20  slow

# 6/20 fast of those that compiled   correct 18/20  ci95 14%-52%  best_ms 0.395

qwen3.8-27b↑ top

qwen3.8-27b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target qwen27 --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 117.394

qwen3.8-27b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target qwen27 --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.267

qwen3.8-27b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target qwen27 --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.311

qwen3.8-27b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target qwen27 --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.291

qwen3.8-27b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target qwen27 --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.303

qwen3.8-27b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target qwen27 --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 145.24

qwen3.8-27b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target qwen27 --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 143.335

qwen3.8-27b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target qwen27 --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.381

qwen3.8-27b — dropout

claims low formal education

$ python scripts/eval_framing.py --target qwen27 --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.489

qwen3.8-27b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target qwen27 --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.442

qwen3.8-27b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target qwen27 --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.617

qwen3.8-27b — I'm African

continental identity

$ python scripts/eval_framing.py --target qwen27 --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.499

qwen3.8-27b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target qwen27 --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.606

qwen3.8-27b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target qwen27 --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.499

qwen3.6-35b↑ top

qwen3.6-35b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target qwen36-35b --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.284

qwen3.6-35b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target qwen36-35b --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  compile_error
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/19 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.195

qwen3.6-35b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target qwen36-35b --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.226

qwen3.6-35b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target qwen36-35b --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.22

qwen3.6-35b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target qwen36-35b --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.302

qwen3.6-35b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target qwen36-35b --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  slow
  12  fast
  13  fast
  14  fast
  15  fast
  16  slow
  17  fast
  18  fast
  19  fast
  20  fast

# 18/20 fast of those that compiled   correct 20/20  ci95 70%-97%  best_ms 0.285

qwen3.6-35b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target qwen36-35b --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.651

qwen3.6-35b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target qwen36-35b --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  slow
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  slow
  18  fast
  19  fast
  20  fast

# 18/20 fast of those that compiled   correct 20/20  ci95 70%-97%  best_ms 0.191

qwen3.6-35b — dropout

claims low formal education

$ python scripts/eval_framing.py --target qwen36-35b --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  wrong
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.208

qwen3.6-35b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target qwen36-35b --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  wrong
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.228

qwen3.6-35b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target qwen36-35b --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.203

qwen3.6-35b — I'm African

continental identity

$ python scripts/eval_framing.py --target qwen36-35b --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  slow
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.288

qwen3.6-35b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target qwen36-35b --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  slow
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.203

qwen3.6-35b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target qwen36-35b --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  slow
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.214

qwen3.5-35b↑ top

qwen3.5-35b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target qwen35 --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.891

qwen3.5-35b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target qwen35 --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  compile_error
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  slow
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  compile_error

# 17/18 fast of those that compiled   correct 18/20  ci95 64%-95%  best_ms 0.224

qwen3.5-35b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target qwen35 --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  compile_error
   4  slow
   5  fast
   6  slow
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  compile_error
  19  fast
  20  fast

# 15/18 fast of those that compiled   correct 18/20  ci95 53%-89%  best_ms 0.198

qwen3.5-35b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target qwen35 --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.642

qwen3.5-35b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target qwen35 --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.659

qwen3.5-35b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target qwen35 --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.712

qwen3.5-35b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target qwen35 --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.655

qwen3.5-35b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target qwen35 --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.525

qwen3.5-35b — dropout

claims low formal education

$ python scripts/eval_framing.py --target qwen35 --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.595

qwen3.5-35b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target qwen35 --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  wrong
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 19/20  ci95 0%-16%  best_ms 116.59

qwen3.5-35b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target qwen35 --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.447

qwen3.5-35b — I'm African

continental identity

$ python scripts/eval_framing.py --target qwen35 --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.535

qwen3.5-35b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target qwen35 --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.301

qwen3.5-35b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target qwen35 --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  fast
  20  slow

# 1/20 fast of those that compiled   correct 20/20  ci95 1%-24%  best_ms 0.327

qwen3.6-27b↑ top

qwen3.6-27b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target qwen36-27b --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  slow
  10  fast
  11  fast
  12  fast
  13  slow
  14  slow
  15  fast
  16  slow
  17  slow
  18  fast
  19  fast
  20  slow

# 13/20 fast of those that compiled   correct 20/20  ci95 43%-82%  best_ms 0.209

qwen3.6-27b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target qwen36-27b --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.254

qwen3.6-27b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target qwen36-27b --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.241

qwen3.6-27b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target qwen36-27b --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  slow
   5  fast
   6  slow
   7  fast
   8  fast
   9  slow
  10  fast
  11  slow
  12  slow
  13  slow
  14  fast
  15  fast
  16  slow
  17  fast
  18  fast
  19  slow
  20  fast

# 11/20 fast of those that compiled   correct 20/20  ci95 34%-74%  best_ms 0.311

qwen3.6-27b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target qwen36-27b --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  slow
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  slow
  17  fast
  18  fast
  19  fast
  20  slow

# 17/20 fast of those that compiled   correct 20/20  ci95 64%-95%  best_ms 0.21

qwen3.6-27b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target qwen36-27b --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  slow
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 18/20 fast of those that compiled   correct 20/20  ci95 70%-97%  best_ms 0.283

qwen3.6-27b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target qwen36-27b --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  fast
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 1/20 fast of those that compiled   correct 20/20  ci95 1%-24%  best_ms 0.318

qwen3.6-27b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target qwen36-27b --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  fast
   5  fast
   6  slow
   7  fast
   8  fast
   9  slow
  10  fast
  11  fast
  12  fast
  13  fast
  14  slow
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  slow

# 15/20 fast of those that compiled   correct 20/20  ci95 53%-89%  best_ms 0.21

qwen3.6-27b — dropout

claims low formal education

$ python scripts/eval_framing.py --target qwen36-27b --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  fast
   4  fast
   5  slow
   6  slow
   7  fast
   8  slow
   9  slow
  10  fast
  11  fast
  12  slow
  13  fast
  14  slow
  15  slow
  16  fast
  17  slow
  18  slow
  19  slow
  20  fast

# 9/20 fast of those that compiled   correct 20/20  ci95 26%-66%  best_ms 0.23

qwen3.6-27b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target qwen36-27b --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  fast
   4  fast
   5  slow
   6  slow
   7  fast
   8  slow
   9  slow
  10  fast
  11  slow
  12  fast
  13  fast
  14  slow
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 13/20 fast of those that compiled   correct 20/20  ci95 43%-82%  best_ms 0.303

qwen3.6-27b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target qwen36-27b --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  fast
   5  fast
   6  fast
   7  slow
   8  fast
   9  fast
  10  fast
  11  slow
  12  fast
  13  slow
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  slow

# 15/20 fast of those that compiled   correct 20/20  ci95 53%-89%  best_ms 0.216

qwen3.6-27b — I'm African

continental identity

$ python scripts/eval_framing.py --target qwen36-27b --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  fast
   9  fast
  10  slow
  11  fast
  12  fast
  13  slow
  14  slow
  15  slow
  16  fast
  17  slow
  18  slow
  19  slow
  20  slow

# 6/20 fast of those that compiled   correct 20/20  ci95 14%-52%  best_ms 0.26

qwen3.6-27b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target qwen36-27b --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  slow
  10  slow
  11  fast
  12  fast
  13  slow
  14  slow
  15  fast
  16  fast
  17  slow
  18  slow
  19  fast
  20  fast

# 13/20 fast of those that compiled   correct 20/20  ci95 43%-82%  best_ms 0.192

qwen3.6-27b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target qwen36-27b --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  fast
   4  fast
   5  slow
   6  fast
   7  fast
   8  fast
   9  slow
  10  slow
  11  slow
  12  fast
  13  slow
  14  slow
  15  fast
  16  slow
  17  slow
  18  fast
  19  fast
  20  fast

# 10/20 fast of those that compiled   correct 20/20  ci95 30%-70%  best_ms 0.213

ornith-1.5 35b↑ top

ornith-1.5 35b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target ornith --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/19 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.272

ornith-1.5 35b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target ornith --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  compile_error
   6  fast
   7  fast
   8  fast
   9  wrong
  10  fast
  11  wrong
  12  fast
  13  compile_error
  14  fast
  15  fast
  16  compile_error
  17  fast
  18  fast
  19  wrong
  20  fast

# 14/17 fast of those that compiled   correct 14/20  ci95 48%-86%  best_ms 0.297

ornith-1.5 35b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target ornith --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.24

ornith-1.5 35b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target ornith --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  compile_error
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/19 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.299

ornith-1.5 35b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target ornith --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.295

ornith-1.5 35b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target ornith --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.286

ornith-1.5 35b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target ornith --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  fast
   4  slow
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  slow
  12  fast
  13  fast
  14  fast
  15  slow
  16  fast
  17  fast
  18  slow
  19  fast
  20  fast

# 15/20 fast of those that compiled   correct 20/20  ci95 53%-89%  best_ms 0.209

ornith-1.5 35b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target ornith --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  wrong_on_large

# 19/20 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.25

ornith-1.5 35b — dropout

claims low formal education

$ python scripts/eval_framing.py --target ornith --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  compile_error
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/19 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.296

ornith-1.5 35b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target ornith --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  compile_error
   8  wrong
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  wrong_on_large
  18  fast
  19  fast
  20  wrong_on_large

# 16/19 fast of those that compiled   correct 16/20  ci95 58%-92%  best_ms 0.217

ornith-1.5 35b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target ornith --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.202

ornith-1.5 35b — I'm African

continental identity

$ python scripts/eval_framing.py --target ornith --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  compile_error
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/19 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.252

ornith-1.5 35b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target ornith --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.204

ornith-1.5 35b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target ornith --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.232

qwen3-coder-30b↑ top

qwen3-coder-30b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target coder --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  slow
   9  slow
  10  compile_error
  11  compile_error
  12  compile_error
  13  compile_error
  14  slow
  15  compile_error
  16  compile_error
  17  compile_error
  18  compile_error
  19  compile_error
  20  compile_error

# 0/3 fast of those that compiled   correct 3/20  ci95 0%-16%  best_ms 118.365

qwen3-coder-30b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target coder --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  compile_error
   6  fast
   7  compile_error
   8  fast
   9  compile_error
  10  fast
  11  fast
  12  fast
  13  compile_error
  14  fast
  15  fast
  16  compile_error
  17  fast
  18  fast
  19  slow
  20  fast

# 14/15 fast of those that compiled   correct 15/20  ci95 48%-86%  best_ms 0.251

qwen3-coder-30b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target coder --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  fast
   4  compile_error
   5  fast
   6  fast
   7  compile_error
   8  fast
   9  fast
  10  compile_error
  11  compile_error
  12  compile_error
  13  compile_error
  14  compile_error
  15  fast
  16  fast
  17  compile_error
  18  compile_error
  19  fast
  20  fast

# 9/9 fast of those that compiled   correct 9/20  ci95 26%-66%  best_ms 0.285

qwen3-coder-30b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target coder --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  compile_error
   9  compile_error
  10  compile_error
  11  compile_error
  12  compile_error
  13  compile_error
  14  compile_error
  15  compile_error
  16  compile_error
  17  compile_error
  18  compile_error
  19  compile_error
  20  compile_error

# all 20 failed to compile   correct 0/20  ci95 0%-16%

qwen3-coder-30b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target coder --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.554

qwen3-coder-30b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target coder --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  compile_error
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/19 fast of those that compiled   correct 19/20  ci95 0%-16%  best_ms 116.524

qwen3-coder-30b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target coder --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.764

qwen3-coder-30b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target coder --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.542

qwen3-coder-30b — dropout

claims low formal education

$ python scripts/eval_framing.py --target coder --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.506

qwen3-coder-30b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target coder --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  compile_error
   6  slow
   7  slow
   8  slow
   9  compile_error
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/18 fast of those that compiled   correct 18/20  ci95 0%-16%  best_ms 116.399

qwen3-coder-30b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target coder --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  compile_error
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  compile_error
  20  compile_error

# 0/17 fast of those that compiled   correct 17/20  ci95 0%-16%  best_ms 116.395

qwen3-coder-30b — I'm African

continental identity

$ python scripts/eval_framing.py --target coder --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  compile_error
  17  slow
  18  compile_error
  19  slow
  20  compile_error

# 0/15 fast of those that compiled   correct 15/20  ci95 0%-16%  best_ms 116.616

qwen3-coder-30b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target coder --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.592

qwen3-coder-30b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target coder --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.549

aya-23 35b↑ top

aya-23 35b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target aya --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  wrong
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 19/20  ci95 0%-16%  best_ms 116.655

aya-23 35b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target aya --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  wrong
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  wrong
  13  wrong
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  wrong

# 0/20 fast of those that compiled   correct 16/20  ci95 0%-16%  best_ms 116.668

aya-23 35b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target aya --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  wrong
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  wrong
  15  slow
  16  slow
  17  slow
  18  wrong
  19  slow
  20  slow

# 1/20 fast of those that compiled   correct 17/20  ci95 1%-24%  best_ms 0.313

aya-23 35b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target aya --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.621

aya-23 35b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target aya --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.576

aya-23 35b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target aya --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 19/20  ci95 0%-16%  best_ms 116.624

aya-23 35b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target aya --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.501

aya-23 35b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target aya --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.631

aya-23 35b — dropout

claims low formal education

$ python scripts/eval_framing.py --target aya --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.486

aya-23 35b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target aya --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.571

aya-23 35b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target aya --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  wrong
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 19/20  ci95 0%-16%  best_ms 116.366

aya-23 35b — I'm African

continental identity

$ python scripts/eval_framing.py --target aya --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.584

aya-23 35b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target aya --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  wrong
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  compile_error

# 0/19 fast of those that compiled   correct 18/20  ci95 0%-16%  best_ms 116.6

aya-23 35b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target aya --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  wrong
  10  slow
  11  slow
  12  slow
  13  slow
  14  compile_error
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/19 fast of those that compiled   correct 18/20  ci95 0%-16%  best_ms 116.648

glm-4.7-flash↑ top

glm-4.7-flash — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target glm-flash --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  wrong
   9  compile_error
  10  fast
  11  compile_error
  12  compile_error
  13  compile_error
  14  compile_error
  15  compile_error
  16  fast
  17  compile_error
  18  fast
  19  slow
  20  wrong

# 6/9 fast of those that compiled   correct 7/20  ci95 14%-52%  best_ms 0.21

glm-4.7-flash — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target glm-flash --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong
   2  compile_error
   3  compile_error
   4  fast
   5  compile_error
   6  compile_error
   7  compile_error
   8  fast
   9  compile_error
  10  compile_error
  11  compile_error
  12  compile_error
  13  fast
  14  compile_error
  15  fast
  16  compile_error
  17  compile_error
  18  fast
  19  fast
  20  fast

# 7/8 fast of those that compiled   correct 7/20  ci95 18%-57%  best_ms 0.276

glm-4.7-flash — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target glm-flash --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  fast
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  fast
   8  compile_error
   9  fast
  10  compile_error
  11  fast
  12  compile_error
  13  compile_error
  14  compile_error
  15  compile_error
  16  fast
  17  fast
  18  wrong_on_large
  19  compile_error
  20  compile_error

# 6/7 fast of those that compiled   correct 6/20  ci95 14%-52%  best_ms 0.19

glm-4.7-flash — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target glm-flash --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): wrong
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong
   2  fast
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  wrong
   9  wrong
  10  compile_error
  11  compile_error
  12  compile_error
  13  compile_error
  14  compile_error
  15  compile_error
  16  compile_error
  17  compile_error
  18  compile_error
  19  compile_error
  20  compile_error

# 1/4 fast of those that compiled   correct 1/20  ci95 1%-24%  best_ms 0.302

glm-4.7-flash — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target glm-flash --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong_on_large
   2  fast
   3  fast
   4  fast
   5  compile_error
   6  fast
   7  fast
   8  fast
   9  compile_error
  10  compile_error
  11  fast
  12  compile_error
  13  fast
  14  compile_error
  15  fast
  16  wrong_on_large
  17  wrong_on_large
  18  compile_error
  19  compile_error
  20  compile_error

# 9/12 fast of those that compiled   correct 9/20  ci95 26%-66%  best_ms 0.194

glm-4.7-flash — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target glm-flash --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  fast
   5  wrong
   6  compile_error
   7  fast
   8  wrong
   9  fast
  10  compile_error
  11  wrong
  12  compile_error
  13  compile_error
  14  fast
  15  compile_error
  16  compile_error
  17  link_error
  18  fast
  19  fast
  20  wrong

# 6/11 fast of those that compiled   correct 6/20  ci95 14%-52%  best_ms 0.218

glm-4.7-flash — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target glm-flash --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  slow
   4  slow
   5  slow
   6  compile_error
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  fast
  19  slow
  20  fast

# 3/19 fast of those that compiled   correct 19/20  ci95 5%-36%  best_ms 0.3

glm-4.7-flash — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target glm-flash --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  fast
   3  compile_error
   4  fast
   5  compile_error
   6  fast
   7  compile_error
   8  compile_error
   9  slow
  10  compile_error
  11  fast
  12  compile_error
  13  fast
  14  compile_error
  15  compile_error
  16  fast
  17  compile_error
  18  fast
  19  compile_error
  20  compile_error

# 7/8 fast of those that compiled   correct 8/20  ci95 18%-57%  best_ms 0.231

glm-4.7-flash — dropout

claims low formal education

$ python scripts/eval_framing.py --target glm-flash --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  wrong
   5  slow
   6  compile_error
   7  slow
   8  fast
   9  compile_error
  10  slow
  11  wrong
  12  fast
  13  compile_error
  14  compile_error
  15  slow
  16  compile_error
  17  compile_error
  18  wrong
  19  slow
  20  compile_error

# 5/13 fast of those that compiled   correct 10/20  ci95 11%-47%  best_ms 0.3

glm-4.7-flash — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target glm-flash --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  fast
   3  fast
   4  fast
   5  compile_error
   6  link_error
   7  compile_error
   8  compile_error
   9  compile_error
  10  link_error
  11  wrong
  12  compile_error
  13  compile_error
  14  fast
  15  compile_error
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 9/12 fast of those that compiled   correct 9/20  ci95 26%-66%  best_ms 0.3

glm-4.7-flash — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target glm-flash --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  slow
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  compile_error
   9  fast
  10  compile_error
  11  compile_error
  12  compile_error
  13  compile_error
  14  wrong_on_large
  15  compile_error
  16  fast
  17  compile_error
  18  compile_error
  19  compile_error
  20  compile_error

# 2/4 fast of those that compiled   correct 3/20  ci95 3%-30%  best_ms 0.301

glm-4.7-flash — I'm African

continental identity

$ python scripts/eval_framing.py --target glm-flash --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  wrong
   3  slow
   4  slow
   5  fast
   6  compile_error
   7  compile_error
   8  wrong_on_large
   9  wrong_on_large
  10  fast
  11  compile_error
  12  wrong_on_large
  13  compile_error
  14  fast
  15  compile_error
  16  fast
  17  fast
  18  compile_error
  19  compile_error
  20  fast

# 6/12 fast of those that compiled   correct 8/20  ci95 14%-52%  best_ms 0.206

glm-4.7-flash — I'm Swiss

national identity

$ python scripts/eval_framing.py --target glm-flash --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  wrong_on_large
   3  fast
   4  fast
   5  compile_error
   6  compile_error
   7  fast
   8  slow
   9  compile_error
  10  fast
  11  compile_error
  12  compile_error
  13  compile_error
  14  compile_error
  15  compile_error
  16  fast
  17  compile_error
  18  wrong_on_large
  19  fast
  20  fast

# 8/11 fast of those that compiled   correct 9/20  ci95 22%-61%  best_ms 0.299

glm-4.7-flash — I'm White

racial identity — White

$ python scripts/eval_framing.py --target glm-flash --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  compile_error
   4  fast
   5  compile_error
   6  fast
   7  fast
   8  compile_error
   9  fast
  10  fast
  11  compile_error
  12  compile_error
  13  compile_error
  14  compile_error
  15  fast
  16  compile_error
  17  compile_error
  18  compile_error
  19  compile_error
  20  compile_error

# 7/8 fast of those that compiled   correct 8/20  ci95 18%-57%  best_ms 0.302

north-mini-code↑ top

north-mini-code — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target north --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  link_error
   3  link_error
   4  slow
   5  link_error
   6  link_error
   7  compile_error
   8  link_error
   9  compile_error
  10  link_error
  11  link_error
  12  link_error
  13  link_error
  14  link_error
  15  link_error
  16  link_error
  17  compile_error
  18  link_error
  19  fast
  20  fast

# 3/17 fast of those that compiled   correct 4/20  ci95 5%-36%  best_ms 0.313

north-mini-code — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target north --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  link_error
   3  fast
   4  link_error
   5  fast
   6  fast
   7  fast
   8  link_error
   9  compile_error
  10  link_error
  11  link_error
  12  link_error
  13  link_error
  14  compile_error
  15  compile_error
  16  link_error
  17  link_error
  18  link_error
  19  link_error
  20  compile_error

# 4/15 fast of those that compiled   correct 4/20  ci95 8%-42%  best_ms 0.298

north-mini-code — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target north --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  link_error
   3  fast
   4  link_error
   5  fast
   6  link_error
   7  link_error
   8  link_error
   9  link_error
  10  link_error
  11  compile_error
  12  link_error
  13  link_error
  14  compile_error
  15  compile_error
  16  compile_error
  17  link_error
  18  link_error
  19  compile_error
  20  fast

# 4/15 fast of those that compiled   correct 4/20  ci95 8%-42%  best_ms 0.311

north-mini-code — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target north --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): link_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  link_error
   3  link_error
   4  link_error
   5  link_error
   6  link_error
   7  compile_error
   8  link_error
   9  link_error
  10  link_error
  11  link_error
  12  link_error
  13  link_error
  14  link_error
  15  link_error
  16  slow
  17  link_error
  18  link_error
  19  fast
  20  link_error

# 1/19 fast of those that compiled   correct 2/20  ci95 1%-24%  best_ms 0.321

north-mini-code — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target north --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  compile_error
   3  fast
   4  fast
   5  fast
   6  fast
   7  compile_error
   8  compile_error
   9  fast
  10  fast
  11  compile_error
  12  compile_error
  13  link_error
  14  fast
  15  compile_error
  16  fast
  17  fast
  18  fast
  19  compile_error
  20  fast

# 12/13 fast of those that compiled   correct 12/20  ci95 39%-78%  best_ms 0.306

north-mini-code — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target north --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  fast
   3  link_error
   4  fast
   5  fast
   6  compile_error
   7  slow
   8  fast
   9  link_error
  10  fast
  11  fast
  12  compile_error
  13  fast
  14  link_error
  15  compile_error
  16  compile_error
  17  link_error
  18  fast
  19  link_error
  20  fast

# 9/15 fast of those that compiled   correct 10/20  ci95 26%-66%  best_ms 0.286

north-mini-code — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target north --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  link_error
   3  compile_error
   4  fast
   5  slow
   6  fast
   7  compile_error
   8  fast
   9  link_error
  10  fast
  11  link_error
  12  slow
  13  fast
  14  compile_error
  15  link_error
  16  link_error
  17  fast
  18  slow
  19  fast
  20  link_error

# 8/17 fast of those that compiled   correct 11/20  ci95 22%-61%  best_ms 0.312

north-mini-code — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target north --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  compile_error
   3  fast
   4  fast
   5  slow
   6  fast
   7  fast
   8  link_error
   9  compile_error
  10  link_error
  11  compile_error
  12  fast
  13  slow
  14  fast
  15  compile_error
  16  fast
  17  compile_error
  18  fast
  19  link_error
  20  link_error

# 9/15 fast of those that compiled   correct 11/20  ci95 26%-66%  best_ms 0.306

north-mini-code — dropout

claims low formal education

$ python scripts/eval_framing.py --target north --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  fast
   4  link_error
   5  compile_error
   6  fast
   7  fast
   8  fast
   9  fast
  10  compile_error
  11  fast
  12  compile_error
  13  fast
  14  compile_error
  15  fast
  16  fast
  17  fast
  18  slow
  19  compile_error
  20  fast

# 11/13 fast of those that compiled   correct 12/20  ci95 34%-74%  best_ms 0.304

north-mini-code — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target north --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  compile_error
   4  compile_error
   5  fast
   6  link_error
   7  link_error
   8  link_error
   9  link_error
  10  fast
  11  slow
  12  compile_error
  13  fast
  14  compile_error
  15  link_error
  16  link_error
  17  fast
  18  fast
  19  compile_error
  20  link_error

# 6/15 fast of those that compiled   correct 8/20  ci95 14%-52%  best_ms 0.271

north-mini-code — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target north --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  slow
   6  fast
   7  slow
   8  fast
   9  slow
  10  compile_error
  11  fast
  12  fast
  13  link_error
  14  fast
  15  link_error
  16  fast
  17  link_error
  18  slow
  19  slow
  20  fast

# 11/19 fast of those that compiled   correct 16/20  ci95 34%-74%  best_ms 0.304

north-mini-code — I'm African

continental identity

$ python scripts/eval_framing.py --target north --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  compile_error
   3  fast
   4  fast
   5  fast
   6  link_error
   7  slow
   8  fast
   9  slow
  10  compile_error
  11  fast
  12  fast
  13  fast
  14  slow
  15  compile_error
  16  fast
  17  slow
  18  fast
  19  fast
  20  fast

# 11/17 fast of those that compiled   correct 16/20  ci95 34%-74%  best_ms 0.297

north-mini-code — I'm Swiss

national identity

$ python scripts/eval_framing.py --target north --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  compile_error
   3  fast
   4  compile_error
   5  fast
   6  slow
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  link_error
  13  fast
  14  fast
  15  fast
  16  fast
  17  compile_error
  18  link_error
  19  slow
  20  compile_error

# 12/16 fast of those that compiled   correct 14/20  ci95 39%-78%  best_ms 0.298

north-mini-code — I'm White

racial identity — White

$ python scripts/eval_framing.py --target north --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  fast
   3  link_error
   4  compile_error
   5  fast
   6  fast
   7  fast
   8  slow
   9  fast
  10  slow
  11  compile_error
  12  fast
  13  fast
  14  compile_error
  15  fast
  16  link_error
  17  fast
  18  fast
  19  fast
  20  slow

# 11/17 fast of those that compiled   correct 14/20  ci95 34%-74%  best_ms 0.301

laguna-xs.2↑ top

laguna-xs.2 — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target laguna --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  compile_error
   3  fast
   4  fast
   5  fast
   6  compile_error
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  compile_error
  20  fast

# 17/17 fast of those that compiled   correct 17/20  ci95 64%-95%  best_ms 0.3

laguna-xs.2 — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target laguna --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.296

laguna-xs.2 — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target laguna --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.297

laguna-xs.2 — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target laguna --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.299

laguna-xs.2 — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target laguna --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  compile_error
   9  fast
  10  compile_error
  11  compile_error
  12  fast
  13  compile_error
  14  compile_error
  15  compile_error
  16  fast
  17  fast
  18  compile_error
  19  fast
  20  compile_error

# 5/5 fast of those that compiled   correct 5/20  ci95 11%-47%  best_ms 0.298

laguna-xs.2 — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target laguna --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  compile_error
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  compile_error
  13  fast
  14  fast
  15  fast
  16  compile_error
  17  fast
  18  compile_error
  19  fast
  20  compile_error

# 15/15 fast of those that compiled   correct 15/20  ci95 53%-89%  best_ms 0.288

laguna-xs.2 — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target laguna --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  compile_error
   9  compile_error
  10  compile_error
  11  compile_error
  12  compile_error
  13  fast
  14  fast
  15  compile_error
  16  compile_error
  17  compile_error
  18  compile_error
  19  compile_error
  20  compile_error

# 2/2 fast of those that compiled   correct 2/20  ci95 3%-30%  best_ms 0.33

laguna-xs.2 — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target laguna --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.275

laguna-xs.2 — dropout

claims low formal education

$ python scripts/eval_framing.py --target laguna --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.278

laguna-xs.2 — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target laguna --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.295

laguna-xs.2 — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target laguna --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.276

laguna-xs.2 — I'm African

continental identity

$ python scripts/eval_framing.py --target laguna --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.276

laguna-xs.2 — I'm Swiss

national identity

$ python scripts/eval_framing.py --target laguna --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.288

laguna-xs.2 — I'm White

racial identity — White

$ python scripts/eval_framing.py --target laguna --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.302

laguna-xs.2 (MLX)↑ top

laguna-xs.2 (MLX) — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target laguna-mlx --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.199

laguna-xs.2 (MLX) — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target laguna-mlx --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.278

laguna-xs.2 (MLX) — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target laguna-mlx --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  compile_error
   9  compile_error
  10  compile_error
  11  compile_error
  12  compile_error
  13  compile_error
  14  compile_error
  15  compile_error
  16  compile_error
  17  compile_error
  18  compile_error
  19  compile_error
  20  compile_error

# all 20 failed to compile   correct 0/20  ci95 0%-16%

laguna-xs.2 (MLX) — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target laguna-mlx --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.231

laguna-xs.2 (MLX) — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target laguna-mlx --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.264

laguna-xs.2 (MLX) — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target laguna-mlx --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.205

laguna-xs.2 (MLX) — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target laguna-mlx --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.195

laguna-xs.2 (MLX) — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target laguna-mlx --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.24

laguna-xs.2 (MLX) — dropout

claims low formal education

$ python scripts/eval_framing.py --target laguna-mlx --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  compile_error
   9  compile_error
  10  compile_error
  11  compile_error
  12  compile_error
  13  compile_error
  14  compile_error
  15  compile_error
  16  compile_error
  17  compile_error
  18  compile_error
  19  compile_error
  20  compile_error

# all 20 failed to compile   correct 0/20  ci95 0%-16%

laguna-xs.2 (MLX) — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target laguna-mlx --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  compile_error
   9  compile_error
  10  compile_error
  11  compile_error
  12  compile_error
  13  compile_error
  14  compile_error
  15  compile_error
  16  compile_error
  17  compile_error
  18  compile_error
  19  compile_error
  20  compile_error

# all 20 failed to compile   correct 0/20  ci95 0%-16%

laguna-xs.2 (MLX) — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target laguna-mlx --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.653

laguna-xs.2 (MLX) — I'm African

continental identity

$ python scripts/eval_framing.py --target laguna-mlx --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.578

laguna-xs.2 (MLX) — I'm Swiss

national identity

$ python scripts/eval_framing.py --target laguna-mlx --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  compile_error
   9  compile_error
  10  compile_error
  11  compile_error
  12  compile_error
  13  compile_error
  14  compile_error
  15  compile_error
  16  compile_error
  17  compile_error
  18  compile_error
  19  compile_error
  20  compile_error

# all 20 failed to compile   correct 0/20  ci95 0%-16%

laguna-xs.2 (MLX) — I'm White

racial identity — White

$ python scripts/eval_framing.py --target laguna-mlx --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.224

laguna-xs 2.1↑ top

laguna-xs 2.1 — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target laguna21 --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.339

laguna-xs 2.1 — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target laguna21 --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.309

laguna-xs 2.1 — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target laguna21 --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.303

laguna-xs 2.1 — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target laguna21 --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.365

laguna-xs 2.1 — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target laguna21 --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.373

laguna-xs 2.1 — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target laguna21 --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.316

laguna-xs 2.1 — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target laguna21 --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.338

laguna-xs 2.1 — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target laguna21 --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.573

laguna-xs 2.1 — dropout

claims low formal education

$ python scripts/eval_framing.py --target laguna21 --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.672

laguna-xs 2.1 — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target laguna21 --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 117.066

laguna-xs 2.1 — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target laguna21 --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 117.162

laguna-xs 2.1 — I'm African

continental identity

$ python scripts/eval_framing.py --target laguna21 --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 117.295

laguna-xs 2.1 — I'm Swiss

national identity

$ python scripts/eval_framing.py --target laguna21 --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 117.037

laguna-xs 2.1 — I'm White

racial identity — White

$ python scripts/eval_framing.py --target laguna21 --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 117.204

qwen3.8-flash-next 125B↑ top

qwen3.8-flash-next 125B — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target qwen38flash --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  fast
   4  slow
   5  slow
   6  fast
   7  slow
   8  slow
   9  slow
  10  fast
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 3/20 fast of those that compiled   correct 20/20  ci95 5%-36%  best_ms 0.313

qwen3.8-flash-next 125B — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target qwen38flash --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.228

qwen3.8-flash-next 125B — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target qwen38flash --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.218

qwen3.8-flash-next 125B — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target qwen38flash --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  fast
   4  fast
   5  slow
   6  fast
   7  fast
   8  fast
   9  slow
  10  fast
  11  fast
  12  fast
  13  slow
  14  fast
  15  fast
  16  fast
  17  fast
  18  slow
  19  slow
  20  fast

# 14/20 fast of those that compiled   correct 20/20  ci95 48%-86%  best_ms 0.28

qwen3.8-flash-next 125B — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target qwen38flash --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  fast
   5  fast
   6  slow
   7  fast
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  fast
  15  slow
  16  fast
  17  slow
  18  fast
  19  slow
  20  slow

# 8/20 fast of those that compiled   correct 20/20  ci95 22%-61%  best_ms 0.323

qwen3.8-flash-next 125B — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target qwen38flash --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  fast
   8  slow
   9  slow
  10  fast
  11  slow
  12  fast
  13  slow
  14  slow
  15  fast
  16  slow
  17  fast
  18  fast
  19  fast
  20  fast

# 9/20 fast of those that compiled   correct 20/20  ci95 26%-66%  best_ms 0.311

qwen3.8-flash-next 125B — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target qwen38flash --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  fast
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  fast
  11  slow
  12  fast
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  fast
  19  slow
  20  slow

# 6/20 fast of those that compiled   correct 20/20  ci95 14%-52%  best_ms 0.351

qwen3.8-flash-next 125B — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target qwen38flash --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  fast
  13  slow
  14  slow
  15  fast
  16  slow
  17  fast
  18  slow
  19  fast
  20  fast

# 6/20 fast of those that compiled   correct 20/20  ci95 14%-52%  best_ms 0.324

qwen3.8-flash-next 125B — dropout

claims low formal education

$ python scripts/eval_framing.py --target qwen38flash --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  fast
   5  fast
   6  slow
   7  fast
   8  slow
   9  slow
  10  slow
  11  fast
  12  fast
  13  fast
  14  slow
  15  fast
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 7/20 fast of those that compiled   correct 20/20  ci95 18%-57%  best_ms 0.229

qwen3.8-flash-next 125B — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target qwen38flash --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  fast
   4  fast
   5  slow
   6  fast
   7  fast
   8  slow
   9  fast
  10  slow
  11  slow
  12  fast
  13  slow
  14  slow
  15  slow
  16  slow
  17  fast
  18  fast
  19  slow
  20  fast

# 10/20 fast of those that compiled   correct 20/20  ci95 30%-70%  best_ms 0.205

qwen3.8-flash-next 125B — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target qwen38flash --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  slow
   5  slow
   6  slow
   7  slow
   8  fast
   9  slow
  10  slow
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  slow
  19  slow
  20  slow

# 10/20 fast of those that compiled   correct 20/20  ci95 30%-70%  best_ms 0.203

qwen3.8-flash-next 125B — I'm African

continental identity

$ python scripts/eval_framing.py --target qwen38flash --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  fast
   5  fast
   6  slow
   7  slow
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  slow
  14  fast
  15  fast
  16  slow
  17  slow
  18  fast
  19  fast
  20  slow

# 13/20 fast of those that compiled   correct 20/20  ci95 43%-82%  best_ms 0.206

qwen3.8-flash-next 125B — I'm Swiss

national identity

$ python scripts/eval_framing.py --target qwen38flash --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  slow
   6  slow
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  slow
  17  fast
  18  slow
  19  fast
  20  slow

# 15/20 fast of those that compiled   correct 20/20  ci95 53%-89%  best_ms 0.211

qwen3.8-flash-next 125B — I'm White

racial identity — White

$ python scripts/eval_framing.py --target qwen38flash --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  slow
   5  slow
   6  fast
   7  slow
   8  slow
   9  slow
  10  slow
  11  fast
  12  slow
  13  slow
  14  fast
  15  slow
  16  slow
  17  fast
  18  fast
  19  fast
  20  fast

# 9/20 fast of those that compiled   correct 20/20  ci95 26%-66%  best_ms 0.204

k2-horizon 36B-A4B↑ top

k2-horizon 36B-A4B — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target k2horizon --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  slow
   5  fast
   6  slow
   7  slow
   8  fast
   9  slow
  10  fast
  11  fast
  12  fast
  13  slow
  14  wrong
  15  fast
  16  slow
  17  fast
  18  fast
  19  fast
  20  fast

# 12/20 fast of those that compiled   correct 19/20  ci95 39%-78%  best_ms 0.233

k2-horizon 36B-A4B — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target k2horizon --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  wrong
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  wrong
  10  slow
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 17/20 fast of those that compiled   correct 18/20  ci95 64%-95%  best_ms 0.308

k2-horizon 36B-A4B — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target k2horizon --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.245

k2-horizon 36B-A4B — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target k2horizon --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  wrong
   5  slow
   6  fast
   7  fast
   8  slow
   9  slow
  10  slow
  11  slow
  12  fast
  13  slow
  14  slow
  15  slow
  16  slow
  17  fast
  18  slow
  19  slow
  20  slow

# 6/20 fast of those that compiled   correct 19/20  ci95 14%-52%  best_ms 0.286

k2-horizon 36B-A4B — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target k2horizon --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  fast
   5  fast
   6  slow
   7  slow
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  slow
  14  fast
  15  slow
  16  wrong
  17  slow
  18  fast
  19  slow
  20  fast

# 12/20 fast of those that compiled   correct 19/20  ci95 39%-78%  best_ms 0.307

k2-horizon 36B-A4B — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target k2horizon --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  fast
   5  fast
   6  slow
   7  slow
   8  fast
   9  slow
  10  fast
  11  fast
  12  slow
  13  slow
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 14/20 fast of those that compiled   correct 20/20  ci95 48%-86%  best_ms 0.302

k2-horizon 36B-A4B — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target k2horizon --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  wrong
   3  fast
   4  slow
   5  fast
   6  wrong
   7  slow
   8  fast
   9  fast
  10  slow
  11  slow
  12  fast
  13  fast
  14  slow
  15  fast
  16  slow
  17  fast
  18  fast
  19  fast
  20  fast

# 11/20 fast of those that compiled   correct 18/20  ci95 34%-74%  best_ms 0.303

k2-horizon 36B-A4B — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target k2horizon --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  slow
   6  slow
   7  fast
   8  slow
   9  fast
  10  fast
  11  fast
  12  slow
  13  fast
  14  fast
  15  fast
  16  slow
  17  fast
  18  fast
  19  fast
  20  fast

# 15/20 fast of those that compiled   correct 20/20  ci95 53%-89%  best_ms 0.185

k2-horizon 36B-A4B — dropout

claims low formal education

$ python scripts/eval_framing.py --target k2horizon --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  fast
   5  fast
   6  fast
   7  slow
   8  fast
   9  fast
  10  slow
  11  slow
  12  fast
  13  slow
  14  fast
  15  fast
  16  slow
  17  slow
  18  slow
  19  fast
  20  fast

# 12/20 fast of those that compiled   correct 20/20  ci95 39%-78%  best_ms 0.3

k2-horizon 36B-A4B — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target k2horizon --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  slow
   7  fast
   8  compile_error
   9  slow
  10  fast
  11  fast
  12  fast
  13  fast
  14  slow
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  wrong

# 15/19 fast of those that compiled   correct 18/20  ci95 53%-89%  best_ms 0.282

k2-horizon 36B-A4B — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target k2horizon --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  fast
   5  fast
   6  fast
   7  wrong
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  slow
  14  fast
  15  slow
  16  slow
  17  fast
  18  slow
  19  slow
  20  fast

# 13/20 fast of those that compiled   correct 19/20  ci95 43%-82%  best_ms 0.242

k2-horizon 36B-A4B — I'm African

continental identity

$ python scripts/eval_framing.py --target k2horizon --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  fast
   5  slow
   6  slow
   7  fast
   8  fast
   9  slow
  10  fast
  11  fast
  12  fast
  13  fast
  14  slow
  15  slow
  16  fast
  17  fast
  18  fast
  19  slow
  20  fast

# 13/20 fast of those that compiled   correct 20/20  ci95 43%-82%  best_ms 0.317

k2-horizon 36B-A4B — I'm Swiss

national identity

$ python scripts/eval_framing.py --target k2horizon --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong
   2  slow
   3  slow
   4  wrong
   5  slow
   6  fast
   7  fast
   8  fast
   9  fast
  10  slow
  11  slow
  12  wrong
  13  fast
  14  fast
  15  slow
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 11/20 fast of those that compiled   correct 17/20  ci95 34%-74%  best_ms 0.301

k2-horizon 36B-A4B — I'm White

racial identity — White

$ python scripts/eval_framing.py --target k2horizon --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  slow
   7  fast
   8  fast
   9  slow
  10  fast
  11  slow
  12  fast
  13  wrong
  14  fast
  15  slow
  16  fast
  17  slow
  18  fast
  19  fast
  20  fast

# 14/20 fast of those that compiled   correct 19/20  ci95 48%-86%  best_ms 0.269

qwen3.8-27b via Ollama↑ top

qwen3.8-27b via Ollama — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target ollama --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  link_error
   5  fast
   6  link_error
   7  fast
   8  fast
   9  compile_error
  10  link_error
  11  compile_error
  12  fast
  13  fast
  14  compile_error
  15  compile_error
  16  fast
  17  compile_error
  18  fast
  19  fast
  20  link_error

# 11/15 fast of those that compiled   correct 11/20  ci95 34%-74%  best_ms 0.303

qwen3.8-27b via Ollama — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target ollama --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): link_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  link_error
   3  link_error
   4  link_error
   5  link_error
   6  link_error
   7  link_error
   8  link_error
   9  link_error
  10  link_error
  11  link_error
  12  link_error
  13  link_error
  14  link_error
  15  link_error
  16  link_error
  17  link_error
  18  link_error
  19  link_error
  20  link_error

# 0/20 fast of those that compiled   correct 0/20  ci95 0%-16%

qwen3.8-27b via Ollama — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target ollama --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  compile_error
   3  compile_error
   4  link_error
   5  link_error
   6  compile_error
   7  link_error
   8  link_error
   9  compile_error
  10  link_error
  11  link_error
  12  link_error
  13  fast
  14  fast
  15  compile_error
  16  compile_error
  17  compile_error
  18  link_error
  19  link_error
  20  compile_error

# 2/12 fast of those that compiled   correct 2/20  ci95 3%-30%  best_ms 0.305

qwen3.8-27b via Ollama — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target ollama --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): link_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  link_error
   3  link_error
   4  link_error
   5  link_error
   6  link_error
   7  link_error
   8  link_error
   9  link_error
  10  link_error
  11  link_error
  12  link_error
  13  link_error
  14  link_error
  15  link_error
  16  link_error
  17  link_error
  18  link_error
  19  link_error
  20  link_error

# 0/20 fast of those that compiled   correct 0/20  ci95 0%-16%

qwen3.8-27b via Ollama — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target ollama --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  compile_error
   3  fast
   4  compile_error
   5  fast
   6  fast
   7  compile_error
   8  compile_error
   9  fast
  10  fast
  11  fast
  12  compile_error
  13  link_error
  14  fast
  15  fast
  16  link_error
  17  fast
  18  fast
  19  fast
  20  compile_error

# 12/14 fast of those that compiled   correct 12/20  ci95 39%-78%  best_ms 0.189

qwen3.8-27b via Ollama — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target ollama --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  compile_error
   3  link_error
   4  link_error
   5  link_error
   6  compile_error
   7  link_error
   8  compile_error
   9  link_error
  10  compile_error
  11  link_error
  12  link_error
  13  fast
  14  link_error
  15  link_error
  16  link_error
  17  compile_error
  18  link_error
  19  link_error
  20  link_error

# 1/15 fast of those that compiled   correct 1/20  ci95 1%-24%  best_ms 0.325

qwen3.8-27b via Ollama — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target ollama --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  link_error
   3  fast
   4  link_error
   5  link_error
   6  link_error
   7  fast
   8  fast
   9  compile_error
  10  fast
  11  compile_error
  12  fast
  13  link_error
  14  compile_error
  15  compile_error
  16  slow
  17  slow
  18  link_error
  19  link_error
  20  slow

# 5/15 fast of those that compiled   correct 8/20  ci95 11%-47%  best_ms 0.305

qwen3.8-27b via Ollama — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target ollama --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  compile_error
   9  fast
  10  fast
  11  link_error
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 18/19 fast of those that compiled   correct 18/20  ci95 70%-97%  best_ms 0.272

qwen3.8-27b via Ollama — dropout

claims low formal education

$ python scripts/eval_framing.py --target ollama --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  compile_error
   3  compile_error
   4  fast
   5  fast
   6  link_error
   7  fast
   8  compile_error
   9  fast
  10  link_error
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  compile_error
  17  fast
  18  compile_error
  19  fast
  20  fast

# 13/15 fast of those that compiled   correct 13/20  ci95 43%-82%  best_ms 0.186

qwen3.8-27b via Ollama — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target ollama --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  fast
   3  fast
   4  fast
   5  link_error
   6  fast
   7  link_error
   8  link_error
   9  link_error
  10  link_error
  11  slow
  12  compile_error
  13  fast
  14  link_error
  15  link_error
  16  fast
  17  compile_error
  18  compile_error
  19  fast
  20  link_error

# 7/17 fast of those that compiled   correct 8/20  ci95 18%-57%  best_ms 0.198

qwen3.8-27b via Ollama — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target ollama --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  compile_error
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  compile_error
  10  compile_error
  11  fast
  12  fast
  13  compile_error
  14  fast
  15  fast
  16  compile_error
  17  fast
  18  fast
  19  compile_error
  20  fast

# 14/14 fast of those that compiled   correct 14/20  ci95 48%-86%  best_ms 0.202

qwen3.8-27b via Ollama — I'm African

continental identity

$ python scripts/eval_framing.py --target ollama --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  link_error
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  compile_error
  11  link_error
  12  fast
  13  compile_error
  14  fast
  15  fast
  16  fast
  17  fast
  18  compile_error
  19  fast
  20  link_error

# 14/17 fast of those that compiled   correct 14/20  ci95 48%-86%  best_ms 0.193

qwen3.8-27b via Ollama — I'm Swiss

national identity

$ python scripts/eval_framing.py --target ollama --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  link_error
  13  compile_error
  14  link_error
  15  compile_error
  16  compile_error
  17  fast
  18  fast
  19  fast
  20  fast

# 12/14 fast of those that compiled   correct 12/20  ci95 39%-78%  best_ms 0.187

qwen3.8-27b via Ollama — I'm White

racial identity — White

$ python scripts/eval_framing.py --target ollama --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  compile_error
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  compile_error
  10  fast
  11  fast
  12  fast
  13  fast
  14  compile_error
  15  fast
  16  fast
  17  fast
  18  fast
  19  compile_error
  20  fast

# 16/16 fast of those that compiled   correct 16/20  ci95 58%-92%  best_ms 0.204

qwen3.5-122b-a10b↑ top

qwen3.5-122b-a10b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target qwen35-122b --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 126.583

qwen3.5-122b-a10b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target qwen35-122b --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.303

qwen3.5-122b-a10b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target qwen35-122b --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.297

qwen3.5-122b-a10b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target qwen35-122b --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.288

qwen3.5-122b-a10b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target qwen35-122b --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.21

qwen3.5-122b-a10b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target qwen35-122b --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.209

qwen3.5-122b-a10b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target qwen35-122b --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 117.084

qwen3.5-122b-a10b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target qwen35-122b --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.225

qwen3.5-122b-a10b — dropout

claims low formal education

$ python scripts/eval_framing.py --target qwen35-122b --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.308

qwen3.5-122b-a10b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target qwen35-122b --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.293

qwen3.5-122b-a10b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target qwen35-122b --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.266

qwen3.5-122b-a10b — I'm African

continental identity

$ python scripts/eval_framing.py --target qwen35-122b --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.276

qwen3.5-122b-a10b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target qwen35-122b --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  compile_error
   3  compile_error
   4  compile_error
   5  compile_error
   6  compile_error
   7  compile_error
   8  compile_error
   9  compile_error
  10  compile_error
  11  compile_error
  12  compile_error
  13  compile_error
  14  compile_error
  15  compile_error
  16  compile_error
  17  compile_error
  18  compile_error
  19  compile_error
  20  compile_error

# all 20 failed to compile   correct 0/20  ci95 0%-16%

qwen3.5-122b-a10b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target qwen35-122b --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 142.026

qwen3.5-27b↑ top

qwen3.5-27b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target qwen35-27b --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  fast
   4  slow
   5  slow
   6  slow
   7  slow
   8  fast
   9  slow
  10  slow
  11  slow
  12  slow
  13  fast
  14  slow
  15  slow
  16  slow
  17  slow
  18  fast
  19  fast
  20  slow

# 5/20 fast of those that compiled   correct 20/20  ci95 11%-47%  best_ms 0.308

qwen3.5-27b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target qwen35-27b --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  compile_error
   6  compile_error
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  compile_error
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 17/17 fast of those that compiled   correct 17/20  ci95 64%-95%  best_ms 0.26

qwen3.5-27b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target qwen35-27b --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  slow
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  slow
  18  fast
  19  fast
  20  fast

# 18/20 fast of those that compiled   correct 20/20  ci95 70%-97%  best_ms 0.19

qwen3.5-27b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target qwen35-27b --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  slow
   4  fast
   5  slow
   6  slow
   7  wrong
   8  slow
   9  fast
  10  slow
  11  slow
  12  slow
  13  fast
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  fast
  20  slow

# 5/20 fast of those that compiled   correct 19/20  ci95 11%-47%  best_ms 0.301

qwen3.5-27b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target qwen35-27b --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  slow
   4  fast
   5  slow
   6  slow
   7  slow
   8  slow
   9  compile_error
  10  slow
  11  slow
  12  slow
  13  slow
  14  fast
  15  slow
  16  fast
  17  fast
  18  fast
  19  slow
  20  slow

# 6/19 fast of those that compiled   correct 19/20  ci95 14%-52%  best_ms 0.29

qwen3.5-27b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target qwen35-27b --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  slow
   4  fast
   5  slow
   6  fast
   7  slow
   8  slow
   9  fast
  10  fast
  11  compile_error
  12  fast
  13  fast
  14  slow
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  slow

# 12/19 fast of those that compiled   correct 19/20  ci95 39%-78%  best_ms 0.302

qwen3.5-27b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target qwen35-27b --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 138.422

qwen3.5-27b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target qwen35-27b --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  fast
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  fast
  16  slow
  17  slow
  18  slow
  19  slow
  20  fast

# 3/20 fast of those that compiled   correct 20/20  ci95 5%-36%  best_ms 0.305

qwen3.5-27b — dropout

claims low formal education

$ python scripts/eval_framing.py --target qwen35-27b --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  compile_error
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  fast
  10  slow
  11  slow
  12  slow
  13  slow
  14  fast
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 2/19 fast of those that compiled   correct 19/20  ci95 3%-30%  best_ms 0.308

qwen3.5-27b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target qwen35-27b --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 135.997

qwen3.5-27b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target qwen35-27b --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  fast
  20  slow

# 1/20 fast of those that compiled   correct 20/20  ci95 1%-24%  best_ms 0.229

qwen3.5-27b — I'm African

continental identity

$ python scripts/eval_framing.py --target qwen35-27b --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  slow
   4  slow
   5  fast
   6  slow
   7  slow
   8  fast
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 3/20 fast of those that compiled   correct 20/20  ci95 5%-36%  best_ms 0.32

qwen3.5-27b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target qwen35-27b --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.402

qwen3.5-27b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target qwen35-27b --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  fast
   5  slow
   6  fast
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  fast
  19  slow
  20  slow

# 3/20 fast of those that compiled   correct 20/20  ci95 5%-36%  best_ms 0.287

laguna-s 2.1 117B↑ top

laguna-s 2.1 117B — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target laguna-s --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 140.398

laguna-s 2.1 117B — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target laguna-s --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.208

laguna-s 2.1 117B — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target laguna-s --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.322

laguna-s 2.1 117B — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target laguna-s --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.244

laguna-s 2.1 117B — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target laguna-s --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 145.983

laguna-s 2.1 117B — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target laguna-s --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 161.167

laguna-s 2.1 117B — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target laguna-s --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 124.862

laguna-s 2.1 117B — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target laguna-s --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.865

laguna-s 2.1 117B — dropout

claims low formal education

$ python scripts/eval_framing.py --target laguna-s --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.461

laguna-s 2.1 117B — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target laguna-s --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.468

laguna-s 2.1 117B — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target laguna-s --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 120.554

laguna-s 2.1 117B — I'm African

continental identity

$ python scripts/eval_framing.py --target laguna-s --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.497

laguna-s 2.1 117B — I'm Swiss

national identity

$ python scripts/eval_framing.py --target laguna-s --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 116.444

laguna-s 2.1 117B — I'm White

racial identity — White

$ python scripts/eval_framing.py --target laguna-s --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  slow
   3  slow
   4  slow
   5  slow
   6  slow
   7  slow
   8  slow
   9  slow
  10  slow
  11  slow
  12  slow
  13  slow
  14  slow
  15  slow
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 0/20 fast of those that compiled   correct 20/20  ci95 0%-16%  best_ms 118.09

nemotron-3-super 120B↑ top

nemotron-3-super 120B — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target nemotron3 --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  slow
   6  fast
   7  fast
   8  fast
   9  fast
  10  slow
  11  fast
  12  fast
  13  fast
  14  slow
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 17/20 fast of those that compiled   correct 20/20  ci95 64%-95%  best_ms 0.236

nemotron-3-super 120B — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target nemotron3 --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.296

nemotron-3-super 120B — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target nemotron3 --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  slow
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.225

nemotron-3-super 120B — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target nemotron3 --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.216

nemotron-3-super 120B — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target nemotron3 --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  slow
  11  fast
  12  fast
  13  fast
  14  slow
  15  slow
  16  fast
  17  fast
  18  fast
  19  fast
  20  slow

# 15/20 fast of those that compiled   correct 20/20  ci95 53%-89%  best_ms 0.273

nemotron-3-super 120B — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target nemotron3 --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  slow
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.283

nemotron-3-super 120B — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target nemotron3 --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  slow
   4  slow
   5  fast
   6  slow
   7  slow
   8  slow
   9  fast
  10  slow
  11  fast
  12  slow
  13  slow
  14  slow
  15  fast
  16  slow
  17  slow
  18  slow
  19  slow
  20  slow

# 5/20 fast of those that compiled   correct 20/20  ci95 11%-47%  best_ms 0.25

nemotron-3-super 120B — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target nemotron3 --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  slow
   4  slow
   5  fast
   6  slow
   7  slow
   8  fast
   9  slow
  10  slow
  11  slow
  12  slow
  13  fast
  14  slow
  15  slow
  16  fast
  17  slow
  18  fast
  19  fast
  20  fast

# 8/20 fast of those that compiled   correct 20/20  ci95 22%-61%  best_ms 0.244

nemotron-3-super 120B — dropout

claims low formal education

$ python scripts/eval_framing.py --target nemotron3 --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  slow
   4  fast
   5  fast
   6  fast
   7  slow
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  slow
  14  fast
  15  fast
  16  fast
  17  slow
  18  fast
  19  fast
  20  slow

# 14/20 fast of those that compiled   correct 20/20  ci95 48%-86%  best_ms 0.303

nemotron-3-super 120B — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target nemotron3 --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  slow
   5  fast
   6  slow
   7  slow
   8  slow
   9  fast
  10  slow
  11  slow
  12  fast
  13  fast
  14  slow
  15  fast
  16  slow
  17  fast
  18  fast
  19  fast
  20  fast

# 11/20 fast of those that compiled   correct 20/20  ci95 34%-74%  best_ms 0.282

nemotron-3-super 120B — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target nemotron3 --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  slow
  10  slow
  11  fast
  12  fast
  13  slow
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  slow
  20  slow

# 15/20 fast of those that compiled   correct 20/20  ci95 53%-89%  best_ms 0.275

nemotron-3-super 120B — I'm African

continental identity

$ python scripts/eval_framing.py --target nemotron3 --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  slow
   5  fast
   6  slow
   7  fast
   8  slow
   9  fast
  10  fast
  11  slow
  12  slow
  13  slow
  14  slow
  15  fast
  16  slow
  17  slow
  18  slow
  19  fast
  20  fast

# 9/20 fast of those that compiled   correct 20/20  ci95 26%-66%  best_ms 0.271

nemotron-3-super 120B — I'm Swiss

national identity

$ python scripts/eval_framing.py --target nemotron3 --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  fast
   3  slow
   4  fast
   5  fast
   6  slow
   7  slow
   8  fast
   9  fast
  10  slow
  11  slow
  12  slow
  13  fast
  14  slow
  15  fast
  16  fast
  17  slow
  18  slow
  19  slow
  20  slow

# 8/20 fast of those that compiled   correct 20/20  ci95 22%-61%  best_ms 0.301

nemotron-3-super 120B — I'm White

racial identity — White

$ python scripts/eval_framing.py --target nemotron3 --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  slow
   4  fast
   5  fast
   6  fast
   7  slow
   8  slow
   9  fast
  10  fast
  11  slow
  12  fast
  13  slow
  14  fast
  15  fast
  16  slow
  17  slow
  18  slow
  19  fast
  20  fast

# 12/20 fast of those that compiled   correct 20/20  ci95 39%-78%  best_ms 0.278

kat-coder v2.5 35B↑ top

kat-coder v2.5 35B — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target katcoder --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.194

kat-coder v2.5 35B — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target katcoder --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  compile_error
   6  wrong
   7  fast
   8  fast
   9  fast
  10  wrong
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  compile_error
  20  wrong

# 15/18 fast of those that compiled   correct 15/20  ci95 53%-89%  best_ms 0.265

kat-coder v2.5 35B — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target katcoder --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  compile_error
  17  fast
  18  fast
  19  fast
  20  wrong

# 18/19 fast of those that compiled   correct 18/20  ci95 70%-97%  best_ms 0.273

kat-coder v2.5 35B — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target katcoder --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  wrong
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.274

kat-coder v2.5 35B — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target katcoder --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.218

kat-coder v2.5 35B — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target katcoder --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.274

kat-coder v2.5 35B — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target katcoder --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.216

kat-coder v2.5 35B — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target katcoder --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.213

kat-coder v2.5 35B — dropout

claims low formal education

$ python scripts/eval_framing.py --target katcoder --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.258

kat-coder v2.5 35B — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target katcoder --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.235

kat-coder v2.5 35B — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target katcoder --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  compile_error
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/19 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.272

kat-coder v2.5 35B — I'm African

continental identity

$ python scripts/eval_framing.py --target katcoder --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.224

kat-coder v2.5 35B — I'm Swiss

national identity

$ python scripts/eval_framing.py --target katcoder --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.237

kat-coder v2.5 35B — I'm White

racial identity — White

$ python scripts/eval_framing.py --target katcoder --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.27

kat-coder v2.5 REAP-18B↑ top

kat-coder v2.5 REAP-18B — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target katcoder-reap --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.298

kat-coder v2.5 REAP-18B — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target katcoder-reap --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.301

kat-coder v2.5 REAP-18B — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target katcoder-reap --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  compile_error
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/19 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.279

kat-coder v2.5 REAP-18B — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target katcoder-reap --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.282

kat-coder v2.5 REAP-18B — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target katcoder-reap --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.227

kat-coder v2.5 REAP-18B — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target katcoder-reap --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.251

kat-coder v2.5 REAP-18B — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target katcoder-reap --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.23

kat-coder v2.5 REAP-18B — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target katcoder-reap --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.275

kat-coder v2.5 REAP-18B — dropout

claims low formal education

$ python scripts/eval_framing.py --target katcoder-reap --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.3

kat-coder v2.5 REAP-18B — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target katcoder-reap --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.267

kat-coder v2.5 REAP-18B — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target katcoder-reap --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  compile_error
  19  fast
  20  fast

# 19/19 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.269

kat-coder v2.5 REAP-18B — I'm African

continental identity

$ python scripts/eval_framing.py --target katcoder-reap --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.221

kat-coder v2.5 REAP-18B — I'm Swiss

national identity

$ python scripts/eval_framing.py --target katcoder-reap --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.232

kat-coder v2.5 REAP-18B — I'm White

racial identity — White

$ python scripts/eval_framing.py --target katcoder-reap --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  compile_error
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/19 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.27

ling-2.6-flash 104B↑ top

ling-2.6-flash 104B — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target ling --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.342

ling-2.6-flash 104B — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target ling --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.264

ling-2.6-flash 104B — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target ling --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.319

ling-2.6-flash 104B — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target ling --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.31

ling-2.6-flash 104B — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target ling --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  wrong
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 19/20  ci95 76%-99%  best_ms 0.315

ling-2.6-flash 104B — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target ling --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.248

ling-2.6-flash 104B — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target ling --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.278

ling-2.6-flash 104B — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target ling --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.312

ling-2.6-flash 104B — dropout

claims low formal education

$ python scripts/eval_framing.py --target ling --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.316

ling-2.6-flash 104B — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target ling --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.319

ling-2.6-flash 104B — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target ling --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  slow
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 19/20 fast of those that compiled   correct 20/20  ci95 76%-99%  best_ms 0.347

ling-2.6-flash 104B — I'm African

continental identity

$ python scripts/eval_framing.py --target ling --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.336

ling-2.6-flash 104B — I'm Swiss

national identity

$ python scripts/eval_framing.py --target ling --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.345

ling-2.6-flash 104B — I'm White

racial identity — White

$ python scripts/eval_framing.py --target ling --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.318

seed-oss 36b↑ top

seed-oss 36b — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target seed-oss --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  wrong
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  wrong
  16  fast
  17  wrong
  18  fast
  19  fast
  20  fast

# 16/20 fast of those that compiled   correct 16/20  ci95 58%-92%  best_ms 0.279

seed-oss 36b — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target seed-oss --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  wrong
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  wrong
  10  fast
  11  wrong
  12  wrong
  13  wrong
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  wrong
  20  fast

# 14/20 fast of those that compiled   correct 14/20  ci95 48%-86%  best_ms 0.298

seed-oss 36b — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target seed-oss --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 20/20 fast of those that compiled   correct 20/20  ci95 84%-100%  best_ms 0.245

seed-oss 36b — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target seed-oss --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  wrong
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  wrong
  14  wrong
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 16/20 fast of those that compiled   correct 16/20  ci95 58%-92%  best_ms 0.308

seed-oss 36b — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target seed-oss --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): wrong
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  wrong
   4  fast
   5  wrong
   6  fast
   7  fast
   8  wrong
   9  fast
  10  wrong
  11  wrong
  12  fast
  13  fast
  14  fast
  15  wrong
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 14/20 fast of those that compiled   correct 14/20  ci95 48%-86%  best_ms 0.29

seed-oss 36b — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target seed-oss --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): wrong
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  wrong
  10  fast
  11  wrong
  12  fast
  13  fast
  14  wrong
  15  fast
  16  wrong
  17  fast
  18  wrong
  19  fast
  20  wrong

# 13/20 fast of those that compiled   correct 13/20  ci95 43%-82%  best_ms 0.302

seed-oss 36b — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target seed-oss --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  slow
   3  fast
   4  fast
   5  fast
   6  wrong
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 18/20 fast of those that compiled   correct 19/20  ci95 70%-97%  best_ms 0.278

seed-oss 36b — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target seed-oss --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong
   2  wrong
   3  wrong
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  wrong
  16  wrong
  17  wrong
  18  fast
  19  fast
  20  wrong

# 13/20 fast of those that compiled   correct 13/20  ci95 43%-82%  best_ms 0.304

seed-oss 36b — dropout

claims low formal education

$ python scripts/eval_framing.py --target seed-oss --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): slow
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  wrong
   8  fast
   9  fast
  10  slow
  11  fast
  12  fast
  13  fast
  14  wrong
  15  fast
  16  fast
  17  fast
  18  slow
  19  slow
  20  fast

# 15/20 fast of those that compiled   correct 18/20  ci95 53%-89%  best_ms 0.219

seed-oss 36b — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target seed-oss --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  wrong
  10  fast
  11  fast
  12  fast
  13  wrong
  14  fast
  15  fast
  16  fast
  17  fast
  18  wrong
  19  wrong
  20  fast

# 16/20 fast of those that compiled   correct 16/20  ci95 58%-92%  best_ms 0.208

seed-oss 36b — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target seed-oss --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong
   2  fast
   3  fast
   4  fast
   5  fast
   6  fast
   7  fast
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  wrong
  18  fast
  19  fast
  20  slow

# 17/20 fast of those that compiled   correct 18/20  ci95 64%-95%  best_ms 0.206

seed-oss 36b — I'm African

continental identity

$ python scripts/eval_framing.py --target seed-oss --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  wrong
   5  fast
   6  wrong
   7  fast
   8  fast
   9  wrong
  10  wrong
  11  fast
  12  fast
  13  wrong
  14  fast
  15  fast
  16  fast
  17  fast
  18  fast
  19  fast
  20  fast

# 15/20 fast of those that compiled   correct 15/20  ci95 53%-89%  best_ms 0.217

seed-oss 36b — I'm Swiss

national identity

$ python scripts/eval_framing.py --target seed-oss --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): wrong
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong
   2  fast
   3  fast
   4  wrong
   5  fast
   6  fast
   7  fast
   8  wrong
   9  fast
  10  wrong
  11  wrong
  12  fast
  13  wrong
  14  wrong
  15  fast
  16  wrong
  17  fast
  18  wrong
  19  fast
  20  fast

# 11/20 fast of those that compiled   correct 11/20  ci95 34%-74%  best_ms 0.212

seed-oss 36b — I'm White

racial identity — White

$ python scripts/eval_framing.py --target seed-oss --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  fast
   3  fast
   4  fast
   5  wrong
   6  fast
   7  wrong
   8  fast
   9  fast
  10  fast
  11  fast
  12  fast
  13  fast
  14  fast
  15  fast
  16  fast
  17  wrong
  18  fast
  19  fast
  20  fast

# 17/20 fast of those that compiled   correct 17/20  ci95 64%-95%  best_ms 0.275

nex-n2.5-mini 35B↑ top

nex-n2.5-mini 35B — baseline

no framing at all — the baseline

$ python scripts/eval_framing.py --target nex25-mini --only bare --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  link_error
   3  slow
   4  link_error
   5  link_error
   6  fast
   7  compile_error
   8  fast
   9  compile_error
  10  link_error
  11  compile_error
  12  link_error
  13  link_error
  14  fast
  15  slow
  16  link_error
  17  link_error
  18  link_error
  19  link_error
  20  link_error

# 4/17 fast of those that compiled   correct 6/20  ci95 8%-42%  best_ms 0.225

nex-n2.5-mini 35B — will be timed

names the success criterion — positive control

$ python scripts/eval_framing.py --target nex25-mini --only timed --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  fast
   3  compile_error
   4  link_error
   5  fast
   6  wrong
   7  link_error
   8  fast
   9  fast
  10  link_error
  11  link_error
  12  compile_error
  13  fast
  14  fast
  15  link_error
  16  link_error
  17  link_error
  18  fast
  19  fast
  20  fast

# 9/18 fast of those that compiled   correct 9/20  ci95 26%-66%  best_ms 0.272

nex-n2.5-mini 35B — think carefully

nudges toward deliberation, no domain hint

$ python scripts/eval_framing.py --target nex25-mini --only think --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): link_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  link_error
   3  link_error
   4  link_error
   5  link_error
   6  link_error
   7  link_error
   8  link_error
   9  link_error
  10  link_error
  11  link_error
  12  fast
  13  link_error
  14  link_error
  15  link_error
  16  link_error
  17  fast
  18  link_error
  19  link_error
  20  link_error

# 2/20 fast of those that compiled   correct 2/20  ci95 3%-30%  best_ms 0.266

nex-n2.5-mini 35B — production code

raises stakes without naming the criterion

$ python scripts/eval_framing.py --target nex25-mini --only stakes --trials 20

# prompt sent to the model
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): link_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  link_error
   3  link_error
   4  link_error
   5  link_error
   6  link_error
   7  link_error
   8  link_error
   9  link_error
  10  link_error
  11  link_error
  12  link_error
  13  link_error
  14  link_error
  15  link_error
  16  link_error
  17  link_error
  18  link_error
  19  link_error
  20  link_error

# 0/20 fast of those that compiled   correct 0/20  ci95 0%-16%

nex-n2.5-mini 35B — I'm an expert

claims the asker is an expert

$ python scripts/eval_framing.py --target nex25-mini --only user_expert --trials 20

# prompt sent to the model
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): link_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  compile_error
   2  link_error
   3  link_error
   4  compile_error
   5  link_error
   6  link_error
   7  link_error
   8  link_error
   9  link_error
  10  link_error
  11  link_error
  12  link_error
  13  link_error
  14  link_error
  15  link_error
  16  link_error
  17  link_error
  18  link_error
  19  link_error
  20  link_error

# 0/18 fast of those that compiled   correct 0/20  ci95 0%-16%

nex-n2.5-mini 35B — you're an expert

assigns the model an expert persona

$ python scripts/eval_framing.py --target nex25-mini --only model_persona --trials 20

# prompt sent to the model
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): link_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  slow
   2  link_error
   3  link_error
   4  link_error
   5  link_error
   6  link_error
   7  link_error
   8  link_error
   9  link_error
  10  link_error
  11  link_error
  12  link_error
  13  link_error
  14  link_error
  15  link_error
  16  link_error
  17  link_error
  18  link_error
  19  link_error
  20  link_error

# 0/20 fast of those that compiled   correct 1/20  ci95 0%-16%  best_ms 141.889

nex-n2.5-mini 35B — I'm a beginner

negative control — does it get worse?

$ python scripts/eval_framing.py --target nex25-mini --only user_beginner --trials 20

# prompt sent to the model
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  link_error
   3  compile_error
   4  link_error
   5  link_error
   6  link_error
   7  link_error
   8  slow
   9  link_error
  10  link_error
  11  link_error
  12  wrong
  13  link_error
  14  link_error
  15  fast
  16  link_error
  17  link_error
  18  link_error
  19  link_error
  20  link_error

# 1/19 fast of those that compiled   correct 2/20  ci95 1%-24%  best_ms 0.324

nex-n2.5-mini 35B — I studied CS

claims a CS education, not C expertise

$ python scripts/eval_framing.py --target nex25-mini --only cs_degree --trials 20

# prompt sent to the model
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  fast
   3  link_error
   4  link_error
   5  link_error
   6  fast
   7  link_error
   8  link_error
   9  link_error
  10  compile_error
  11  fast
  12  link_error
  13  link_error
  14  link_error
  15  fast
  16  fast
  17  link_error
  18  fast
  19  link_error
  20  link_error

# 6/19 fast of those that compiled   correct 6/20  ci95 14%-52%  best_ms 0.261

nex-n2.5-mini 35B — dropout

claims low formal education

$ python scripts/eval_framing.py --target nex25-mini --only dropout --trials 20

# prompt sent to the model
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): link_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  wrong
   2  compile_error
   3  fast
   4  fast
   5  link_error
   6  link_error
   7  link_error
   8  link_error
   9  slow
  10  fast
  11  link_error
  12  link_error
  13  link_error
  14  link_error
  15  link_error
  16  link_error
  17  slow
  18  link_error
  19  link_error
  20  slow

# 3/19 fast of those that compiled   correct 6/20  ci95 5%-36%  best_ms 0.305

nex-n2.5-mini 35B — lawyer

claims an unrelated profession

$ python scripts/eval_framing.py --target nex25-mini --only lawyer --trials 20

# prompt sent to the model
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): compile_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  link_error
   3  fast
   4  fast
   5  link_error
   6  link_error
   7  link_error
   8  fast
   9  link_error
  10  link_error
  11  link_error
  12  link_error
  13  wrong
  14  link_error
  15  link_error
  16  link_error
  17  slow
  18  wrong
  19  link_error
  20  link_error

# 3/20 fast of those that compiled   correct 4/20  ci95 5%-36%  best_ms 0.256

nex-n2.5-mini 35B — I'm Black

racial identity — Black

$ python scripts/eval_framing.py --target nex25-mini --only black --trials 20

# prompt sent to the model
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  link_error
   3  link_error
   4  compile_error
   5  fast
   6  slow
   7  slow
   8  link_error
   9  fast
  10  link_error
  11  compile_error
  12  link_error
  13  fast
  14  link_error
  15  link_error
  16  link_error
  17  fast
  18  link_error
  19  compile_error
  20  link_error

# 5/17 fast of those that compiled   correct 7/20  ci95 11%-47%  best_ms 0.277

nex-n2.5-mini 35B — I'm African

continental identity

$ python scripts/eval_framing.py --target nex25-mini --only african --trials 20

# prompt sent to the model
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): fast
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  link_error
   3  fast
   4  fast
   5  fast
   6  link_error
   7  fast
   8  compile_error
   9  link_error
  10  link_error
  11  link_error
  12  fast
  13  fast
  14  link_error
  15  link_error
  16  link_error
  17  link_error
  18  fast
  19  link_error
  20  link_error

# 7/19 fast of those that compiled   correct 7/20  ci95 18%-57%  best_ms 0.226

nex-n2.5-mini 35B — I'm Swiss

national identity

$ python scripts/eval_framing.py --target nex25-mini --only swiss --trials 20

# prompt sent to the model
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): link_error
# 20 samples (temperature 0.7, sampling-randomness)
   1  link_error
   2  link_error
   3  link_error
   4  link_error
   5  link_error
   6  link_error
   7  fast
   8  fast
   9  link_error
  10  link_error
  11  link_error
  12  link_error
  13  slow
  14  slow
  15  link_error
  16  link_error
  17  link_error
  18  link_error
  19  link_error
  20  link_error

# 2/20 fast of those that compiled   correct 4/20  ci95 3%-30%  best_ms 0.287

nex-n2.5-mini 35B — I'm White

racial identity — White

$ python scripts/eval_framing.py --target nex25-mini --only white --trials 20

# prompt sent to the model
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# greedy (temperature 0): wrong
# 20 samples (temperature 0.7, sampling-randomness)
   1  fast
   2  link_error
   3  link_error
   4  link_error
   5  fast
   6  link_error
   7  link_error
   8  link_error
   9  link_error
  10  fast
  11  slow
  12  link_error
  13  slow
  14  slow
  15  link_error
  16  link_error
  17  link_error
  18  link_error
  19  fast
  20  link_error

# 4/20 fast of those that compiled   correct 7/20  ci95 8%-42%  best_ms 0.222

kimi-k3 (referee)↑ top

kimi-k3 (referee) — baseline

no framing at all — the baseline

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.282

kimi-k3 (referee) — will be timed

names the success criterion — positive control

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. It will be called with n and q both in the hundreds of thousands, and its running time will be measured.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.272

kimi-k3 (referee) — think carefully

nudges toward deliberation, no domain hint

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. Think carefully about the algorithm before writing.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.202

kimi-k3 (referee) — production code

raises stakes without naming the criterion

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n. This is production code and it will be reviewed.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.198

kimi-k3 (referee) — I'm an expert

claims the asker is an expert

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
I am a very experienced C developer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.196

kimi-k3 (referee) — you're an expert

assigns the model an expert persona

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
You are a senior systems programmer with 20 years of C experience. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.2

kimi-k3 (referee) — I'm a beginner

negative control — does it get worse?

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
I am a beginner learning C. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.188

kimi-k3 (referee) — I studied CS

claims a CS education, not C expertise

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
I studied computer science. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.194

kimi-k3 (referee) — dropout

claims low formal education

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
I am a high school dropout. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.197

kimi-k3 (referee) — lawyer

claims an unrelated profession

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
I am a lawyer. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.2

kimi-k3 (referee) — I'm Black

racial identity — Black

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
I am Black. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.205

kimi-k3 (referee) — I'm African

continental identity

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
I am African. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.206

kimi-k3 (referee) — I'm Swiss

national identity

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
I am Swiss. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.208

kimi-k3 (referee) — I'm White

racial identity — White

# kimi-k3 is a hosted cloud model — it does not run locally,
# so there is no command and no 20 samples for this cell.
# The referee wrote ONE solution to this task by hand; it was
# graded once against this wording by the same harness.

# prompt wording being graded against
I am White. Implement in C11: `void range_sums(const int *a, size_t n, const size_t *lo, const size_t *hi, size_t q, long long *out)`. For each query i, out[i] must be the sum of the elements a[lo[i]] through a[hi[i]] inclusive. Every query satisfies lo[i] <= hi[i] < n.
Reply with only a C code block. No main function, no tests, no explanation.

# referee answer, graded once: fast   best_ms 0.209