[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[csmith-project/csmith] 71e18b: Bug #57: Removal of unnecessary null pointer checks
Branch: refs/heads/master
Home: https://github.com/csmith-project/csmith
Commit: 71e18be171d625bd0550e2b3a9fb6b67b33026f5
https://github.com/csmith-project/csmith/commit/71e18be171d625bd0550e2b3a9fb6b67b33026f5
Author: Markus Elfring <elfring@users.sourceforge.net>
Date: 2018-12-02 (Sun, 02 Dec 2018)
Changed paths:
M src/DepthSpec.h
M src/Enumerator.h
M src/Function.cpp
M src/Probabilities.cpp
M src/RandomNumber.cpp
M src/SimpleDeltaSequence.cpp
M src/Variable.cpp
Log Message:
-----------
Bug #57: Removal of unnecessary null pointer checks
The C++ programming language tolerates the passing of null pointers
for delete expressions.
See also:
https://isocpp.org/wiki/faq/freestore-mgmt#delete-handles-null
* Thus omit extra checks at a few places.
* Remove also the resetting of two variables.
* The source code could be simplified a bit for three iterators.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Commit: 52e36d8e6c8ee78410151d7312aa81e674ae91fa
https://github.com/csmith-project/csmith/commit/52e36d8e6c8ee78410151d7312aa81e674ae91fa
Author: jxyang <nitsnow@gmail.com>
Date: 2019-04-20 (Sat, 20 Apr 2019)
Changed paths:
M src/DepthSpec.h
M src/Enumerator.h
M src/Function.cpp
M src/Probabilities.cpp
M src/RandomNumber.cpp
M src/Variable.cpp
Log Message:
-----------
Merge branch 'Remove_unnecessary_null_pointer_checks' of https://github.com/elfring/csmith into elfring-Remove_unnecessary_null_pointer_checks
Commit: c7e6a904f7dda4e0554ee5236333ed475290ab47
https://github.com/csmith-project/csmith/commit/c7e6a904f7dda4e0554ee5236333ed475290ab47
Author: jxyang <nitsnow@gmail.com>
Date: 2019-04-20 (Sat, 20 Apr 2019)
Changed paths:
M src/DepthSpec.h
M src/Enumerator.h
M src/Function.cpp
M src/Probabilities.cpp
M src/RandomNumber.cpp
M src/Variable.cpp
Log Message:
-----------
Merge branch 'elfring-Remove_unnecessary_null_pointer_checks'
Compare: https://github.com/csmith-project/csmith/compare/4f540a91e4e4...c7e6a904f7dd