@contextmanager
def if_zero(builder, value, likely=False):
 with builder.if_then(is_scalar_zero(builder, value), likely=likely):
  (yield)

@ contextmanager def if_zero ( builder , value , likely = False ) : with builder . if_then ( is_scalar_zero ( builder , value ) , likely = likely ) : ( yield )
execute the given block if the scalar value is zero .