Skip to content
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

Boogie problem with loop over fixed size arrays #471

Open
wmanshu opened this issue Aug 23, 2019 · 0 comments
Open

Boogie problem with loop over fixed size arrays #471

wmanshu opened this issue Aug 23, 2019 · 0 comments

Comments

@wmanshu
Copy link

wmanshu commented Aug 23, 2019

This is a Boogie problem. Similar problem also happens with [Address] in 04_lottery_10_users.flint.

contract A {
  var arr1: Int[10] = []
}

A :: (any) {
  public init() {}

    func joinedAlready(participant: Int) -> Bool
    {
      for var i: Int in arr1 {
        if i == participant {
          return true
        }
      }
      return false
    }
}

eror message:

unknown sequence type used for for-loop iterable fixedSizeArrayType(AST.RawType.basicType(AST.RawType.BasicType.int), size: 10)
@wmanshu wmanshu changed the title Boogie problem with fixed sized arrays Boogie problem with loop over fixed sized arrays Aug 23, 2019
@wmanshu wmanshu changed the title Boogie problem with loop over fixed sized arrays Boogie problem with loop over fixed size arrays Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant