analyzer: simplify region_model::push_frame
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 21 Aug 2020 21:19:15 +0000 (17:19 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Sat, 22 Aug 2020 13:51:22 +0000 (09:51 -0400)
commit294b6da21bbd8297fe6aee497ac6c8e561637e70
tree073f20c5129c4385d621dbe8a0057b09c1a62731
parentfc34d04b075244e2ff4ca66079e2128c0cde026c
analyzer: simplify region_model::push_frame

region_model::push_frame was binding arguments for both the default SSA
name for each parameter, and the underlying parameter.

Simplify the generated states by only binding the default SSA name if
it exists, or the parameter if there is no default SSA name.

gcc/analyzer/ChangeLog:
* region-model.cc (region_model::push_frame): Bind the default
SSA name for each parm if it exists, falling back to the parm
itself otherwise, rather than doing both.

gcc/testsuite/ChangeLog:
* gcc.dg/analyzer/malloc-ipa-8-double-free.c: Drop
-fanalyzer-verbose-state-changes.
gcc/analyzer/region-model.cc
gcc/testsuite/gcc.dg/analyzer/malloc-ipa-8-double-free.c