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

Weird analysis behavior #149

Open
nkrusch opened this issue Sep 22, 2024 · 0 comments
Open

Weird analysis behavior #149

nkrusch opened this issue Sep 22, 2024 · 0 comments

Comments

@nkrusch
Copy link
Member

nkrusch commented Sep 22, 2024

int main(int a, int b, int p, int q, int q_) {
  while (true) {
            a = a + 1;
            b = b + 1;
            q_ = a + b;
            q_ = q_ + 1;
            q_ = q_ * p;
            // q = q + q_;
  }
}

With the last line commented out vs. last line included, the second case takes 10x longer to run the analysis. I would like to understand why. Not sure if this is machine-specific.

The second case is infinite, but there are similar examples without infinity, so that should be irrelevant. It may be something stupid, like "copying lists in Python", but in any case looking for this kind of explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant