Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "insertAfterLocalVariable" method on CtBehavior #452

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Adahel
Copy link

@Adahel Adahel commented Mar 30, 2023

The purpose of this method is to make changes to code where the line number or variable name is unknown or does not exist. I use it for some obfuscated code, but it doesn't work for all obfuscated code. For unobfuscated code it obviously works.
The implementation is included with a test.

@Adahel Adahel linked an issue Mar 30, 2023 that may be closed by this pull request
@Adahel
Copy link
Author

Adahel commented Mar 30, 2023

Good Day, @chibash.
I don't know if I was able to fully understand the example you showed me, I hope the test I wrote is enough.

For example,

void foo(int x) {
    int y;
    do {
       int z;
       bar(x, y, z);
    } while (expr);
       :
}

Thank you, Átila César.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "insertAfterLocalVariable" method on CtBehavior
1 participant