Instrumenting assertions for C programs based on annotations