Add semantic check to the pipeline and add a all target
Add option in the n2n binary to run semantic check
Get rid of unused matching cases