int inet_connect(const char *str, bool block, Error **errp)

{

    QemuOpts *opts;

    int sock = -1;



    opts = qemu_opts_create(&dummy_opts, NULL, 0);

    if (inet_parse(opts, str) == 0) {

        if (block) {

            qemu_opt_set(opts, "block", "on");

        }

        sock = inet_connect_opts(opts, errp);

    } else {

        error_set(errp, QERR_SOCKET_CREATE_FAILED);

    }

    qemu_opts_del(opts);

    return sock;

}

int inet_connect(const char *str, bool block, Error **errp)

{

    QemuOpts *opts;

    int sock = -1;



    opts = qemu_opts_create(&dummy_opts, NULL, 0);

    if (inet_parse(opts, str) == 0) {

        if (block) {

            qemu_opt_set(opts, "block", "on");

        }

        sock = inet_connect_opts(opts, errp);

    } else {

        error_set(errp, QERR_SOCKET_CREATE_FAILED);

    }

    qemu_opts_del(opts);

    return sock;

}

    opts = qemu_opts_create(&dummy_opts, NULL, 0);     opts = qemu_opts_create(&dummy_opts, NULL, 0);     opts = qemu_opts_create(&dummy_opts, NULL, 0);     opts = qemu_opts_create(&dummy_opts, NULL, 0);
int FUNC_0(const char *VAR_0, bool VAR_1, Error **VAR_2)

{

    QemuOpts *opts;

    int VAR_3 = -1;



    opts = qemu_opts_create(&dummy_opts, NULL, 0);

    if (inet_parse(opts, VAR_0) == 0) {

        if (VAR_1) {

            qemu_opt_set(opts, "VAR_1", "on");

        }

        VAR_3 = inet_connect_opts(opts, VAR_2);

    } else {

        error_set(VAR_2, QERR_SOCKET_CREATE_FAILED);

    }

    qemu_opts_del(opts);

    return VAR_3;

}

int FUNC_0(const char *VAR_0, bool VAR_1, Error **VAR_2)
{ QemuOpts *opts; int VAR_3 = -1; opts = qemu_opts_create(&dummy_opts, NULL, 0); if (inet_parse(opts, VAR_0) == 0) { if (VAR_1) { qemu_opt_set(opts, "VAR_1", "on"); } VAR_3 = inet_connect_opts(opts, VAR_2); } else { error_set(VAR_2, QERR_SOCKET_CREATE_FAILED); } qemu_opts_del(opts); return VAR_3; }