int qemu_global_option(const char *str)

{

    char driver[64], property[64];

    QemuOpts *opts;

    int rc, offset;



    rc = sscanf(str, "%63[^.].%63[^=]%n", driver, property, &offset);

    if (rc < 2 || str[offset] != '=') {

        error_report("can't parse: \"%s\"", str);

        return -1;

    }



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

    qemu_opt_set(opts, "driver", driver);

    qemu_opt_set(opts, "property", property);

    qemu_opt_set(opts, "value", str+offset+1);

    return 0;

}

int qemu_global_option(const char *str)

{

    char driver[64], property[64];

    QemuOpts *opts;

    int rc, offset;



    rc = sscanf(str, "%63[^.].%63[^=]%n", driver, property, &offset);

    if (rc < 2 || str[offset] != '=') {

        error_report("can't parse: \"%s\"", str);

        return -1;

    }



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

    qemu_opt_set(opts, "driver", driver);

    qemu_opt_set(opts, "property", property);

    qemu_opt_set(opts, "value", str+offset+1);

    return 0;

}

    opts = qemu_opts_create(&qemu_global_opts, NULL, 0);
int FUNC_0(const char *VAR_0)

{

    char VAR_1[64], VAR_2[64];

    QemuOpts *opts;

    int VAR_3, VAR_4;



    VAR_3 = sscanf(VAR_0, "%63[^.].%63[^=]%n", VAR_1, VAR_2, &VAR_4);

    if (VAR_3 < 2 || VAR_0[VAR_4] != '=') {

        error_report("can't parse: \"%s\"", VAR_0);

        return -1;

    }



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

    qemu_opt_set(opts, "VAR_1", VAR_1);

    qemu_opt_set(opts, "VAR_2", VAR_2);

    qemu_opt_set(opts, "value", VAR_0+VAR_4+1);

    return 0;

}

int FUNC_0(const char *VAR_0)
{ char VAR_1[64], VAR_2[64]; QemuOpts *opts; int VAR_3, VAR_4; VAR_3 = sscanf(VAR_0, "%63[^.].%63[^=]%n", VAR_1, VAR_2, &VAR_4); if (VAR_3 < 2 || VAR_0[VAR_4] != '=') { error_report("can't parse: \"%s\"", VAR_0); return -1; } opts = qemu_opts_create(&qemu_global_opts, NULL, 0); qemu_opt_set(opts, "VAR_1", VAR_1); qemu_opt_set(opts, "VAR_2", VAR_2); qemu_opt_set(opts, "value", VAR_0+VAR_4+1); return 0; }