Skip to content

[core] “Replace constants” checkbox causes pseudo-code error #2414

@xmhwws

Description

@xmhwws

Issue details

Image

If “Replace constants” is unchecked, then the following picture is shown:

Image

int i13 = 0;
cArr[i13] = (char) i11;

If “Replace constants” is checked, then the following picture is shown:

Image

Image

private static final int i = 210;
int i13 = i;
cArr[i13] = (char) i11;

You can see that the index value, i13, is 0 one time and 210 the next. after actual testing, the value of i13 is 0, so, this is a bug!

Relevant log output or stacktrace

Provide sample and class/method full name

Link: https://drive.google.com/file/d/1n1SDgo5HkFAJ88vY_jfUNCAXD2uE8rt2/view?usp=sharing
class: com.appsflyer.internal.AFi1aSDKSS
Methods: private static String $$c(int i2, byte b, int i3)

Jadx version

latest version: 4644d1d

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreIssues in jadx-core modulebug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions