Skip to content
Back to skills

Cruxevalx Eval

ASecurity

This benchmark evaluates large language models' ability to perform bidirectional code reasoning across 19 programming languages. It probes whether models can predict missing inputs given outputs, and predict missing outputs given inputs, testing their understanding of code semantics and execution flow. Use when the user wants to benchmark on CRUXEval-X, or asks about evaluating this task. Reports Pass@1.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 11, 2026
developmentpythontesting

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill cruxevalx-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cruxevalx Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cruxevalx Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-cruxevalx-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-cruxevalx-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cruxevalx-eval
description: This benchmark evaluates large language models' ability to perform bidirectional code reasoning across 19 programming languages. It probes whether models can predict missing inputs given outputs, and predict missing outputs given inputs, testing their understanding of code semantics and execution flow. Use when the user wants to benchmark on CRUXEval-X, or asks about evaluating this task. Reports Pass@1.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2408.13001
  bibtex_key: xu2024cruxevalx
  confidence: high
---

# cruxevalx-eval

> CRUXEval-X: A Benchmark for Multilingual Code Reasoning, Understanding and Execution — Xu et al. (2024) (arXiv:2408.13001, 2024)

## What this evaluates

This benchmark evaluates large language models' ability to perform bidirectional code reasoning across 19 programming languages. It probes whether models can predict missing inputs given outputs, and predict missing outputs given inputs, testing their understanding of code semantics and execution flow.

## Datasets

- **CRUXEval-X** — total 19000; splits: test (-1)

## Metrics

- `Pass@1` **(primary)** — range: percent
  - Pass@1 measures the fraction of problems for which the single generated solution (via greedy decoding) passes the provided test case. It is calculated as the number of passed problems divided by the total number of problems.

## Input / output format

**Input**: For each instance, the model receives a code snippet along with either the expected output (for input reasoning) or the expected input (for output reasoning) from a test case.

**Output**: The model must generate the missing component: either the input that produces the given output, or the output that results from the given input.

## Scoring recipe

```python
def compute_pass_at_1(predictions, test_cases):
    passed = 0
    for pred, test in zip(predictions, test_cases):
        # Execute generated code with test input/output
        if execute_and_check(pred, test):
            passed += 1
    return (passed / len(predictions)) * 100
```

## Common pitfalls

- Evaluation uses greedy decoding (temperature=0), so Pass@1 here is equivalent to a single-run pass rate rather than a sampling-based estimate.
- The benchmark spans 19 languages with both dynamic and static type systems; models may struggle with type inference or syntax differences despite cross-lingual generalization.
- Test cases are designed with exponential search spaces to prevent memorization, so models must genuinely reason about code execution rather than recall answers.

## Evidence (verbatim from paper)

> We use pass@1 (Kulal et al., [2019]; Chen et al., [2021]) to evaluate both tasks. We set the temperature to 0 and employ greedy decoding for generation as prior work (Cao et al., [2024a]).

## Citation

```bibtex
@misc{xu2024cruxevalx,
  title={CRUXEval-X: A Benchmark for Multilingual Code Reasoning, Understanding and Execution},
  author={Xu et al. (2024)},
  year={2024},
  note={arXiv:2408.13001}
}
```

- arXiv: 2408.13001

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.