static void parse_type_size(Visitor *v, const char *name, uint64_t *obj,

                            Error **errp)

{

    StringInputVisitor *siv = to_siv(v);

    Error *err = NULL;

    uint64_t val;



    if (siv->string) {

        parse_option_size(name, siv->string, &val, &err);

    } else {

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",

                   "size");

        return;

    }

    if (err) {

        error_propagate(errp, err);

        return;

    }



    *obj = val;

}

static void parse_type_size(Visitor *v, const char *name, uint64_t *obj,

                            Error **errp)

{

    StringInputVisitor *siv = to_siv(v);

    Error *err = NULL;

    uint64_t val;



    if (siv->string) {

        parse_option_size(name, siv->string, &val, &err);

    } else {

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",

                   "size");

        return;

    }

    if (err) {

        error_propagate(errp, err);

        return;

    }



    *obj = val;

}

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",     if (siv->string) {         parse_option_size(name, siv->string, &val, &err);     } else {         error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",                    "size");     if (siv->string) {     if (siv->string) {     } else {         error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",     if (siv->string) {
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, uint64_t *VAR_2,

                            Error **VAR_3)

{

    StringInputVisitor *siv = to_siv(VAR_0);

    Error *err = NULL;

    uint64_t val;



    if (siv->string) {

        parse_option_size(VAR_1, siv->string, &val, &err);

    } else {

        error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : "null",

                   "size");

        return;

    }

    if (err) {

        error_propagate(VAR_3, err);

        return;

    }



    *VAR_2 = val;

}

static void FUNC_0(Visitor *VAR_0, const char *VAR_1, uint64_t *VAR_2,
Error **VAR_3)
{ StringInputVisitor *siv = to_siv(VAR_0); Error *err = NULL; uint64_t val; if (siv->string) { parse_option_size(VAR_1, siv->string, &val, &err); } else { error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : "null",
"size"); return; } if (err) { error_propagate(VAR_3, err); return; } *VAR_2 = val; }