emit IR for case statement
more comprehensive test