Skip to content

HFIR miscompile: encode_json(parse_json s) prints raw s when followed by a let argument #155

Closed

Description

@howlcipher

Found in #154. With (print (encode_json (parse_json Any s)) (let …)), HFIR bytecode prints the raw text of s instead of the re-encoded JSON. The interpreter and -run-bc are correct. This is also on main. Fix: correct the lowering, and add a three-path parity test for this shape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions