Skip to content

max() function results in compilation failure due to alleged unreachable code #38

@m1cm1c

Description

@m1cm1c

Steps to reproduce

Paste the following function into any XJSnark program:

public uint_256 max(uint_256 a, uint_256 b) { 
  if (a > b) { 
    return a; 
  } else { 
    return b; 
  } 
}

The bug occurs regardless of whether this function is ever invoked.

It results in the following compilation problem:

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