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

ivory-backend-acl2 can not work #128

Open
stivensen opened this issue Apr 1, 2020 · 0 comments
Open

ivory-backend-acl2 can not work #128

stivensen opened this issue Apr 1, 2020 · 0 comments

Comments

@stivensen
Copy link

when i install ACL2 backend,the "cabal install" command made a mistake: Constructor ‘I.InitArray’ should have 2 arguments, but has been given 1,so the work failed.
How do I solve this?

Configuring ivory-backend-acl2-0.0.0...
Building ivory-backend-acl2-0.0.0...
Preprocessing library ivory-backend-acl2-0.0.0...
[ 9 of 10] Compiling Ivory.Compile.ACL2 ( src/Ivory/Compile/ACL2.hs, dist/build/Ivory/Compile/ACL2.o )

src/Ivory/Compile/ACL2.hs:90:3:
    Constructor ‘I.InitArray’ should have 2 arguments, but has been given 1
    In the pattern: I.InitArray a
    In a case alternative: I.InitArray a -> M.Array $ map cllInit a
    In the expression:
      case a of {
        I.InitZero -> M.Literal $ M.LitInteger 0
        I.InitExpr _ b -> cllExpr b
        I.InitArray a -> M.Array $ map cllInit a
        I.InitStruct a -> M.Struct [(n, cllInit v) | (n, v) <- a] }
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