[all-commits] [llvm/llvm-project] 0a1789: [Analyzer][Core] Make SValBuilder to better simpli...

Gabor Marton via All-commits all-commits at lists.llvm.org
Tue Nov 30 02:27:41 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a17896fe6fdbbde1f9d3ffbb10a4f3bfa8960f9
      https://github.com/llvm/llvm-project/commit/0a17896fe6fdbbde1f9d3ffbb10a4f3bfa8960f9
  Author: Gabor Marton <gabor.marton at ericsson.com>
  Date:   2021-11-30 (Tue, 30 Nov 2021)

  Changed paths:
    M clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
    A clang/test/Analysis/svalbuilder-simplify-compound-svals.cpp
    M clang/test/Analysis/taint-tester.c

  Log Message:
  -----------
  [Analyzer][Core] Make SValBuilder to better simplify svals with 3 symbols in the tree

Add the capability to simplify more complex constraints where there are 3
symbols in the tree. In this change I extend simplifySVal to query constraints
of children sub-symbols in a symbol tree. (The constraint for the parent is
asked in getKnownValue.)

Differential Revision: https://reviews.llvm.org/D103317




More information about the All-commits mailing list