SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.09074 · 2024

Code Simulation Challenges for Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

None of the 11 samples (functions and classes) lifted from this paper's linked repositories has a recorded run on a synthesized input (11 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2401.09074.json · badge: /api/ran/2401.09074.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
emanuelelm/codesimulation canonical (classifier label)
classifier basis: census
0 ran · 11 no recorded run
FunctionStatusWhere it lives
fibo Not yet run
unverified (harvested, no recorded run)
emanuelelm/codesimulation/cosm_generic_problems.py
pointer only (licence: GPL-3.0) · get_code("c6f0bf31fd2574f4")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, emanuelelm/codesimulation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_problems Not yet run
unverified (harvested, no recorded run)
emanuelelm/codesimulation/cosm_generic_problems.py
pointer only (licence: GPL-3.0) · get_code("60afad91ae40ec9b")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, emanuelelm/codesimulation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

metafunction Not yet run
unverified (harvested, no recorded run)
emanuelelm/codesimulation/approximate_computation.py
pointer only (licence: GPL-3.0) · get_code("d6fe64f75cf28d10")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, emanuelelm/codesimulation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

metafunction Not yet run
unverified (harvested, no recorded run)
emanuelelm/codesimulation/critical_path.py
pointer only (licence: GPL-3.0) · get_code("fa8a035d10127882")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, emanuelelm/codesimulation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

metafunction Not yet run
unverified (harvested, no recorded run)
emanuelelm/codesimulation/nested_loops.py
pointer only (licence: GPL-3.0) · get_code("f2202365e6963b1b")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, emanuelelm/codesimulation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

metafunction Not yet run
unverified (harvested, no recorded run)
emanuelelm/codesimulation/parallel_computation.py
pointer only (licence: GPL-3.0) · get_code("864b4f87dcd43604")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, emanuelelm/codesimulation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

metafunction Not yet run
unverified (harvested, no recorded run)
emanuelelm/codesimulation/redundant_computation.py
pointer only (licence: GPL-3.0) · get_code("10cb54375e5fb533")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, emanuelelm/codesimulation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

metafunction Not yet run
unverified (harvested, no recorded run)
emanuelelm/codesimulation/straight_line.py
pointer only (licence: GPL-3.0) · get_code("6565f7e15347a223")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, emanuelelm/codesimulation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

queryllama Not yet run
unverified (harvested, no recorded run)
emanuelelm/codesimulation/utils.py
pointer only (licence: GPL-3.0) · get_code("8a49c89cd9b087b8")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, emanuelelm/codesimulation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

queryllamacode Not yet run
unverified (harvested, no recorded run)
emanuelelm/codesimulation/utils.py
pointer only (licence: GPL-3.0) · get_code("8d7082af814fd4a3")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, emanuelelm/codesimulation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

sort Not yet run
unverified (harvested, no recorded run)
emanuelelm/codesimulation/cosm_generic_problems.py
pointer only (licence: GPL-3.0) · get_code("a2c8416aac16581b")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, emanuelelm/codesimulation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Many reasoning, planning, and problem-solving tasks share an intrinsic algorithmic nature: correctly simulating each step is a sufficient condition to solve them correctly. This work studies to what extent Large Language Models (LLMs) can simulate coding and algorithmic tasks to provide insights into general capabilities in such algorithmic reasoning tasks. We introduce benchmarks for straight-line programs, code that contains critical paths, and approximate and redundant instructions. We further assess the simulation capabilities of LLMs with sorting algorithms and nested loops and show that a routine's computational complexity directly affects an LLM's ability to simulate its execution. While the most powerful LLMs exhibit relatively strong simulation capabilities, the process is fragile, seems to rely heavily on pattern recognition, and is affected by memorisation. We propose a novel off-the-shelf prompting method, Chain of Simulation (CoSm), which instructs LLMs to simulate code execution line by line/follow the computation pattern of compilers. CoSm efficiently helps LLMs reduce memorisation and shallow pattern recognition while improving simulation performance. We consider the success of CoSm in code simulation to be inspirational for other general routine simulation reasoning tasks.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.09074")
get_code_for_paper("2401.09074")
have("2401.09074")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2401.09074.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2401.09074.svg)](https://syntology.ai/paper/2401.09074)

Connect an agent — have() is free.