(HLS Backend) add condition on bool type variable.