Index: lib/StaticAnalyzer/Core/BugReporterVisitors.cpp =================================================================== --- lib/StaticAnalyzer/Core/BugReporterVisitors.cpp +++ lib/StaticAnalyzer/Core/BugReporterVisitors.cpp @@ -1820,15 +1820,6 @@ ConditionBRVisitor::VisitNodeImpl(const ExplodedNode *N, BugReporterContext &BRC, BugReport &BR) { ProgramPoint progPoint = N->getLocation(); - ProgramStateRef CurrentState = N->getState(); - ProgramStateRef PrevState = N->getFirstPred()->getState(); - - // Compare the GDMs of the state, because that is where constraints - // are managed. Note that ensure that we only look at nodes that - // were generated by the analyzer engine proper, not checkers. - if (CurrentState->getGDM().getRoot() == - PrevState->getGDM().getRoot()) - return nullptr; // If an assumption was made on a branch, it should be caught // here by looking at the state transition. @@ -1839,21 +1830,6 @@ return nullptr; } - if (Optional PS = progPoint.getAs()) { - const std::pair &tags = - ExprEngine::geteagerlyAssumeBinOpBifurcationTags(); - - const ProgramPointTag *tag = PS->getTag(); - if (tag == tags.first) - return VisitTrueTest(cast(PS->getStmt()), true, - BRC, BR, N); - if (tag == tags.second) - return VisitTrueTest(cast(PS->getStmt()), false, - BRC, BR, N); - - return nullptr; - } - return nullptr; } Index: test/Analysis/Inputs/expected-plists/NewDelete-path-notes.cpp.plist =================================================================== --- test/Analysis/Inputs/expected-plists/NewDelete-path-notes.cpp.plist +++ test/Analysis/Inputs/expected-plists/NewDelete-path-notes.cpp.plist @@ -93,12 +93,75 @@ end - line11 + line9 + col7 + file0 + + + line9 + col7 + file0 + + + + + + + kindevent + location + + line9 + col7 + file0 + + ranges + + + + line9 + col7 + file0 + + + line9 + col7 + file0 + + + + depth0 + extended_message + Assuming 'p' is non-null + message + Assuming 'p' is non-null + + + kindcontrol + edges + + + start + + + line9 + col7 + file0 + + + line9 + col7 + file0 + + + end + + + line12 col5 file0 - line11 + line12 col10 file0 @@ -110,7 +173,7 @@ kindevent location - line11 + line12 col5 file0 @@ -118,12 +181,12 @@ - line11 + line12 col5 file0 - line11 + line12 col12 file0 @@ -143,12 +206,12 @@ start - line11 + line12 col5 file0 - line11 + line12 col10 file0 @@ -156,12 +219,12 @@ end - line14 + line15 col3 file0 - line14 + line15 col8 file0 @@ -173,7 +236,7 @@ kindevent location - line14 + line15 col3 file0 @@ -181,12 +244,12 @@ - line14 + line15 col3 file0 - line14 + line15 col10 file0 @@ -207,10 +270,10 @@ issue_hash_content_of_line_in_contextbd8e324d09c70b9e2be6f824a4942e5a issue_context_kindfunction issue_contexttest - issue_hash_function_offset8 + issue_hash_function_offset9 location - line14 + line15 col3 file0 @@ -221,8 +284,8 @@ 6 7 9 - 11 - 14 + 12 + 15 @@ -233,7 +296,7 @@ kindevent location - line25 + line26 col2 file0 @@ -241,12 +304,12 @@ - line25 + line26 col2 file0 - line25 + line26 col12 file0 @@ -262,7 +325,7 @@ kindevent location - line19 + line20 col2 file0 @@ -280,12 +343,12 @@ start - line19 + line20 col2 file0 - line19 + line20 col5 file0 @@ -293,12 +356,12 @@ end - line20 + line21 col3 file0 - line20 + line21 col8 file0 @@ -310,7 +373,7 @@ kindevent location - line20 + line21 col3 file0 @@ -318,12 +381,12 @@ - line20 + line21 col3 file0 - line20 + line21 col13 file0 @@ -339,7 +402,7 @@ kindevent location - line25 + line26 col2 file0 @@ -347,12 +410,12 @@ - line25 + line26 col2 file0 - line25 + line26 col12 file0 @@ -372,12 +435,12 @@ start - line25 + line26 col2 file0 - line25 + line26 col4 file0 @@ -385,12 +448,12 @@ end - line27 + line28 col2 file0 - line27 + line28 col7 file0 @@ -402,7 +465,7 @@ kindevent location - line27 + line28 col2 file0 @@ -410,12 +473,12 @@ - line27 + line28 col2 file0 - line27 + line28 col11 file0 @@ -439,7 +502,7 @@ issue_hash_function_offset3 location - line27 + line28 col2 file0 @@ -447,11 +510,11 @@ 0 - 19 20 - 24 + 21 25 - 27 + 26 + 28 Index: test/Analysis/Inputs/expected-plists/cxx-for-range.cpp.plist =================================================================== --- test/Analysis/Inputs/expected-plists/cxx-for-range.cpp.plist +++ test/Analysis/Inputs/expected-plists/cxx-for-range.cpp.plist @@ -161,6 +161,69 @@ end + line11 + col9 + file0 + + + line11 + col9 + file0 + + + + + + + kindevent + location + + line11 + col9 + file0 + + ranges + + + + line11 + col9 + file0 + + + line11 + col14 + file0 + + + + depth0 + extended_message + Assuming 'y' is not equal to 2 + message + Assuming 'y' is not equal to 2 + + + kindcontrol + edges + + + start + + + line11 + col9 + file0 + + + line11 + col9 + file0 + + + end + + line13 col5 file0 @@ -421,6 +484,69 @@ end + + + line11 + col9 + file0 + + + line11 + col9 + file0 + + + + + + + kindevent + location + + line11 + col9 + file0 + + ranges + + + + line11 + col9 + file0 + + + line11 + col14 + file0 + + + + depth0 + extended_message + Assuming 'y' is equal to 2 + message + Assuming 'y' is equal to 2 + + + kindcontrol + edges + + + start + + + line11 + col9 + file0 + + + line11 + col9 + file0 + + + end line12 @@ -666,6 +792,69 @@ end + + + line32 + col7 + file0 + + + line32 + col10 + file0 + + + + + + + kindevent + location + + line32 + col7 + file0 + + ranges + + + + line32 + col7 + file0 + + + line32 + col10 + file0 + + + + depth1 + extended_message + Assuming 'fail' is not equal to 0 + message + Assuming 'fail' is not equal to 0 + + + kindcontrol + edges + + + start + + + line32 + col7 + file0 + + + line32 + col10 + file0 + + + end line33 Index: test/Analysis/Inputs/expected-plists/edges-new.mm.plist =================================================================== --- test/Analysis/Inputs/expected-plists/edges-new.mm.plist +++ test/Analysis/Inputs/expected-plists/edges-new.mm.plist @@ -2711,6 +2711,35 @@ + kindevent + location + + line146 + col8 + file0 + + ranges + + + + line146 + col8 + file0 + + + line146 + col13 + file0 + + + + depth0 + extended_message + Assuming 'i' is not equal to 1 + message + Assuming 'i' is not equal to 1 + + kindcontrol edges @@ -2891,6 +2920,69 @@ end + line146 + col8 + file0 + + + line146 + col8 + file0 + + + + + + + kindevent + location + + line146 + col8 + file0 + + ranges + + + + line146 + col8 + file0 + + + line146 + col13 + file0 + + + + depth0 + extended_message + Assuming 'i' is equal to 1 + message + Assuming 'i' is equal to 1 + + + kindcontrol + edges + + + start + + + line146 + col8 + file0 + + + line146 + col8 + file0 + + + end + + line147 col5 file0 @@ -3160,69 +3252,6 @@ - kindcontrol - edges - - - start - - - line159 - col3 - file0 - - - line159 - col5 - file0 - - - end - - - line159 - col24 - file0 - - - line159 - col24 - file0 - - - - - - - kindevent - location - - line159 - col24 - file0 - - ranges - - - - line159 - col24 - file0 - - - line159 - col28 - file0 - - - - depth0 - extended_message - Assuming 'i' is >= 'x' - message - Assuming 'i' is >= 'x' - - kindevent location @@ -3260,12 +3289,12 @@ line159 - col24 + col3 file0 line159 - col24 + col5 file0 @@ -3443,69 +3472,6 @@ - kindcontrol - edges - - - start - - - line168 - col3 - file0 - - - line168 - col5 - file0 - - - end - - - line168 - col11 - file0 - - - line168 - col11 - file0 - - - - - - - kindevent - location - - line168 - col11 - file0 - - ranges - - - - line168 - col11 - file0 - - - line168 - col15 - file0 - - - - depth0 - extended_message - Assuming 'i' is >= 'x' - message - Assuming 'i' is >= 'x' - - kindevent location @@ -3543,12 +3509,12 @@ line168 - col11 + col3 file0 line168 - col11 + col5 file0 @@ -3809,13 +3775,13 @@ end - line179 - col7 + line178 + col9 file0 - line179 - col14 + line178 + col9 file0 @@ -3823,6 +3789,35 @@ + kindevent + location + + line178 + col9 + file0 + + ranges + + + + line178 + col9 + file0 + + + line178 + col14 + file0 + + + + depth0 + extended_message + Assuming 'i' is equal to 0 + message + Assuming 'i' is equal to 0 + + kindcontrol edges @@ -3830,21 +3825,55 @@ start - line179 - col7 + line178 + col9 file0 - line179 - col14 + line178 + col9 file0 end - line185 - col3 + line179 + col7 + file0 + + + line179 + col14 + file0 + + + + + + + kindcontrol + edges + + + start + + + line179 + col7 + file0 + + + line179 + col14 + file0 + + + end + + + line185 + col3 file0 @@ -4003,6 +4032,69 @@ end + line178 + col9 + file0 + + + line178 + col9 + file0 + + + + + + + kindevent + location + + line178 + col9 + file0 + + ranges + + + + line178 + col9 + file0 + + + line178 + col14 + file0 + + + + depth0 + extended_message + Assuming 'i' is not equal to 0 + message + Assuming 'i' is not equal to 0 + + + kindcontrol + edges + + + start + + + line178 + col9 + file0 + + + line178 + col9 + file0 + + + end + + line181 col5 file0 @@ -4037,6 +4129,69 @@ end + line181 + col9 + file0 + + + line181 + col9 + file0 + + + + + + + kindevent + location + + line181 + col9 + file0 + + ranges + + + + line181 + col9 + file0 + + + line181 + col14 + file0 + + + + depth0 + extended_message + Assuming 'i' is equal to 1 + message + Assuming 'i' is equal to 1 + + + kindcontrol + edges + + + start + + + line181 + col9 + file0 + + + line181 + col9 + file0 + + + end + + line183 col7 file0 @@ -6417,6 +6572,35 @@ + kindevent + location + + line240 + col7 + file0 + + ranges + + + + line240 + col7 + file0 + + + line240 + col7 + file0 + + + + depth0 + extended_message + Assuming the condition is true + message + Assuming the condition is true + + kindcontrol edges @@ -6451,6 +6635,35 @@ + kindevent + location + + line240 + col12 + file0 + + ranges + + + + line240 + col12 + file0 + + + line240 + col12 + file0 + + + + depth0 + extended_message + Assuming the condition is true + message + Assuming the condition is true + + kindcontrol edges @@ -6675,6 +6888,35 @@ + kindevent + location + + line247 + col7 + file0 + + ranges + + + + line247 + col7 + file0 + + + line247 + col7 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false + + kindcontrol edges @@ -6709,6 +6951,35 @@ + kindevent + location + + line247 + col12 + file0 + + ranges + + + + line247 + col12 + file0 + + + line247 + col12 + file0 + + + + depth0 + extended_message + Assuming the condition is true + message + Assuming the condition is true + + kindcontrol edges @@ -6933,8 +7204,37 @@ - kindcontrol - edges + kindevent + location + + line255 + col12 + file0 + + ranges + + + + line255 + col12 + file0 + + + line255 + col12 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false + + + kindcontrol + edges start @@ -7254,6 +7554,35 @@ + kindevent + location + + line263 + col8 + file0 + + ranges + + + + line263 + col8 + file0 + + + line263 + col8 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false + + kindcontrol edges @@ -7309,6 +7638,69 @@ line263 + col7 + file0 + + + line263 + col7 + file0 + + + + + + + kindevent + location + + line263 + col7 + file0 + + ranges + + + + line263 + col7 + file0 + + + line263 + col14 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false + + + kindcontrol + edges + + + start + + + line263 + col7 + file0 + + + line263 + col7 + file0 + + + end + + + line263 col19 file0 @@ -7575,6 +7967,35 @@ + kindevent + location + + line263 + col8 + file0 + + ranges + + + + line263 + col8 + file0 + + + line263 + col8 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false + + kindcontrol edges @@ -7630,6 +8051,69 @@ line263 + col7 + file0 + + + line263 + col7 + file0 + + + + + + + kindevent + location + + line263 + col7 + file0 + + ranges + + + + line263 + col7 + file0 + + + line263 + col14 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false + + + kindcontrol + edges + + + start + + + line263 + col7 + file0 + + + line263 + col7 + file0 + + + end + + + line263 col19 file0 @@ -7740,6 +8224,35 @@ + kindevent + location + + line267 + col7 + file0 + + ranges + + + + line267 + col7 + file0 + + + line267 + col7 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false + + kindcontrol edges @@ -7774,6 +8287,35 @@ + kindevent + location + + line267 + col13 + file0 + + ranges + + + + line267 + col13 + file0 + + + line267 + col13 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false + + kindcontrol edges @@ -7808,6 +8350,35 @@ + kindevent + location + + line267 + col18 + file0 + + ranges + + + + line267 + col18 + file0 + + + line267 + col22 + file0 + + + + depth0 + extended_message + Assuming 'coin' is 0 + message + Assuming 'coin' is 0 + + kindcontrol edges @@ -7962,7 +8533,104 @@ extended_message 'p' initialized to a null pointer value message - 'p' initialized to a null pointer value + 'p' initialized to a null pointer value + + + kindcontrol + edges + + + start + + + line274 + col3 + file0 + + + line274 + col5 + file0 + + + end + + + line276 + col3 + file0 + + + line276 + col4 + file0 + + + + + + + kindcontrol + edges + + + start + + + line276 + col3 + file0 + + + line276 + col4 + file0 + + + end + + + line276 + col7 + file0 + + + line276 + col7 + file0 + + + + + + + kindevent + location + + line276 + col8 + file0 + + ranges + + + + line276 + col8 + file0 + + + line276 + col8 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false kindcontrol @@ -7972,13 +8640,13 @@ start - line274 - col3 + line276 + col8 file0 - line274 - col5 + line276 + col8 file0 @@ -7986,12 +8654,12 @@ line276 - col3 + col14 file0 line276 - col4 + col14 file0 @@ -7999,6 +8667,35 @@ + kindevent + location + + line276 + col14 + file0 + + ranges + + + + line276 + col14 + file0 + + + line276 + col14 + file0 + + + + depth0 + extended_message + Assuming the condition is true + message + Assuming the condition is true + + kindcontrol edges @@ -8007,12 +8704,12 @@ line276 - col3 + col14 file0 line276 - col4 + col14 file0 @@ -8020,12 +8717,12 @@ line276 - col7 + col19 file0 line276 - col7 + col19 file0 @@ -8041,12 +8738,12 @@ line276 - col8 + col19 file0 line276 - col8 + col19 file0 @@ -8054,12 +8751,12 @@ line276 - col14 + col7 file0 line276 - col14 + col7 file0 @@ -8067,6 +8764,35 @@ + kindevent + location + + line276 + col7 + file0 + + ranges + + + + line276 + col7 + file0 + + + line276 + col21 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false + + kindcontrol edges @@ -8075,12 +8801,12 @@ line276 - col14 + col7 file0 line276 - col14 + col7 file0 @@ -8088,12 +8814,12 @@ line276 - col19 + col30 file0 line276 - col19 + col30 file0 @@ -8101,6 +8827,35 @@ + kindevent + location + + line276 + col31 + file0 + + ranges + + + + line276 + col31 + file0 + + + line276 + col31 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false + + kindcontrol edges @@ -8109,12 +8864,12 @@ line276 - col19 + col31 file0 line276 - col19 + col31 file0 @@ -8122,12 +8877,12 @@ line276 - col30 + col36 file0 line276 - col30 + col36 file0 @@ -8143,12 +8898,12 @@ line276 - col31 + col36 file0 line276 - col31 + col36 file0 @@ -8156,12 +8911,12 @@ line276 - col36 + col30 file0 line276 - col36 + col30 file0 @@ -8169,6 +8924,35 @@ + kindevent + location + + line276 + col30 + file0 + + ranges + + + + line276 + col30 + file0 + + + line276 + col37 + file0 + + + + depth0 + extended_message + Assuming the condition is true + message + Assuming the condition is true + + kindcontrol edges @@ -8177,12 +8961,12 @@ line276 - col36 + col30 file0 line276 - col36 + col30 file0 @@ -8203,6 +8987,35 @@ + kindevent + location + + line276 + col46 + file0 + + ranges + + + + line276 + col46 + file0 + + + line276 + col46 + file0 + + + + depth0 + extended_message + Assuming the condition is true + message + Assuming the condition is true + + kindcontrol edges @@ -8660,6 +9473,35 @@ + kindevent + location + + line285 + col12 + file0 + + ranges + + + + line285 + col12 + file0 + + + line285 + col12 + file0 + + + + depth0 + extended_message + Assuming 'z' is 0 + message + Assuming 'z' is 0 + + kindcontrol edges @@ -8973,7 +9815,41 @@ line294 - col4 + col4 + file0 + + + + + + + kindcontrol + edges + + + start + + + line294 + col3 + file0 + + + line294 + col4 + file0 + + + end + + + line294 + col7 + file0 + + + line294 + col7 file0 @@ -8981,6 +9857,35 @@ + kindevent + location + + line294 + col7 + file0 + + ranges + + + + line294 + col7 + file0 + + + line294 + col7 + file0 + + + + depth0 + extended_message + Assuming 'y' is null + message + Assuming 'y' is null + + kindcontrol edges @@ -8989,12 +9894,12 @@ line294 - col3 + col7 file0 line294 - col4 + col7 file0 @@ -11589,6 +12494,69 @@ end + line457 + col9 + file0 + + + line457 + col9 + file0 + + + + + + + kindevent + location + + line457 + col9 + file0 + + ranges + + + + line457 + col9 + file0 + + + line457 + col14 + file0 + + + + depth0 + extended_message + Assuming 'first' is not equal to 0 + message + Assuming 'first' is not equal to 0 + + + kindcontrol + edges + + + start + + + line457 + col9 + file0 + + + line457 + col9 + file0 + + + end + + line459 col5 file0 @@ -11788,6 +12756,69 @@ end + line457 + col9 + file0 + + + line457 + col9 + file0 + + + + + + + kindevent + location + + line457 + col9 + file0 + + ranges + + + + line457 + col9 + file0 + + + line457 + col14 + file0 + + + + depth0 + extended_message + Assuming 'first' is 0 + message + Assuming 'first' is 0 + + + kindcontrol + edges + + + start + + + line457 + col9 + file0 + + + line457 + col9 + file0 + + + end + + line458 col7 file0 @@ -12053,12 +13084,12 @@ end - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -12067,6 +13098,35 @@ + kindevent + location + + line457 + col9 + file0 + + ranges + + + + line457 + col9 + file0 + + + line457 + col14 + file0 + + + + depth0 + extended_message + Assuming 'first' is not equal to 0 + message + Assuming 'first' is not equal to 0 + + kindcontrol edges @@ -12074,12 +13134,12 @@ start - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -12087,13 +13147,13 @@ end - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 @@ -12108,26 +13168,26 @@ start - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 end - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -12142,13 +13202,13 @@ start - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -12156,46 +13216,17 @@ line462 - col19 - file0 - - - line462 - col19 + col3 file0 - - - - - - kindevent - location - - line462 - col19 - file0 - - ranges - - - - line462 - col19 - file0 - - - line462 - col26 - file0 - - - - depth0 - extended_message - Assuming the condition is true - message - Assuming the condition is true + + line462 + col5 + file0 + + + + kindevent @@ -12235,12 +13266,12 @@ line462 - col19 + col3 file0 line462 - col19 + col5 file0 @@ -12548,12 +13579,12 @@ end - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -12562,6 +13593,35 @@ + kindevent + location + + line457 + col9 + file0 + + ranges + + + + line457 + col9 + file0 + + + line457 + col14 + file0 + + + + depth0 + extended_message + Assuming 'first' is not equal to 0 + message + Assuming 'first' is not equal to 0 + + kindcontrol edges @@ -12569,12 +13629,12 @@ start - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -12582,13 +13642,13 @@ end - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 @@ -12603,26 +13663,26 @@ start - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 end - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -12637,13 +13697,13 @@ start - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -12651,12 +13711,12 @@ line462 - col19 + col3 file0 line462 - col19 + col5 file0 @@ -12688,35 +13748,6 @@ depth0 extended_message - Assuming the condition is false - message - Assuming the condition is false - - - kindevent - location - - line462 - col19 - file0 - - ranges - - - - line462 - col19 - file0 - - - line462 - col26 - file0 - - - - depth0 - extended_message Loop body executed 0 times message Loop body executed 0 times @@ -12730,12 +13761,12 @@ line462 - col19 + col3 file0 line462 - col19 + col5 file0 @@ -13110,12 +14141,12 @@ end - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -13124,6 +14155,35 @@ + kindevent + location + + line457 + col9 + file0 + + ranges + + + + line457 + col9 + file0 + + + line457 + col14 + file0 + + + + depth0 + extended_message + Assuming 'first' is not equal to 0 + message + Assuming 'first' is not equal to 0 + + kindcontrol edges @@ -13131,12 +14191,12 @@ start - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -13144,13 +14204,13 @@ end - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 @@ -13165,26 +14225,26 @@ start - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 end - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -13199,13 +14259,13 @@ start - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -13213,12 +14273,12 @@ line462 - col19 + col3 file0 line462 - col19 + col5 file0 @@ -13250,35 +14310,6 @@ depth0 extended_message - Assuming the condition is false - message - Assuming the condition is false - - - kindevent - location - - line462 - col19 - file0 - - ranges - - - - line462 - col19 - file0 - - - line462 - col26 - file0 - - - - depth0 - extended_message Loop body executed 0 times message Loop body executed 0 times @@ -13292,12 +14323,12 @@ line462 - col19 + col3 file0 line462 - col19 + col5 file0 @@ -14106,54 +15137,20 @@ file0 - line494 - col11 - file0 - - - end - - - line497 - col3 - file0 - - - line497 - col5 - file0 - - - - - - - kindcontrol - edges - - - start - - - line497 - col3 - file0 - - - line497 - col5 + line494 + col11 file0 end - line498 + line497 col3 file0 - line498 + line497 col5 file0 @@ -14169,12 +15166,12 @@ start - line498 + line497 col3 file0 - line498 + line497 col5 file0 @@ -14183,12 +15180,12 @@ line498 - col15 + col3 file0 line498 - col15 + col5 file0 @@ -14220,35 +15217,6 @@ depth0 extended_message - Assuming the condition is true - message - Assuming the condition is true - - - kindevent - location - - line498 - col15 - file0 - - ranges - - - - line498 - col15 - file0 - - - line498 - col22 - file0 - - - - depth0 - extended_message Entering loop body message Entering loop body @@ -14262,12 +15230,12 @@ line498 - col15 + col3 file0 line498 - col15 + col5 file0 @@ -14591,12 +15559,12 @@ end - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -14605,6 +15573,35 @@ + kindevent + location + + line457 + col9 + file0 + + ranges + + + + line457 + col9 + file0 + + + line457 + col14 + file0 + + + + depth0 + extended_message + Assuming 'first' is not equal to 0 + message + Assuming 'first' is not equal to 0 + + kindcontrol edges @@ -14612,12 +15609,12 @@ start - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -14625,13 +15622,13 @@ end - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 @@ -14646,26 +15643,26 @@ start - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 end - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -14680,13 +15677,13 @@ start - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -14694,12 +15691,12 @@ line462 - col19 + col3 file0 line462 - col19 + col5 file0 @@ -14731,35 +15728,6 @@ depth0 extended_message - Assuming the condition is false - message - Assuming the condition is false - - - kindevent - location - - line462 - col19 - file0 - - ranges - - - - line462 - col19 - file0 - - - line462 - col26 - file0 - - - - depth0 - extended_message Loop body executed 0 times message Loop body executed 0 times @@ -14773,12 +15741,12 @@ line462 - col19 + col3 file0 line462 - col19 + col5 file0 @@ -15643,69 +16611,6 @@ - kindcontrol - edges - - - start - - - line498 - col3 - file0 - - - line498 - col5 - file0 - - - end - - - line498 - col15 - file0 - - - line498 - col15 - file0 - - - - - - - kindevent - location - - line498 - col15 - file0 - - ranges - - - - line498 - col15 - file0 - - - line498 - col22 - file0 - - - - depth0 - extended_message - Assuming the condition is false - message - Assuming the condition is false - - kindevent location @@ -15728,45 +16633,11 @@ - depth0 - extended_message - Loop body executed 0 times - message - Loop body executed 0 times - - - kindcontrol - edges - - - start - - - line498 - col15 - file0 - - - line498 - col15 - file0 - - - end - - - line503 - col3 - file0 - - - line503 - col5 - file0 - - - - + depth0 + extended_message + Loop body executed 0 times + message + Loop body executed 0 times kindcontrol @@ -15776,12 +16647,12 @@ start - line503 + line498 col3 file0 - line503 + line498 col5 file0 @@ -15790,12 +16661,12 @@ line503 - col10 + col3 file0 line503 - col10 + col5 file0 @@ -15827,35 +16698,6 @@ depth0 extended_message - Assuming the condition is true - message - Assuming the condition is true - - - kindevent - location - - line503 - col10 - file0 - - ranges - - - - line503 - col10 - file0 - - - line503 - col17 - file0 - - - - depth0 - extended_message Entering loop body message Entering loop body @@ -15869,12 +16711,12 @@ line503 - col10 + col3 file0 line503 - col10 + col5 file0 @@ -16199,12 +17041,12 @@ end - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -16213,6 +17055,35 @@ + kindevent + location + + line457 + col9 + file0 + + ranges + + + + line457 + col9 + file0 + + + line457 + col14 + file0 + + + + depth0 + extended_message + Assuming 'first' is not equal to 0 + message + Assuming 'first' is not equal to 0 + + kindcontrol edges @@ -16220,12 +17091,12 @@ start - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -16233,13 +17104,13 @@ end - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 @@ -16254,26 +17125,26 @@ start - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 end - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -16288,13 +17159,13 @@ start - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -16302,12 +17173,12 @@ line462 - col19 + col3 file0 line462 - col19 + col5 file0 @@ -16339,35 +17210,6 @@ depth0 extended_message - Assuming the condition is false - message - Assuming the condition is false - - - kindevent - location - - line462 - col19 - file0 - - ranges - - - - line462 - col19 - file0 - - - line462 - col26 - file0 - - - - depth0 - extended_message Loop body executed 0 times message Loop body executed 0 times @@ -16381,12 +17223,12 @@ line462 - col19 + col3 file0 line462 - col19 + col5 file0 @@ -17251,69 +18093,6 @@ - kindcontrol - edges - - - start - - - line498 - col3 - file0 - - - line498 - col5 - file0 - - - end - - - line498 - col15 - file0 - - - line498 - col15 - file0 - - - - - - - kindevent - location - - line498 - col15 - file0 - - ranges - - - - line498 - col15 - file0 - - - line498 - col22 - file0 - - - - depth0 - extended_message - Assuming the condition is false - message - Assuming the condition is false - - kindevent location @@ -17333,48 +18112,14 @@ line498 col22 file0 - - - - depth0 - extended_message - Loop body executed 0 times - message - Loop body executed 0 times - - - kindcontrol - edges - - - start - - - line498 - col15 - file0 - - - line498 - col15 - file0 - - - end - - - line503 - col3 - file0 - - - line503 - col5 - file0 - - - - + + + + depth0 + extended_message + Loop body executed 0 times + message + Loop body executed 0 times kindcontrol @@ -17384,12 +18129,12 @@ start - line503 + line498 col3 file0 - line503 + line498 col5 file0 @@ -17398,12 +18143,12 @@ line503 - col10 + col3 file0 line503 - col10 + col5 file0 @@ -17435,35 +18180,6 @@ depth0 extended_message - Assuming the condition is false - message - Assuming the condition is false - - - kindevent - location - - line503 - col10 - file0 - - ranges - - - - line503 - col10 - file0 - - - line503 - col17 - file0 - - - - depth0 - extended_message Loop body executed 0 times message Loop body executed 0 times @@ -17477,37 +18193,16 @@ line503 - col10 - file0 - - - line503 - col10 - file0 - - - end - - - line508 col3 file0 - line508 + line503 col5 file0 - - - - - kindcontrol - edges - - - start + end line508 @@ -17520,19 +18215,6 @@ file0 - end - - - line508 - col10 - file0 - - - line508 - col10 - file0 - - @@ -17561,35 +18243,6 @@ depth0 extended_message - Assuming the condition is true - message - Assuming the condition is true - - - kindevent - location - - line508 - col10 - file0 - - ranges - - - - line508 - col10 - file0 - - - line508 - col17 - file0 - - - - depth0 - extended_message Entering loop body message Entering loop body @@ -17603,12 +18256,12 @@ line508 - col10 + col3 file0 line508 - col10 + col5 file0 @@ -18032,12 +18685,12 @@ end - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -18046,6 +18699,35 @@ + kindevent + location + + line457 + col9 + file0 + + ranges + + + + line457 + col9 + file0 + + + line457 + col14 + file0 + + + + depth0 + extended_message + Assuming 'first' is not equal to 0 + message + Assuming 'first' is not equal to 0 + + kindcontrol edges @@ -18053,12 +18735,12 @@ start - line459 - col5 + line457 + col9 file0 - line459 + line457 col9 file0 @@ -18066,13 +18748,13 @@ end - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 @@ -18087,26 +18769,26 @@ start - line460 - col12 + line459 + col5 file0 - line460 - col12 + line459 + col9 file0 end - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -18121,13 +18803,13 @@ start - line462 - col3 + line460 + col12 file0 - line462 - col5 + line460 + col12 file0 @@ -18135,12 +18817,12 @@ line462 - col19 + col3 file0 line462 - col19 + col5 file0 @@ -18172,35 +18854,6 @@ depth0 extended_message - Assuming the condition is false - message - Assuming the condition is false - - - kindevent - location - - line462 - col19 - file0 - - ranges - - - - line462 - col19 - file0 - - - line462 - col26 - file0 - - - - depth0 - extended_message Loop body executed 0 times message Loop body executed 0 times @@ -18214,12 +18867,12 @@ line462 - col19 + col3 file0 line462 - col19 + col5 file0 @@ -19008,41 +19661,7 @@ line494 - col11 - file0 - - - - - - - kindcontrol - edges - - - start - - - line494 - col7 - file0 - - - line494 - col11 - file0 - - - end - - - line497 - col3 - file0 - - - line497 - col5 + col11 file0 @@ -19057,25 +19676,25 @@ start - line497 - col3 + line494 + col7 file0 - line497 - col5 + line494 + col11 file0 end - line498 + line497 col3 file0 - line498 + line497 col5 file0 @@ -19091,12 +19710,12 @@ start - line498 + line497 col3 file0 - line498 + line497 col5 file0 @@ -19105,12 +19724,12 @@ line498 - col15 + col3 file0 line498 - col15 + col5 file0 @@ -19142,35 +19761,6 @@ depth0 extended_message - Assuming the condition is false - message - Assuming the condition is false - - - kindevent - location - - line498 - col15 - file0 - - ranges - - - - line498 - col15 - file0 - - - line498 - col22 - file0 - - - - depth0 - extended_message Loop body executed 0 times message Loop body executed 0 times @@ -19184,37 +19774,16 @@ line498 - col15 - file0 - - - line498 - col15 - file0 - - - end - - - line503 col3 file0 - line503 + line498 col5 file0 - - - - - kindcontrol - edges - - - start + end line503 @@ -19227,19 +19796,6 @@ file0 - end - - - line503 - col10 - file0 - - - line503 - col10 - file0 - - @@ -19268,35 +19824,6 @@ depth0 extended_message - Assuming the condition is false - message - Assuming the condition is false - - - kindevent - location - - line503 - col10 - file0 - - ranges - - - - line503 - col10 - file0 - - - line503 - col17 - file0 - - - - depth0 - extended_message Loop body executed 0 times message Loop body executed 0 times @@ -19310,37 +19837,16 @@ line503 - col10 - file0 - - - line503 - col10 - file0 - - - end - - - line508 col3 file0 - line508 + line503 col5 file0 - - - - - kindcontrol - edges - - - start + end line508 @@ -19353,19 +19859,6 @@ file0 - end - - - line508 - col10 - file0 - - - line508 - col10 - file0 - - @@ -19394,35 +19887,6 @@ depth0 extended_message - Assuming the condition is false - message - Assuming the condition is false - - - kindevent - location - - line508 - col10 - file0 - - ranges - - - - line508 - col10 - file0 - - - line508 - col17 - file0 - - - - depth0 - extended_message Loop body executed 0 times message Loop body executed 0 times @@ -19436,12 +19900,12 @@ line508 - col10 + col3 file0 line508 - col10 + col5 file0 @@ -19997,9 +20461,9 @@ depth0 extended_message - Assuming 'tmp' is null + Reallocation failed message - Assuming 'tmp' is null + Reallocation failed kindevent @@ -20026,9 +20490,9 @@ depth0 extended_message - Reallocation failed + Assuming 'tmp' is null message - Reallocation failed + Assuming 'tmp' is null kindcontrol @@ -21341,6 +21805,69 @@ end + line587 + col11 + file0 + + + line587 + col11 + file0 + + + + + + + kindevent + location + + line587 + col11 + file0 + + ranges + + + + line587 + col11 + file0 + + + line587 + col16 + file0 + + + + depth0 + extended_message + Assuming the condition is true + message + Assuming the condition is true + + + kindcontrol + edges + + + start + + + line587 + col11 + file0 + + + line587 + col11 + file0 + + + end + + line588 col9 file0 Index: test/Analysis/Inputs/expected-plists/inline-plist.c.plist =================================================================== --- test/Analysis/Inputs/expected-plists/inline-plist.c.plist +++ test/Analysis/Inputs/expected-plists/inline-plist.c.plist @@ -518,12 +518,75 @@ end - line47 + line45 + col7 + file0 + + + line45 + col7 + file0 + + + + + + + kindevent + location + + line45 + col7 + file0 + + ranges + + + + line45 + col7 + file0 + + + line45 + col12 + file0 + + + + depth0 + extended_message + Assuming 'p' is equal to null + message + Assuming 'p' is equal to null + + + kindcontrol + edges + + + start + + + line45 + col7 + file0 + + + line45 + col7 + file0 + + + end + + + line48 col5 file0 - line47 + line48 col16 file0 @@ -535,7 +598,7 @@ kindevent location - line47 + line48 col18 file0 @@ -543,12 +606,12 @@ - line47 + line48 col18 file0 - line47 + line48 col18 file0 @@ -564,7 +627,7 @@ kindevent location - line47 + line48 col5 file0 @@ -572,12 +635,12 @@ - line47 + line48 col5 file0 - line47 + line48 col19 file0 @@ -725,7 +788,7 @@ 38 39 45 - 47 + 48 @@ -736,7 +799,7 @@ kindevent location - line58 + line59 col3 file0 @@ -744,12 +807,12 @@ - line58 + line59 col3 file0 - line58 + line59 col8 file0 @@ -769,12 +832,12 @@ start - line58 + line59 col3 file0 - line58 + line59 col5 file0 @@ -782,12 +845,12 @@ end - line59 + line60 col3 file0 - line59 + line60 col3 file0 @@ -799,7 +862,7 @@ kindevent location - line59 + line60 col3 file0 @@ -807,12 +870,12 @@ - line59 + line60 col3 file0 - line61 + line62 col5 file0 @@ -828,7 +891,7 @@ kindevent location - line59 + line60 col3 file0 @@ -846,12 +909,12 @@ start - line59 + line60 col3 file0 - line59 + line60 col3 file0 @@ -859,12 +922,12 @@ end - line60 + line61 col5 file0 - line60 + line61 col5 file0 @@ -880,12 +943,12 @@ start - line60 + line61 col5 file0 - line60 + line61 col5 file0 @@ -893,12 +956,12 @@ end - line60 + line61 col8 file0 - line60 + line61 col8 file0 @@ -910,7 +973,7 @@ kindevent location - line60 + line61 col8 file0 @@ -918,12 +981,12 @@ - line60 + line61 col6 file0 - line60 + line61 col6 file0 @@ -944,7 +1007,7 @@ issue_hash_content_of_line_in_contexta2e7504f29818834127c44ba841f4da8 location - line60 + line61 col8 file0 @@ -952,10 +1015,10 @@ 0 - 57 58 59 60 + 61 @@ -970,12 +1033,12 @@ start - line66 + line67 col3 file0 - line66 + line67 col5 file0 @@ -983,12 +1046,12 @@ end - line66 + line67 col12 file0 - line66 + line67 col12 file0 @@ -1000,7 +1063,7 @@ kindevent location - line66 + line67 col12 file0 @@ -1008,12 +1071,12 @@ - line66 + line67 col12 file0 - line69 + line70 col5 file0 @@ -1029,7 +1092,7 @@ kindevent location - line66 + line67 col12 file0 @@ -1047,12 +1110,12 @@ start - line66 + line67 col12 file0 - line66 + line67 col12 file0 @@ -1060,12 +1123,12 @@ end - line67 + line68 col5 file0 - line67 + line68 col7 file0 @@ -1077,7 +1140,7 @@ kindevent location - line67 + line68 col5 file0 @@ -1085,12 +1148,12 @@ - line67 + line68 col5 file0 - line67 + line68 col10 file0 @@ -1110,12 +1173,12 @@ start - line67 + line68 col5 file0 - line67 + line68 col7 file0 @@ -1123,12 +1186,12 @@ end - line68 + line69 col5 file0 - line68 + line69 col10 file0 @@ -1140,7 +1203,7 @@ kindevent location - line68 + line69 col5 file0 @@ -1148,12 +1211,12 @@ - line68 + line69 col5 file0 - line68 + line69 col12 file0 @@ -1169,7 +1232,7 @@ kindevent location - line66 + line67 col12 file0 @@ -1177,12 +1240,12 @@ - line66 + line67 col12 file0 - line69 + line70 col5 file0 @@ -1202,12 +1265,12 @@ start - line66 + line67 col12 file0 - line66 + line67 col12 file0 @@ -1215,12 +1278,12 @@ end - line66 + line67 col3 file0 - line66 + line67 col5 file0 @@ -1232,7 +1295,7 @@ kindevent location - line66 + line67 col3 file0 @@ -1240,12 +1303,12 @@ - line66 + line67 col3 file0 - line66 + line67 col8 file0 @@ -1265,12 +1328,12 @@ start - line66 + line67 col3 file0 - line66 + line67 col5 file0 @@ -1278,12 +1341,12 @@ end - line70 + line71 col3 file0 - line70 + line71 col3 file0 @@ -1299,12 +1362,12 @@ start - line70 + line71 col3 file0 - line70 + line71 col3 file0 @@ -1312,12 +1375,12 @@ end - line70 + line71 col6 file0 - line70 + line71 col6 file0 @@ -1329,7 +1392,7 @@ kindevent location - line70 + line71 col6 file0 @@ -1337,12 +1400,12 @@ - line70 + line71 col4 file0 - line70 + line71 col4 file0 @@ -1366,7 +1429,7 @@ issue_hash_function_offset5 location - line70 + line71 col6 file0 @@ -1374,11 +1437,11 @@ 0 - 65 66 67 68 - 70 + 69 + 71 @@ -1393,12 +1456,12 @@ start - line74 + line75 col3 file0 - line74 + line75 col9 file0 @@ -1406,12 +1469,12 @@ end - line75 + line76 col3 file0 - line75 + line76 col3 file0 @@ -1423,7 +1486,7 @@ kindevent location - line75 + line76 col3 file0 @@ -1431,12 +1494,12 @@ - line75 + line76 col3 file0 - line77 + line78 col5 file0 @@ -1452,7 +1515,7 @@ kindevent location - line75 + line76 col3 file0 @@ -1470,12 +1533,12 @@ start - line75 + line76 col3 file0 - line75 + line76 col3 file0 @@ -1483,12 +1546,12 @@ end - line76 + line77 col5 file0 - line76 + line77 col5 file0 @@ -1500,7 +1563,7 @@ kindevent location - line76 + line77 col5 file0 @@ -1508,12 +1571,12 @@ - line76 + line77 col5 file0 - line76 + line77 col9 file0 @@ -1529,7 +1592,7 @@ kindevent location - line75 + line76 col3 file0 @@ -1537,12 +1600,12 @@ - line75 + line76 col3 file0 - line77 + line78 col5 file0 @@ -1562,12 +1625,12 @@ start - line75 + line76 col3 file0 - line75 + line76 col3 file0 @@ -1575,12 +1638,12 @@ end - line78 + line79 col3 file0 - line78 + line79 col3 file0 @@ -1596,12 +1659,12 @@ start - line78 + line79 col3 file0 - line78 + line79 col3 file0 @@ -1609,12 +1672,12 @@ end - line78 + line79 col6 file0 - line78 + line79 col6 file0 @@ -1626,7 +1689,7 @@ kindevent location - line78 + line79 col6 file0 @@ -1634,12 +1697,12 @@ - line78 + line79 col4 file0 - line78 + line79 col4 file0 @@ -1663,7 +1726,7 @@ issue_hash_function_offset5 location - line78 + line79 col6 file0 @@ -1671,11 +1734,11 @@ 0 - 73 74 75 76 - 78 + 77 + 79 @@ -1690,12 +1753,12 @@ start - line82 + line83 col3 file0 - line82 + line83 col5 file0 @@ -1703,12 +1766,12 @@ end - line83 + line84 col3 file0 - line83 + line84 col3 file0 @@ -1720,7 +1783,7 @@ kindevent location - line83 + line84 col3 file0 @@ -1728,12 +1791,12 @@ - line83 + line84 col3 file0 - line85 + line86 col7 file0 @@ -1749,7 +1812,7 @@ kindevent location - line83 + line84 col3 file0 @@ -1767,12 +1830,12 @@ start - line83 + line84 col3 file0 - line83 + line84 col3 file0 @@ -1780,12 +1843,12 @@ end - line84 + line85 col5 file0 - line84 + line85 col5 file0 @@ -1797,7 +1860,7 @@ kindevent location - line84 + line85 col5 file0 @@ -1805,12 +1868,12 @@ - line84 + line85 col5 file0 - line84 + line85 col10 file0 @@ -1826,7 +1889,7 @@ kindevent location - line83 + line84 col3 file0 @@ -1834,12 +1897,12 @@ - line83 + line84 col3 file0 - line85 + line86 col7 file0 @@ -1859,12 +1922,12 @@ start - line83 + line84 col3 file0 - line83 + line84 col3 file0 @@ -1872,12 +1935,12 @@ end - line86 + line87 col3 file0 - line86 + line87 col3 file0 @@ -1893,12 +1956,12 @@ start - line86 + line87 col3 file0 - line86 + line87 col3 file0 @@ -1906,12 +1969,12 @@ end - line86 + line87 col6 file0 - line86 + line87 col6 file0 @@ -1923,7 +1986,7 @@ kindevent location - line86 + line87 col6 file0 @@ -1931,12 +1994,12 @@ - line86 + line87 col4 file0 - line86 + line87 col4 file0 @@ -1960,7 +2023,7 @@ issue_hash_function_offset5 location - line86 + line87 col6 file0 @@ -1968,12 +2031,12 @@ 0 - 81 82 83 84 85 86 + 87 Index: test/Analysis/Inputs/expected-plists/model-file.cpp.plist =================================================================== --- test/Analysis/Inputs/expected-plists/model-file.cpp.plist +++ test/Analysis/Inputs/expected-plists/model-file.cpp.plist @@ -127,6 +127,69 @@ end + line25 + col7 + file0 + + + line25 + col13 + file0 + + + + + + + kindevent + location + + line25 + col7 + file0 + + ranges + + + + line25 + col7 + file0 + + + line25 + col16 + file0 + + + + depth0 + extended_message + Assuming the condition is false + message + Assuming the condition is false + + + kindcontrol + edges + + + start + + + line25 + col7 + file0 + + + line25 + col13 + file0 + + + end + + line31 col3 file0 Index: test/Analysis/Inputs/expected-plists/plist-macros.cpp.plist =================================================================== --- test/Analysis/Inputs/expected-plists/plist-macros.cpp.plist +++ test/Analysis/Inputs/expected-plists/plist-macros.cpp.plist @@ -309,40 +309,6 @@ - kindcontrol - edges - - - start - - - line28 - col3 - file0 - - - line28 - col22 - file0 - - - end - - - line28 - col24 - file0 - - - line28 - col33 - file0 - - - - - - kindevent location @@ -367,43 +333,9 @@ depth0 extended_message - Assuming 'p' is equal to null + Assuming pointer value is null message - Assuming 'p' is equal to null - - - kindcontrol - edges - - - start - - - line28 - col24 - file0 - - - line28 - col33 - file0 - - - end - - - line28 - col3 - file0 - - - line28 - col22 - file0 - - - - + Assuming pointer value is null kindcontrol @@ -1389,6 +1321,35 @@ depth0 extended_message + Assuming 'p' is null + message + Assuming 'p' is null + + + kindevent + location + + line69 + col3 + file0 + + ranges + + + + line69 + col3 + file0 + + + line69 + col16 + file0 + + + + depth0 + extended_message Assuming 'y' is 0 message Assuming 'y' is 0 @@ -1525,7 +1486,7 @@ kindevent location - line83 + line87 col3 file0 @@ -1533,12 +1494,12 @@ - line83 + line87 col3 file0 - line83 + line87 col12 file0 @@ -1546,15 +1507,15 @@ depth0 extended_message - Passing null pointer value via 1st parameter 'a' + Passing value via 1st parameter 'a' message - Passing null pointer value via 1st parameter 'a' + Passing value via 1st parameter 'a' kindevent location - line83 + line87 col3 file0 @@ -1562,12 +1523,12 @@ - line83 + line87 col3 file0 - line83 + line87 col12 file0 @@ -1589,9 +1550,9 @@ depth1 extended_message - Entered call from 'test1' + Entered call from 'test2' message - Entered call from 'test1' + Entered call from 'test2' kindcontrol @@ -1648,6 +1609,69 @@ end + line77 + col7 + file0 + + + line77 + col7 + file0 + + + + + + + kindevent + location + + line77 + col7 + file0 + + ranges + + + + line77 + col7 + file0 + + + line77 + col7 + file0 + + + + depth1 + extended_message + Assuming 'a' is null + message + Assuming 'a' is null + + + kindcontrol + edges + + + start + + + line77 + col7 + file0 + + + line77 + col7 + file0 + + + end + + line79 col3 file0 @@ -1747,8 +1771,8 @@ 76 77 79 - 82 - 83 + 86 + 87 Index: test/Analysis/Inputs/expected-plists/plist-output.m.plist =================================================================== --- test/Analysis/Inputs/expected-plists/plist-output.m.plist +++ test/Analysis/Inputs/expected-plists/plist-output.m.plist @@ -2497,6 +2497,35 @@ + kindevent + location + + line96 + col8 + file0 + + ranges + + + + line96 + col8 + file0 + + + line96 + col13 + file0 + + + + depth0 + extended_message + Assuming 'i' is not equal to 1 + message + Assuming 'i' is not equal to 1 + + kindcontrol edges @@ -2677,6 +2706,69 @@ end + line96 + col8 + file0 + + + line96 + col8 + file0 + + + + + + + kindevent + location + + line96 + col8 + file0 + + ranges + + + + line96 + col8 + file0 + + + line96 + col13 + file0 + + + + depth0 + extended_message + Assuming 'i' is equal to 1 + message + Assuming 'i' is equal to 1 + + + kindcontrol + edges + + + start + + + line96 + col8 + file0 + + + line96 + col8 + file0 + + + end + + line97 col5 file0 @@ -3448,6 +3540,35 @@ + kindevent + location + + line127 + col9 + file0 + + ranges + + + + line127 + col9 + file0 + + + line127 + col14 + file0 + + + + depth0 + extended_message + Assuming 'i' is not equal to 1 + message + Assuming 'i' is not equal to 1 + + kindcontrol edges @@ -3628,6 +3749,69 @@ end + line127 + col9 + file0 + + + line127 + col9 + file0 + + + + + + + kindevent + location + + line127 + col9 + file0 + + ranges + + + + line127 + col9 + file0 + + + line127 + col14 + file0 + + + + depth0 + extended_message + Assuming 'i' is equal to 1 + message + Assuming 'i' is equal to 1 + + + kindcontrol + edges + + + start + + + line127 + col9 + file0 + + + line127 + col9 + file0 + + + end + + line128 col7 file0 Index: test/Analysis/Inputs/expected-plists/unix-fns.c.plist =================================================================== --- test/Analysis/Inputs/expected-plists/unix-fns.c.plist +++ test/Analysis/Inputs/expected-plists/unix-fns.c.plist @@ -515,6 +515,69 @@ line105 + col12 + file0 + + + line105 + col27 + file0 + + + + + + + kindevent + location + + line105 + col12 + file0 + + ranges + + + + line105 + col12 + file0 + + + line105 + col49 + file0 + + + + depth0 + extended_message + Assuming the condition is true + message + Assuming the condition is true + + + kindcontrol + edges + + + start + + + line105 + col12 + file0 + + + line105 + col27 + file0 + + + end + + + line105 col52 file0 @@ -2244,6 +2307,69 @@ end + line60 + col6 + file0 + + + line60 + col21 + file0 + + + + + + + kindevent + location + + line60 + col6 + file0 + + ranges + + + + line60 + col6 + file0 + + + line60 + col49 + file0 + + + + depth1 + extended_message + Assuming the condition is true + message + Assuming the condition is true + + + kindcontrol + edges + + + start + + + line60 + col6 + file0 + + + line60 + col21 + file0 + + + end + + line61 col3 file0 @@ -2601,6 +2727,69 @@ end + line60 + col6 + file0 + + + line60 + col21 + file0 + + + + + + + kindevent + location + + line60 + col6 + file0 + + ranges + + + + line60 + col6 + file0 + + + line60 + col49 + file0 + + + + depth1 + extended_message + Assuming the condition is true + message + Assuming the condition is true + + + kindcontrol + edges + + + start + + + line60 + col6 + file0 + + + line60 + col21 + file0 + + + end + + line61 col3 file0 Index: test/Analysis/MisusedMovedObject.cpp =================================================================== --- test/Analysis/MisusedMovedObject.cpp +++ test/Analysis/MisusedMovedObject.cpp @@ -184,10 +184,12 @@ } { A a; - if (i == 1) { // expected-note {{Taking false branch}} expected-note {{Taking false branch}} + if (i == 1) { // expected-note {{Assuming 'i' is not equal to 1}} expected-note {{Taking false branch}} + // expected-note@-1 {{Assuming 'i' is not equal to 1}} expected-note@-1 {{Taking false branch}} std::move(a); } - if (i == 2) { // expected-note {{Taking false branch}} expected-note {{Taking false branch}} + if (i == 2) { // expected-note {{Assuming 'i' is not equal to 2}} expected-note {{Taking false branch}} + // expected-note@-1 {{Assuming 'i' is not equal to 2}} expected-note@-1 {{Taking false branch}} a = A(); a.foo(); } @@ -216,7 +218,7 @@ if (i < 10) { // expected-note {{Assuming 'i' is >= 10}} expected-note {{Taking false branch}} a = A(); } - if (i > 5) { // expected-note {{Taking true branch}} + if (i > 5) { // expected-note {{Assuming 'i' is > 5}} expected-note {{Taking true branch}} a.foo(); // expected-warning {{Method call on a 'moved-from' object 'a'}} expected-note {{Method call on a 'moved-from' object 'a'}} } } @@ -470,7 +472,7 @@ // Same thing, but with a ternary operator. { A a, b; - i > 0 ? (void)(b = std::move(a)) : a.bar(); // no-warning // expected-note {{'?' condition is true}} + i > 0 ? (void)(b = std::move(a)) : a.bar(); // no-warning // expected-note {{Assuming 'i' is > 0}} expected-note {{'?' condition is true}} } // A variation on the theme above. { @@ -577,7 +579,8 @@ A a; if (a.foo() > 0 && A(std::move(a)).foo() > 0) { // expected-note {{Assuming the condition is false}} expected-note {{Assuming the condition is false}} // expected-note@-1 {{Left side of '&&' is false}} expected-note@-1 {{Left side of '&&' is false}} - //expected-note@-2 {{Taking false branch}} expected-note@-2 {{Taking false branch}} + // expected-note@-2 {{Assuming the condition is false}} expected-note@-2 {{Assuming the condition is false}} + // expected-note@-3 {{Taking false branch}} expected-note@-3 {{Taking false branch}} A().bar(); } } @@ -587,7 +590,8 @@ A a; if (!(a.foo() > 0 && A(std::move(a)).foo() > 0)) { // expected-note {{Assuming the condition is false}} expected-note {{Assuming the condition is false}} // expected-note@-1 {{Left side of '&&' is false}} expected-note@-1 {{Left side of '&&' is false}} - // expected-note@-2 {{Taking true branch}} expected-note@-2 {{Taking true branch}} + // expected-note@-2 {{Assuming the condition is true}} expected-note@-2 {{Assuming the condition is true}} + // expected-note@-3 {{Taking true branch}} expected-note@-3 {{Taking true branch}} A().bar(); } } @@ -596,15 +600,17 @@ if (A(std::move(a)).foo() > 0 && a.foo() > 0) { // expected-warning {{Method call on a 'moved-from' object 'a'}} expected-note {{Method call on a 'moved-from' object 'a'}} // expected-note@-1 {{'a' became 'moved-from' here}} expected-note@-1 {{Assuming the condition is true}} expected-note@-1 {{Assuming the condition is false}} // expected-note@-2 {{Left side of '&&' is false}} expected-note@-2 {{Left side of '&&' is true}} - // expected-note@-3 {{Taking false branch}} + // expected-note@-3 {{Assuming the condition is false}} + // expected-note@-4 {{Taking false branch}} A().bar(); } } { A a; if (a.foo() > 0 || A(std::move(a)).foo() > 0) { // expected-note {{Assuming the condition is true}} - //expected-note@-1 {{Left side of '||' is true}} - //expected-note@-2 {{Taking true branch}} + // expected-note@-1 {{Left side of '||' is true}} + // expected-note@-2 {{Assuming the condition is true}} + // expected-note@-3 {{Taking true branch}} A().bar(); } } Index: test/Analysis/NewDelete-path-notes.cpp =================================================================== --- test/Analysis/NewDelete-path-notes.cpp +++ test/Analysis/NewDelete-path-notes.cpp @@ -7,7 +7,8 @@ int *p = new int; // expected-note@-1 {{Memory is allocated}} if (p) - // expected-note@-1 {{Taking true branch}} + // expected-note@-1 {{Assuming 'p' is non-null}} + // expected-note@-2 {{Taking true branch}} delete p; // expected-note@-1 {{Memory is released}} Index: test/Analysis/diagnostics/macros.cpp =================================================================== --- test/Analysis/diagnostics/macros.cpp +++ test/Analysis/diagnostics/macros.cpp @@ -30,7 +30,8 @@ // There are no path notes on the comparison to float types. void testDoubleMacro(double d) { - if (d == DBL_MAX) { // expected-note {{Taking true branch}} + if (d == DBL_MAX) { // expected-note {{Assuming 'd' is equal to DBL_MAX}} + // expected-note@-1 {{Taking true branch}} char *p = NULL; // expected-note {{'p' initialized to a null pointer value}} *p = 7; // expected-warning {{Dereference of null pointer (loaded from variable 'p')}} Index: test/Analysis/diagnostics/no-store-func-path-notes.c =================================================================== --- test/Analysis/diagnostics/no-store-func-path-notes.c +++ test/Analysis/diagnostics/no-store-func-path-notes.c @@ -4,7 +4,8 @@ void *memset(void *__s, int __c, size_t __n); int initializer1(int *p, int x) { - if (x) { // expected-note{{Taking false branch}} + if (x) { // expected-note{{Assuming 'x' is 0}} + // expected-note@-1{{Taking false branch}} *p = 1; return 0; } else { @@ -29,7 +30,8 @@ static int global; int initializer2(int **p, int x) { - if (x) { // expected-note{{Taking false branch}} + if (x) { // expected-note{{Assuming 'x' is 0}} + // expected-note@-1{{Taking false branch}} *p = &global; return 0; } else { @@ -46,7 +48,8 @@ } void initializer3(int *p, int param) { - if (param) // expected-note{{Taking false branch}} + if (param) // expected-note{{Assuming 'param' is 0}} + // expected-note@-1{{Taking false branch}} *p = 0; } // expected-note{{Returning without writing to '*p'}} @@ -59,12 +62,14 @@ } void initializer4(int *p, int param) { - if (param) // expected-note{{Taking false branch}} + if (param) // expected-note{{Assuming 'param' is 0}} + // expected-note@-1{{Taking false branch}} *p = 0; } // expected-note{{Returning without writing to '*p'}} void initializer5(int *p, int param) { - if (!param) // expected-note{{Taking false branch}} + if (!param) // expected-note{{Assuming 'param' is not equal to 0}} + // expected-note@-1{{Taking false branch}} *p = 0; } // expected-note{{Returning without writing to '*p'}} @@ -94,7 +99,8 @@ } S; int initializer7(S *s, int param) { - if (param) { // expected-note{{Taking false branch}} + if (param) { // expected-note{{Assuming 'param' is 0}} + // expected-note@-1{{Taking false branch}} s->x = 0; return 0; } Index: test/Analysis/diagnostics/no-store-func-path-notes.cpp =================================================================== --- test/Analysis/diagnostics/no-store-func-path-notes.cpp +++ test/Analysis/diagnostics/no-store-func-path-notes.cpp @@ -1,7 +1,8 @@ // RUN: %clang_analyze_cc1 -x c++ -std=c++14 -analyzer-checker=core -analyzer-output=text -verify %s int initializer1(int &p, int x) { - if (x) { // expected-note{{Taking false branch}} + if (x) { // expected-note{{Assuming 'x' is 0}} + // expected-note@-1{{Taking false branch}} p = 1; return 0; } else { @@ -19,7 +20,8 @@ struct S { int initialize(int *p, int param) { - if (param) { //expected-note{{Taking false branch}} + if (param) { // expected-note{{Assuming 'param' is 0}} + // expected-note@-1{{Taking false branch}} *p = 1; return 1; } Index: test/Analysis/diagnostics/no-store-func-path-notes.m =================================================================== --- test/Analysis/diagnostics/no-store-func-path-notes.m +++ test/Analysis/diagnostics/no-store-func-path-notes.m @@ -10,7 +10,8 @@ @implementation I - (int)initVar:(int *)var param:(int)param { - if (param) { // expected-note{{Taking false branch}} + if (param) { // expected-note{{Assuming 'param' is 0}} + // expected-note@-1{{Taking false branch}} *var = 1; return 0; } @@ -22,14 +23,16 @@ int x; //expected-note{{'x' declared without an initial value}} int out = [i initVar:&x param:0]; //expected-note{{Calling 'initVar:param:'}} //expected-note@-1{{Returning from 'initVar:param:'}} - if (out) // expected-note{{Taking true branch}} + if (out) // expected-note{{Assuming 'out' is not equal to 0}} + // expected-note@-1{{Taking true branch}} return x; //expected-warning{{Undefined or garbage value returned to caller}} //expected-note@-1{{Undefined or garbage value returned to caller}} return 0; } int initializer1(int *p, int x) { - if (x) { // expected-note{{Taking false branch}} + if (x) { // expected-note{{Assuming 'x' is 0}} + // expected-note@-1{{Taking false branch}} *p = 1; return 0; } else { Index: test/Analysis/inline-plist.c =================================================================== --- test/Analysis/inline-plist.c +++ test/Analysis/inline-plist.c @@ -43,7 +43,8 @@ } if (p == 0) { - // expected-note@-1 {{Taking true branch}} + // expected-note@-1 {{Assuming 'p' is equal to null}} + // expected-note@-2 {{Taking true branch}} triggers_bug(p); // expected-note@-1 {{Passing null pointer value via 1st parameter 'p'}} // expected-note@-2 {{Calling 'triggers_bug'}} Index: test/Analysis/null-deref-path-notes.cpp =================================================================== --- test/Analysis/null-deref-path-notes.cpp +++ test/Analysis/null-deref-path-notes.cpp @@ -18,7 +18,7 @@ e(g.d[9], i); // expected-warning{{Array access (via field 'd') results in a null pointer dereference}} // expected-note@-1{{Array access (via field 'd') results in a null pointer dereference}} B h, a; // expected-note{{Value assigned to 'h.d'}} - a.d == __null; // expected-note{{Assuming the condition is true}} + a.d == __null; a.d != h.d; // expected-note{{Assuming pointer value is null}} f(h, b); // expected-note{{Calling 'c::f'}} } Index: test/Analysis/uninit-vals.m =================================================================== --- test/Analysis/uninit-vals.m +++ test/Analysis/uninit-vals.m @@ -164,7 +164,8 @@ // expected-note@-1{{TRUE}} testObj->origin = makePoint(0.0, 0.0); - if (testObj->size > 0) { ; } // expected-note{{Taking false branch}} + if (testObj->size > 0) { ; } // expected-note{{Assuming the condition is false}} + // expected-note@-1{{Taking false branch}} // FIXME: Assigning to 'testObj->origin' kills the default binding for the // whole region, meaning that we've forgotten that testObj->size should also @@ -218,10 +219,14 @@ // expected-note@-1{{TRUE}} testObj->origin = makeIntPoint(1, 2); - if (testObj->size > 0) { ; } // expected-note{{Taking false branch}} - // expected-note@-1{{Taking false branch}} - // expected-note@-2{{Taking false branch}} - // expected-note@-3{{Taking false branch}} + if (testObj->size > 0) { ; } // expected-note{{Assuming the condition is false}} + // expected-note@-1{{Assuming the condition is false}} + // expected-note@-2{{Assuming the condition is false}} + // expected-note@-3{{Assuming the condition is false}} + // expected-note@-4{{Taking false branch}} + // expected-note@-5{{Taking false branch}} + // expected-note@-6{{Taking false branch}} + // expected-note@-7{{Taking false branch}} // FIXME: Assigning to 'testObj->origin' kills the default binding for the // whole region, meaning that we've forgotten that testObj->size should also @@ -316,9 +321,12 @@ // expected-note@-1{{TRUE}} testObj->origin = makeIntPoint2D(1, 2); - if (testObj->size > 0) { ; } // expected-note{{Taking false branch}} - // expected-note@-1{{Taking false branch}} - // expected-note@-2{{Taking false branch}} + if (testObj->size > 0) { ; } // expected-note{{Assuming the condition is false}} + // expected-note@-1{{Assuming the condition is false}} + // expected-note@-2{{Assuming the condition is false}} + // expected-note@-3{{Taking false branch}} + // expected-note@-4{{Taking false branch}} + // expected-note@-5{{Taking false branch}} clang_analyzer_eval(testObj->size == 0); // expected-warning{{TRUE}} // expected-note@-1{{TRUE}} Index: test/Analysis/virtualcall.cpp =================================================================== --- test/Analysis/virtualcall.cpp +++ test/Analysis/virtualcall.cpp @@ -164,8 +164,10 @@ X(int i) { if (i > 0) { #if !PUREONLY - // expected-note-re@-2 {{{{^}}Taking true branch}} - // expected-note-re@-3 {{{{^}}Taking false branch}} + // expected-note-re@-2 {{{{^}}Assuming 'i' is > 0}} + // expected-note-re@-3 {{{{^}}Taking true branch}} + // expected-note-re@-4 {{{{^}}Assuming 'i' is <= 0}} + // expected-note-re@-5 {{{{^}}Taking false branch}} #endif X x(i - 1); #if !PUREONLY