Skip to content

xmir-to-phi Goal Produces Corrupted PHI Expressions #3896

Description

@volodya-lombrozo

I run xmir-to-phi goal to transform xmir to phi and then phi-to-xmir transformation to return back to the original xmir (nothing in the middle.) During phi-to-xmir transformation I'm getting the following error:

org/eolang/hone/mess/A.xmir:
	[6:16] error: 'no viable alternative at input 'j$org()↦⟦j$eolang()↦⟦j$hone()↦⟦j$mess()↦⟦j$A↦jeo''

	[7:22] error: 'no viable alternative at input 'version↦jeo''

	[8:17] error: 'no viable alternative at input 'org.''

	[9:19] error: 'no viable alternative at input 'org.''

	[10:14] error: 'mismatched input ')' expecting {')', '.'}'


org/eolang/hone/App.xmir:
	[5:16] error: 'no viable alternative at input 'j$org()↦⟦j$eolang()↦⟦j$hone()↦⟦j$App↦jeo''

	[6:20] error: 'no viable alternative at input 'version↦jeo''

	[7:15] error: 'no viable alternative at input 'org.''

	[7:33] error: 'no viable alternative at input 'org.''

	[7:79] error: 'mismatched input ')' expecting {')', '.'}'

Full log:

build.log

It seems that xmir-to-phi goal generates corrupted PHI expressions.

These files might be helpful:

App.xmir.disassemble.txt - initial XMIR
App.phi.txt - Output of xmir-to-phi
App.xmir.unphi.txt - Output of phi-to-xmir

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions