cs.SEApr 13, 2026

DuET: Dual Execution for Test Output Prediction with Generated Code and Pseudocode

Authors: Hojae Han, Jaejin Kim, Seung-won Hwang, Yu Jin Kim, Moontae Lee

Organizations: ETRI · Seoul National University · SNU-LG AI Research Center · LG AI Research

Abstract

This work addresses test output prediction, a key challenge in test case generation. To improve the reliability of predicted outputs by LLMs, prior approaches generate code first to ground predictions. One grounding strategy is direct execution of generated code, but even minor errors can cause failures. To address this, we introduce LLM-based pseudocode execution, which grounds prediction on more error-resilient pseudocode and simulates execution via LLM reasoning. We further propose DuET, a dual-execution framework that combines both approaches by functional majority voting. Our analysis shows the two approaches are complementary in overcoming the limitations of direct execution suffering from code errors, and pseudocode reasoning from hallucination. On LiveCodeBench, DuET achieves the state-of-the-art performance, improving Pass@1 by 13.6 pp.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Confidence-Gated Transductive Test Generation for Code Reranking

    Sep 11, 2026Sungjae Lee, Youngsik Yoon, Seockbean Song +3LLM RerankingAutomated Test Generation

  2. SolidCoder: Bridging the Mental-Reality Gap in LLM Code Generation through Concrete Execution

    Apr 20, 2026Woojin Lee, Jin-Xia HuangProperty-Based TestingExecution-Guided Code Generation

  3. Planning to Explore: Curiosity-Driven Planning for LLM Test Generation

    Apr 6, 2026Alfonso Amayuelas, Firas Laakom, Piotr Piękos +5Automated Test GenerationLLM Planning