Skip to content

Redundant if flagged by hlint #759

Open
@gustavo-grieco

Description

@gustavo-grieco
-- src/EVM.hs:(2490,7)-(2498,65): Warning: Redundant if
-- Found:
  if offs64 + sz64 < sz64 then
      vmError IllegalOverflow
  else
      if offs64 >= 0x0fffffff || sz64 >= 0x0fffffff then
          vmError IllegalOverflow
      else
          accessUnboundedMemoryRange offs64 sz64 continue
-- Perhaps:
  (if (offs64 + sz64 < sz64)
        || (offs64 >= 0x0fffffff || sz64 >= 0x0fffffff) then
       vmError IllegalOverflow
   else
       accessUnboundedMemoryRange offs64 sz64 continue)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions