-
Notifications
You must be signed in to change notification settings - Fork 145
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
PHI/UNPHI
Removes Objects With as
Attribute
#3820
Comments
I tried to change XMIR according with this suggestion. |
@maxonfjvipon Could you help with this issue, please? |
@volodya-lombrozo the original XMIR is not really valid because of duality in application bindings. I created a ticket in |
@volodya-lombrozo but also there's a bug in |
bug(#3820): fixed ordering in to-phi
@yegor256 let's make a new release |
@rultor release, tag is |
@volodya-lombrozo please try new version, maybe it resolves your problem, but also don't forget about this |
@maxonfjvipon I'm getting the following during the
Can I simply remove |
@maxonfjvipon Same about Here is my Java code private static XML unroll(final XML parsed) {
return new Xsline(
new TrFast(
new TrJoined<Shift>(
new TrClasspath<>(
"/org/eolang/parser/wrap-method-calls.xsl"
).back(),
new TrDefault<>(
new StEndless(
new StClasspath(
"/org/eolang/parser/roll-bases.xsl"
)
)
),
new TrClasspath<>(
"/org/eolang/parser/add-refs.xsl",
"/org/eolang/parser/add-cuts.xsl"
).back(),
new TrDefault<Shift>(
new StEndless(
new StClasspath(
"/org/eolang/parser/vars-float-down.xsl"
)
)
),
new TrClasspath<Shift>(
"/org/eolang/parser/remove-cuts.xsl",
// "/org/eolang/parser/add-default-package.xsl",
"/org/eolang/parser/explicit-data.xsl"
).back()
),
CanonicalXmir.class,
5
)
).pass(parsed);
} |
@volodya-lombrozo these xsls were moved to |
@maxonfjvipon Unfortunately, it didn't help (I see the same error.) |
@volodya-lombrozo please send me your disassembled XMIR and PHI |
@maxonfjvipon Sure. Here they are: App.xmir.disassemble.txt |
@volodya-lombrozo are you sure, you use the newest version? |
@maxonfjvipon You are absolutely right! I've just forgotten to update Thank you for the help and for the fix. |
I run the following integration test:
bytecode -> (disassemble)
xmir
->phi
->unphi
->unroll
->xmir
(assemble) -> bytecode.And this test fails because
phi/unphi
alter the originalxmir
file.Steps to reproduce:
App.xmir
fromApp.class
file (jeo:disassemble
).eo:0.50.0:xmir-to-phi
to generateApp.phi
(eo:xmir-to-phi
).eo:0.50.0:phi-to-xmir
to generateApp.xmir
(eo:phi-to-xmir
).jeo:unroll
and get exceptions about incorrectxmir
(jeo:unroll`).Actually,
phi/unphi
loose<o as="body-1299402125" base="jeo.seq.of3">
object. Later I see the following error:Expected behaviour:
App.xmir.disassemble.txt
andApp.xmir.unphi.txt
files should be the same. In other words,phi/unphi
does nothave to change the original
xmir
file.Actual behaviour:
App.xmir.disassemble.txt
andApp.xmir.unphi.txt
files are different.phi/unphi
significantly changes the originalxmir
.Details:
App.phi.txt
App.xmir.disassemble.txt
App.xmir.unphi.txt
App.xmir.unroll.txt
The text was updated successfully, but these errors were encountered: