Adds a very simple constant-propagation analysis for demo and testing purposes.
Also, fixes two (small) bugs in the testing framework code.
Paths
| Differential D115740
[clang][dataflow] Add simplistic constant-propagation analysis. ClosedPublic Authored by ymandel on Dec 14 2021, 9:20 AM.
Details Summary Adds a very simple constant-propagation analysis for demo and testing purposes. Also, fixes two (small) bugs in the testing framework code.
Diff Detail
Event Timeline
Comment Actions This demo looks cool. While I know this is a demo, I think it misses some important features, namely invalidating the value when we take the address of a variable or pass it to a function by non-const reference.
ymandel added inline comments.
This revision is now accepted and ready to land.Dec 15 2021, 10:31 AM This revision was landed with ongoing or failed builds.Dec 15 2021, 11:34 AM Closed by commit rG8179e1fd519d: [clang][dataflow] Add simplistic constant-propagation analysis. (authored by ymandel). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 394566 clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
clang/unittests/Analysis/FlowSensitive/SingleVarConstantPropagationTest.cpp
clang/unittests/Analysis/FlowSensitive/TestingSupport.h
|
Should this be a const ref? Same below.