I would like to write a program that does automatic instrumentation of an input C/C++ code based on some input properties. I am seeking a good place to start learning how to do so (mainly related on how to do instrumentation, where to do so, etc.). I have been searching online for a while without any good luck. So I appreciate if someone can help me by pointing me to a good place to start from.
Thank you