add terminator is a switch inst

Signed-off-by: xiehuc <xiehuc@gmail.com>