infer-semdiff(1)
π infer-semdiff(1): Infer Semantic Difference, bestie edition π
β¨ NAME β¨
infer-semdiff β compute the semantic differences between two Python programs.
π¦ SYNOPSIS π¦
infer semdiff --semdiff-previous file --semdiff-current file [options]
πΈ DESCRIPTION πΈ
Okay so given two python programs, current and previous, semdiff computes a report informing if the programs are semantically equal. That report is stored in the semdiff.json file inside the standard infer output folder. No cap, thatβs the whole vibe.
π OPTIONS π
--debug,-gβ Activates: Debug mode (also sets--debug-level 2,--developer-mode,--print-buckets,--print-types,--reports-include-ml-loc,--no-only-cheap-debug,--trace-error,--write-html) (Conversely:--no-debug | -G)--debug-level levelβ Debug level (sets--bo-debug level,--debug-level-analysis level,--debug-level-capture level):0: only basic debugging enabled1: verbose debugging enabled2: very verbose debugging enabled
--debug-level-analysis intβ Debug level for the analysis. See--debug-levelfor accepted values.--debug-level-capture intβ Debug level for the capture. See--debug-levelfor accepted values.--debug-level-report intβ Debug level for the report. See--debug-levelfor accepted values.--helpβ Show this manual.--help-format { auto | groff | pager | plain }β Show this help in the specified format.autosets the format toplainif the environment variableTERMis"dumb"or undefined, and topagerotherwise.--help-fullβ Show this manual with all internal options in theINTERNAL OPTIONSsection.--semdiff-b007-migrationβ Activates: Check B007 migration: verify that the current program is a valid simplification of the previous program (remove unused enumerate, dict items to keys/values). (Conversely:--no-semdiff-b007-migration)--semdiff-configuration +pathβ Use configurable rewriting engine with the given python file. Can be specified multiple times to combine rules from several files.--semdiff-current pathβ Current python program to be analysed by semdiff.--semdiff-experimental-eqsat-engineβ Activates: Use experimental equality saturation rewriting engine. (Conversely:--no-semdiff-experimental-eqsat-engine)--semdiff-from-json pathβ Read pre-parsed AST pairs from a JSON file (skips parsing, for benchmarking core engines).--semdiff-previous pathβ Previous python program to be analysed by semdiff.--semdiff-test-actionsβ Specify which action must be performed in each parsed AST during semdiff tests. Takes a,-separated sequence of{ currify }.--semdiff-test-files-index pathβ A file containing a list of newline-separated Python files to run SemDiff tests.--semdiff-test-show-syntax-errorsβ Activates: List all syntax errors (location and explanation) the Python source parser encountered. (Conversely:--no-semdiff-test-show-syntax-errors)
π ENVIRONMENT π
The environment besties are INFER_ARGS, INFERCONFIG, and INFER_STRICT_MODE. See the ENVIRONMENT section in the manual of infer(1) for the full tea.
π FILES π
.inferconfigβ See the FILES section in the manual ofinfer(1).
π«Ά SEE ALSO π«Ά
π Thatβs the whole manual, bestie! Cute sign-off from v1.3.0-unknown, dated 2026-10-27 π
π¦ where this page comes from
- nixpkgs unstable: infer 1.3.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms