ISE Tools Final assignment 4, C++ code snippets for CPPCheck Tutorial