Skip to content

Type mismatch with Bool type for Java #145

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

Closed
mgudemann opened this issue Jun 23, 2016 · 1 comment
Closed

Type mismatch with Bool type for Java #145

mgudemann opened this issue Jun 23, 2016 · 1 comment

Comments

@mgudemann
Copy link
Contributor

This program

public class boolean2
{
  public void entry(boolean b)
  {
    f(b);
    assert(true);
  }

  public boolean f(boolean b)
  {
    return !b;
  }
}

fails with

function call: parameter "java::boolean2.f:(Z)Z::arg1z" type mismatch: got signedbv
  * width: 32, expected c_bool
  * width: 8

on cbmc --function "boolean2.entry" boolean2.class with cbmc version that passes boolean1 test.

@kroening
Copy link
Member

Fixed with 35a5d92.

smowton pushed a commit to smowton/cbmc that referenced this issue May 9, 2018
smowton pushed a commit to smowton/cbmc that referenced this issue May 9, 2018
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

2 participants