fix common inc and src, fix plcmp_sem_calc