--- weight: 100 title: "Mangle Statements" description: "Constant decomposition and statement patching" icon: "article" date: "2025-05-01T18:47:58-05:00" lastmod: "2025-05-01T18:47:58-05:00" --- This option will enable non-destructive constant decomposition and various statement patching. The following child options are available: - `Mangle Numbers`: Replaces number constants with a randomized binary expression which evaluates to that number. - `Mangle Strings`: Performs light obfuscation of string constants. - `Mangle Self-calls`: Replaces `x:foo()` with `x.foo(x)`. - `Mangle Named Indexes`: Replaces `x.foo` with `x[]`. This will mangle the string regardless of whether `Mangle Strings` is enabled. - `Mangle Globals`: Globals are replaced with a cached global table indexed by an obfuscated string. eg. `print` becomes `_ENV[]`