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

Fatal error: exception "Assert_failure ownershipInference.ml:62:20" #10

Open
aigarashi opened this issue Sep 18, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@aigarashi
Copy link
Contributor

input program:

/*type node = (int * node ref * node ref)  = mu1.(int, 1 ref, 1 ref) */

lonely_node(v){
  mkref (v, mkref null, mkref null)
}

connect(n1, n2){
  let (v1, prev1, next1) = *n1 in
  let (v2, prev2, next2) = *n2 in{
    next1 := n2;
    prev2 := n1;
  }  
}

{
  let n1 = lonely_node(1) in
  let n2 = lonely_node(2) in {
    connect(n1, n2)
  }
}

output:
Fatal error: exception "Assert_failure ownershipInference.ml:62:20"

@aigarashi aigarashi added the bug Something isn't working label Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant