I'm using CIL to process C programs using the pthread library. I have to process user-defined and non-pthread functions differently from pthread functions. Can I have a type definition which looks something like:
type PThreadFun = "pthread_create" | "pthread_join" | ...;;
so that I first pattern-match on the function name and then send it to either
processFunction (fn_name: string)
or
processPThreadFun (fn_name: PThreadFun)