Add analyze.c and implement some API