Repository navigation
script: Wave 5 decompiler source-likeness and Roslyn bind improvements - #119
Merged
Merged
Conversation
- Multi-cell caller/callee parameter coalescing across signatures, overrides, natives, LoadBytes/copy_row/stored_field_row, and post-async locals::named (CS7036 84.9k -> 27.0k, v_ temps 3,972 -> 477, stack_ 1,885 -> 0) - Emit visibility for StoreBytes/LoadBytes/ZeroBytes/StepI32/Construct/inherited fields (CS0122 -> 0) and per-member unsafe for async classes/programs (CS4004 -> 0) - Boxed receiver method sugar (box_at<T>(&p1).GetHashCode()), unsubclassed builtin virtuals (System.Random.Next/NextDouble), alloc_managed/hard_raw separation, and IEnumerator promotion - Concrete-type null-coalescing, lambda/zero_bytes addr(ref ...), value-type try_cast<T>, bool virtual/local zero-test folding, uint/Hash casts, two-step enum casts, and element_ptr deref fixes - Prelude Cell.MoveNext/Current, mixed bitwise/operator disambiguation, Vector3 field dedup, System.Rage.CompareExchange, split-vector overloads, and try_cast<T> helpers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wave 5 of the GTA VI script decompiler source-likeness and Roslyn bind improvements:
passes/aggregates,passes/interproc,passes/values/locals):slot_params, virtual override ancestors, natives (Ped/Vector3/Handle),Expr::Cells,LoadBytes,copy_row, andstored_field_row(CS703684,895→26,993,pNuses-19.9%vs Stage B).locals::namedinsideapart_in_placeafter async/iterator rewrites (v_temp uses3,972→477,stack_uses1,885→0).emit/access.rs,emit/mod.rs):StoreBytes,StoreF32Slots,StepI32,ZeroBytes,LoadBytes,ByteOffset,Group::Field,Group::Construct,ExprSugar::Field, inherited fields, maskedFunctionRef, and in-place lambdasinternal(CS0122→0).unsafeon pointer-using classes/programs containingasync/await(CS4004→0).passes/sugar_runtime,passes/types):Object/ValueType.GetHashCode/ToString/Equalsonbox_at<T>(&p1)(CS1501-34k), unsubclassed builtin virtuals (System.Random.Next/NextDouble),Around::common_script_base,alloc_managedvshard_raw, andSystem.Collections.IEnumeratorpromotion.print/mod.rs,print/constructs,print/enums,print/prelude,reparse/mod.rs):zero_bytes(addr(ref ...))& lambdaaddr(ref local),try_cast<ValueStruct>helper,boolvirtual/local zero-test folding,uint/Hashcasts, two-step enum casts,element_ptrderef fixes,Cell.MoveNext/Current, mixed bitwise/operator disambiguation,Vector3field dedup,System.Rage.CompareExchange, and split-vector overloads.Verification (Full 745-Program Corpus + Roslyn Bind)
All 6 corpus checks passed (
index,oracle0 diffs,reread19,601,export745/745 0 failed,compiled0 diffs,reread-project19,612):#110)v_temp usesstack_uses->f_NarrowspNusesMerge gates passed:
or-iolib tests (1,656/1,656),or-clilib tests,clippy -p or-io -p or-cli --all-targets -- -D warnings,cargo test --bin openrage doc_,just self-check(140/140), pre-commit hook (fmt, encoding, provenance).