Idea · Oct 4, 2026

Solver-Checked Simplification Hints: An SMT-Grounded Benchmark for LLM Feedback on Overcomplicated Conditionals in Novice Code

Uses Z3 as ground truth to measure whether LLMs correctly detect, explain and hint at redundant or unreachable conditions in novice code without handing over the rewritten solution, and whether their proposed simplifications are actually equivalent.

What it would do

The source SIGCSE TS 2026 paper defines five issues with conditionals in novice Python code (trivial conditions, unreachable elif/else branches, implicit non-equality, always-true conditions with a missing else, and redundant condition parts) and detects them precisely with the Z3 SMT solver. This project turns those detectors into an oracle for evaluating LLM tutors: we mine instances from a public novice-code corpus, inject controlled variants with mutation operators, and ask LLMs to (a) flag the issue, (b) explain it in novice language, (c) give a solution-free hint, and (d) optionally propose a simplification. Z3 verifies detection against ground truth and checks every proposed rewrite for semantic equivalence over the condition's variables, catching the plausible but wrong simplifications LLMs are known to produce. A second contribution is a hybrid feedback pipeline where Z3 finds and localizes the issue and the LLM only explains it, compared against LLM-only feedback. This extends Pisan's automated critiquing line (Submit!, Jolly Feedback) toward feedback that explains why code quality matters while staying verifiably correct.

More in Assessment & Grading

Executable Buggy Tracers: Turning a Control-Structure Misconception Taxonomy into Runnable Student Models for Distractor Generation and Trace-Error Diagnosis

Encodes each misconception in a recent taxonomy of how students misread conditionals and loops as a small 'buggy interpreter', then uses those interpreters to generate tracing questions with principled distractors and to diagnose which misconception explains a wrong answer, benchmarking LLMs against the executable models.

Assessment & GradingResearch directionResearchOct 1, 2026

All 132 ideas in Assessment & Grading →