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

The summary of function in pulse-model-free-pattern is not the same as free #1847

Closed
3 of 5 tasks
thanhtoantnt opened this issue Jul 2, 2024 · 2 comments
Closed
3 of 5 tasks

Comments

@thanhtoantnt
Copy link

I want to simplify the summary of a Custom_Free function by using pulse-model-free-pattern.
However, when I check the function summary using infer-debug --procedures --procedures-summary --procedures-filter Custom_Free, the summary is the same as not using the pulse-model-free-pattern option, still really complicated with 5 pre/post pairs.

I expect that the summary of this custom free function would be the same as the summary of the free function, containing 2 pre/post pairs.

Here is the content of my .inferconfig file:

{
    "compilation-database": ["build/compile_commands.json"],
    "pulse-only": true,
    "no-pulse-report-latent-issues": true,
    "pulse-max-disjuncts": 60,
    "pulse-model-free-pattern": "Custom_Free",
    "pulse-model-malloc-pattern": "Custom_Malloc",
}

Please include the following information:

  • The version of infer from infer --version: Infer version v1.2.0-af2e6bcbf8
  • Your operating system and version: Ubuntu 22.04.4 LTS
  • Which command you ran: infer-run and I have a .inferconfig file
  • The full output in a paste, for instance a gist.
  • If possible, a minimal example to reproduce your problem (for instance, some code where
    infer reports incorrectly, together with the way you run infer to reproduce the incorrect
    report).
@jvillard
Copy link
Contributor

jvillard commented Jul 2, 2024

Specifying the option won't stop pulse from analysing Custom_Free so it will still have the same summary. However, pulse will not use that summary anywhere Custom_Free is called but will bypass it and treat is as free instead.

@thanhtoantnt
Copy link
Author

I understand now. Thank you, Jules.

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