---
name: infer
description: "Use when adopting Infer to assess this standard: Find unsafe paths across function calls"
---

# Apply Infer

Capture the normal compilation and analyze paths crossing function boundaries. Review findings such as null dereferences or resource leaks with their trace.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Infer.
2. Use Infer in this repository to meet this standard: Find unsafe paths across function calls. Capture the normal compilation and analyze paths crossing function boundaries. Review findings such as null dereferences or resource leaks with their trace. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://fbinfer.com/) for configuration and prerequisites.
