Coder Social home page Coder Social logo

Comments (3)

vjackson725 avatar vjackson725 commented on August 16, 2024

I have made changes to the proofs (commit 90f9d19) that should fix this. Could you test this on your code and see if this change helps. Thanks.

from cogent.

gteege avatar gteege commented on August 16, 2024

Yes, it seems to help, I was now able to build the CogentCRefinement session for architecture RISCV64.
Thanks for fixing it.

from cogent.

gteege avatar gteege commented on August 16, 2024

A similar problem now occurs later in AllRefine.thy (which I could not test before).
I am using commit 65b5724 of April 8th in master branch with builtin arrays enabled.
The Cogent program is a very simple test program:

f: U32 -> U32
f i = i+1

g: U32 -> U32
g i = f (i+1)

The error message is:

*** Type unification failed: Clash of types "1" and "_ bit0"
*** 
*** Failed to meet type constraint:
*** 
*** Term:  abs_upd_val ::
***   unit
***   \<Rightarrow> 'b \<Rightarrow> char list
***                                  \<Rightarrow> Cogent.type list
***          \<Rightarrow> sigil
***                        \<Rightarrow> 32 word set
***                                      \<Rightarrow> 32 word set
***              \<Rightarrow> bool
*** Type:
***   unit
***   \<Rightarrow> 'b \<Rightarrow> char list
***                                  \<Rightarrow> Cogent.type list
***          \<Rightarrow> sigil
***                        \<Rightarrow> 64 word set
***                                      \<Rightarrow> 64 word set
***              \<Rightarrow> bool
*** 
*** Coercion Inference:
*** 
*** Local coercion insertion on the operand failed:
*** Clash of types "1" and "_ bit0"
*** 
*** Now trying to infer coercions globally.
*** 
*** Coercion inference failed:
*** weak unification of subtype constraints fails
*** Clash of types "_ bit0" and "1"
*** 
*** At command "locale" (line 79 of ".../Test_simple_AllRefine.thy")

from cogent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.