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

Error with parameters of the form .class #147

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

Error with parameters of the form .class #147

mgudemann opened this issue Jun 24, 2016 · 1 comment

Comments

@mgudemann
Copy link
Contributor

For example, when supplying a Class object in the form of String.class, CBMC fails with

function call: parameter "java::classtest1.f:(Ljava/lang/Class;Z)Z::arg1a" type mismatch: got struct
  * incomplete_class: 1
  * name: java::java.lang.String
  * tag: java.lang.String
  * base_name: java.lang.String
  * components:
    0:
      * type: string
      * name: @class_identifier
      * pretty_name: @class_identifier
  * #class: 1, expected pointer
  * #reference: 1
  0: symbol
      * identifier: java::java.lang.Class
      * #base_name: java.lang.Class

regression test:

public class classtest1
{
  public void test()
  {
    assert(f(String.class, true));
  }

  public boolean f(Class c, boolean b)
  {
    return b;
  }
}
@kroening
Copy link
Member

This is fixed with 89e8b8e

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
Projects
None yet
Development

No branches or pull requests

3 participants