Skip to content

A bug in 2ls? #81

Open
Open
@theyoucheng

Description

@theyoucheng

Let us consider the code below

int main(void) {
  int i=0;
  int x=0;
  x=5;
  while(i<1000) {
    i++;
    x--;
    assert(x>=5);
    assert(x<=5);
    assert(x>=0);
    assert(x<=0);
  }
 return 0;
}

If I run 2ls main.c, results are like

[main.assertion.1] assertion x >= 5: FAILURE
[main.assertion.2] assertion x <= 5: OK
[main.assertion.3] assertion x >= 0: OK
[main.assertion.4] assertion x <= 0: OK

Which part of the 2ls is likely to be responsible for this bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions