Anti-AIClone

Log date · Tue

How reliable is Dart AOT neural decompilation?

Evaluate decompiled candidates with independent execution tests: the Dart AOT paper found a substantial gap between compilation and correctness.

How should Dart AOT decompilation be evaluated?

Test candidate behavior against independent cases before relying on compilation or textual similarity. In the paper, only about 21.0–23.3% of compiling candidates passed tests; in one paired intervention removing semantic names and related cues, coverage fell from 42/154 to 7/154. [1] These results answer different questions and are not one success rate.

Separate the measures
QuestionFinding
Does compilation prove correctness?About 21.0–23.3% of compiling candidates passed in the paper.
What changed without names?One paired, single-seed intervention went from 42/154 to 7/154 tasks covered.
What does our comparison show?Both candidates compiled; a boundary input left A matching 3/4 cases and B 4/4.

What the paper measured

Raafat Abualazm and co-authors submitted v1 at 10:36 UTC on 2026-07-07 and v2 on 2026-10-01; we use the v2 abstract as checked. [1] In six archived adapter-versus-baseline comparisons, both Qwen3-8B adapters had functional regressions at k=1, 5 and 10; the other four comparisons were inconclusive.

On 141 reference-certified, contract-valid tasks, best CodeBLEU had only a modest association with pass@10. The name intervention retained types, arity and instruction content; it cannot directly predict the risk to a particular Flutter application. Across five decoding seeds the baseline solved 4.8 tasks on average, 15 at least once, and one in every seed. Keep the candidates, tests, input information and random seeds alongside any comparison.

Pass@k concerns whether a passing candidate appears among multiple attempts; compilation rate checks only whether a candidate can proceed to execution. Their denominators and test contracts differ. Report sample counts, failure types and covered inputs alongside them, rather than treating text similarity or one successful execution as semantic equivalence.

A boundary test illustrates compilation versus correctness

We wrote a reference and two hand-written candidates in Python 3.12.14 for a discount at 100. A uses > instead of >=; B matches the reference. This machine has no Dart toolchain and we ran no model: this is an illustration of evaluation with another tool, not a replication of the paper, Dart AOT or neural decompilation.

Candidate A; the reference and B use >=.
def fee(amount):
    return amount - 10 if amount > 100 else amount

py_compile compiles all three files to bytecode and raises on an error. [3] Four inputs cover both sides of the threshold and the threshold itself. A returns 100 at input 100, while the reference returns 90. Had we tested only 0, 99 and 101, A would also have matched every case. B’s 4/4 establishes agreement on those four inputs, not correctness for every input.

Verbatim execution output.
input=0 reference=0 A=0 B=0
input=99 reference=99 A=99 B=99
input=100 reference=90 A=100 B=90
input=101 reference=91 A=91 B=91
matching cases: A=3/4 B=4/4

dis shows the comparison operator as > for A and >= for B. Python documents bytecode as a CPython implementation detail that can change across versions. [4] For a real evaluation, certify the reference with independent tests, then add boundaries, invalid inputs and state changes; keep held-out tests away from candidate generation.

Verbatim bytecode inspection.
A: COMPARE_OP >
B: COMPARE_OP >=

What to check in a Flutter release

Flutter documents obfuscation as renaming symbols in compiled Dart code; it does not encrypt resources or guarantee prevention of reverse engineering. [2] The paper’s intervention also removed related cues, so it is not equivalent to one Flutter build switch. Do not treat 42/154 to 7/154 as the expected effect of enabling that switch.

The documented build uses --obfuscate and --split-debug-info for a supported target and retains matching symbols for crash analysis. Code depending on class or function name strings can break, so regression-test the actual release variant. Store symbols by build and architecture in a controlled location and rehearse symbolication before an incident makes the correct file urgent.

Recommendations by case

These are engineering recommendations, not protection gains measured by our experiment. Identify the asset and trust boundary first, then evaluate the release build of your own application.

Recommendations
CaseRecommendation
Comparing candidatesFix the test contract; report compilation, execution and boundary failures, and repeat sampling.
Names reveal business meaningEvaluate release obfuscation and regression-test name dependencies.
Privileged secret in the clientMove it to a controlled server; validate sensitive decisions server-side.
Crash diagnosisKeep matching symbols privately by build and architecture and verify symbolication.

Design server validation alongside the local experience: offline features may still need local logic, but a local result should not automatically become the final authority for server authorization. Record the build, test suite and tool versions so later comparisons can distinguish code changes from changes in tests or sampling.

Run checks on your own app

Choose a supported target in your own Flutter project; the example below uses an Android APK. Replace the symbol directory with a controlled location. These commands follow the official documentation and are for your environment; we did not run a Flutter build here. [2]

Flutter documented workflow; not executed here.
flutter build apk -h
flutter build apk --obfuscate --split-debug-info=/path/to/private-symbols
flutter symbolize -i /path/to/stacktrace.txt -d /path/to/matching.symbols

Keep baseline and obfuscated builds with the same version, dependencies and target architecture, and run the same functional and crash-diagnosis tests on each. When checking readable test markers, paths and names in artifacts, inspect only files you are authorized to examine. Not finding a string does not establish that the logic cannot be analyzed. Record differences and causes of failures, not merely whether a command exited successfully.

Your checklist

  • Certify the reference with independent tests including boundary cases.
  • Record compilation, execution results and candidate counts separately.
  • Preserve the test contract, input information and sampling seeds.
  • Regression-test name dependencies in an obfuscated Flutter release.
  • Keep symbols private by build and architecture and verify crash symbolication.

Primary sources

All sources and reproduction status ↗