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

UnzipArrays doesn't handle arrays of Z #10

Open
rrnewton opened this issue Feb 22, 2014 · 0 comments
Open

UnzipArrays doesn't handle arrays of Z #10

rrnewton opened this issue Feb 22, 2014 · 0 comments
Milestone

Comments

@rrnewton
Copy link
Member

I'm in the process of fixing tuple handling (hopefully once and for all), and I tripped across this which seems to be a problem with UnzipArrays.

Corresponds to test p13g.

What happens is that it drops the array entirely, leaving us with an empty list of program results:

unzipETups, output was:
================================================================================

Prog {progBinds = [ProgBind tmp_0
                            (TArray 1 (TTuple []))
                            (SubBinds {subnames = [], arrsize = Just TrivConst 1},
                             (Nothing, KnownSize [1]))
                            (Right Generate (EConst (I 1))
                                            (Lam1 (flatidx0, TInt) (ETuple []))),
                   ProgBind
                            (TTuple [])
                            (SubBinds {subnames = [], arrsize = Nothing},
                             (Nothing, UnknownSize))
                            (Left ETuple [])],
      progResults = WithShapesUnzipped [(tmp_0, [])],
      progType = TArray 1 (TTuple []),
      uniqueCounter = 2,
      typeEnv = [(tmp_0, TArray 1 (TTuple [])),(tmp_0_shape, TTuple [])]}

unzipArrays, output was:
================================================================================

Prog {progBinds = [ProgBind
                            (TArray 1 (TTuple []))
                            (OpInputs [],
                             (SubBinds {subnames = [], arrsize = Just TrivConst 1},
                              (Nothing, KnownSize [1])))
                            (Right Generate (EConst (I 1))
                                            (Lam1 (flatidx0, TInt) (ETuple []))),
                   ProgBind
                            (TTuple [])
                            (OpInputs [],
                             (SubBinds {subnames = [], arrsize = Nothing},
                              (Nothing, UnknownSize)))
                            (Left ETuple [])],
      progResults = WithShapesUnzipped [],
      progType = TArray 1 (TTuple []),
      uniqueCounter = 2,
      typeEnv = [(tmp_0, TArray 1 (TTuple [])),(tmp_0_shape, TTuple [])]}
@rrnewton rrnewton added this to the 1.0 milestone Feb 24, 2014
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