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

feat(#226): Decompile Only Files With Supported Opcodes" #244

Merged

Conversation

volodya-lombrozo
Copy link
Member

@volodya-lombrozo volodya-lombrozo commented May 16, 2024

In this PR I added SelectiveDecompiler that decompiles only files that contain supported opcodes. If SelectiveDecompiler faces a file with unknown opcode, it just skips it and copies as is.
I encorporated this decompiler to staticize and fuse integration tests.

This changes are important printing xmir->phi. Now we can print only files that are fully decompiled. This saves time for spring-fat integration test.

Related to #226.
History:


PR-Codex overview

This PR updates the project to use Java 11, adds a new RawXml class, enhances XmirEntry with an XPath method, and refactors the decompiler classes.

Detailed summary

  • Updated project to use Java 11.
  • Added RawXml class for parsing XML.
  • Enhanced XmirEntry with an xpath method.
  • Refactored decompiler classes for better clarity.

The following files were skipped due to too many changes: src/test/resources/xmir/Known.xmir, src/main/java/org/eolang/opeo/ast/RawXml.java, src/main/java/org/eolang/opeo/SelectiveDecompiler.java, src/test/java/org/eolang/opeo/decompilation/SelectiveDecompilerTest.java

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@volodya-lombrozo
Copy link
Member Author

@rultor merge

@rultor
Copy link
Contributor

rultor commented May 16, 2024

@rultor merge

@volodya-lombrozo OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit ff6c2fb into objectionary:master May 16, 2024
8 checks passed
@rultor
Copy link
Contributor

rultor commented May 16, 2024

@rultor merge

@volodya-lombrozo Done! FYI, the full log is here (took me 7min)

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.

3 participants