Files
rea/experiments/atomic-codemode/kuna-graph-scale-diagnostic.patch
T
4d7fccbce6 docs(experiment): measure bounded native definition projections
Preserve a diagnostic-only patch and reproducible lossless encoding/projection probe. The real VM graph exceeds several public capacities; selected SSA neighborhoods are much smaller, with explicit frontiers. Record actual resource costs and keep public engine/API limits unchanged.

Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
2026-10-16 10:30:19 +00:00

29 lines
1.2 KiB
Diff

--- a/decompiler/crates/kuna-decomp/src/substrate/atomic_facts.rs
+++ b/decompiler/crates/kuna-decomp/src/substrate/atomic_facts.rs
@@ -64,10 +64,10 @@
pub fn collect(arch: &Architecture, fd: &Funcdata) -> Result<FunctionFacts, String> {
// Bounds cover allocations before JSON serialization, independently of the
// transport byte budget. Overflow is an unavailable facet, not clipped IR.
- const MAX_OPERATIONS: usize = 12_000;
- const MAX_VALUES: usize = 36_000;
- const MAX_INPUTS: usize = 50_000;
- const MAX_DISPLAY_BYTES: usize = 2 * 1024 * 1024;
+ const MAX_OPERATIONS: usize = 32_000;
+ const MAX_VALUES: usize = 72_000;
+ const MAX_INPUTS: usize = 128_000;
+ const MAX_DISPLAY_BYTES: usize = 16 * 1024 * 1024;
if fd.bblocks_get_size() <= 0 {
return Err("recovered basic-block graph is unavailable".into());
}
--- a/decompiler/crates/kuna-decomp/src/substrate/atomic_values.rs
+++ b/decompiler/crates/kuna-decomp/src/substrate/atomic_values.rs
@@ -7,7 +7,7 @@
use slotmap::Key;
use std::collections::BTreeSet;
-pub const MAX_TEXT_BYTES: usize = 2 * 1024 * 1024;
+pub const MAX_TEXT_BYTES: usize = 16 * 1024 * 1024;
#[derive(Debug, Clone, Serialize)]
pub struct ValueFact {
pub id: String,