void tcg_context_init(TCGContext *s)

{

    int op, total_args, n;

    TCGOpDef *def;

    TCGArgConstraint *args_ct;

    int *sorted_args;



    memset(s, 0, sizeof(*s));

    s->nb_globals = 0;

    

    /* Count total number of arguments and allocate the corresponding

       space */

    total_args = 0;

    for(op = 0; op < NB_OPS; op++) {

        def = &tcg_op_defs[op];

        n = def->nb_iargs + def->nb_oargs;

        total_args += n;

    }



    args_ct = g_malloc(sizeof(TCGArgConstraint) * total_args);

    sorted_args = g_malloc(sizeof(int) * total_args);



    for(op = 0; op < NB_OPS; op++) {

        def = &tcg_op_defs[op];

        def->args_ct = args_ct;

        def->sorted_args = sorted_args;

        n = def->nb_iargs + def->nb_oargs;

        sorted_args += n;

        args_ct += n;

    }



    /* Register helpers.  */

#define GEN_HELPER 2

#include "helper.h"



    tcg_target_init(s);

}

void tcg_context_init(TCGContext *s)

{

    int op, total_args, n;

    TCGOpDef *def;

    TCGArgConstraint *args_ct;

    int *sorted_args;



    memset(s, 0, sizeof(*s));

    s->nb_globals = 0;

    

    



    total_args = 0;

    for(op = 0; op < NB_OPS; op++) {

        def = &tcg_op_defs[op];

        n = def->nb_iargs + def->nb_oargs;

        total_args += n;

    }



    args_ct = g_malloc(sizeof(TCGArgConstraint) * total_args);

    sorted_args = g_malloc(sizeof(int) * total_args);



    for(op = 0; op < NB_OPS; op++) {

        def = &tcg_op_defs[op];

        def->args_ct = args_ct;

        def->sorted_args = sorted_args;

        n = def->nb_iargs + def->nb_oargs;

        sorted_args += n;

        args_ct += n;

    }



    

#define GEN_HELPER 2

#include "helper.h"



    tcg_target_init(s);

}

void FUNC_0(TCGContext *VAR_0)

{

    int VAR_1, VAR_2, VAR_3;

    TCGOpDef *def;

    TCGArgConstraint *args_ct;

    int *VAR_4;



    memset(VAR_0, 0, sizeof(*VAR_0));

    VAR_0->nb_globals = 0;

    

    



    VAR_2 = 0;

    for(VAR_1 = 0; VAR_1 < NB_OPS; VAR_1++) {

        def = &tcg_op_defs[VAR_1];

        VAR_3 = def->nb_iargs + def->nb_oargs;

        VAR_2 += VAR_3;

    }



    args_ct = g_malloc(sizeof(TCGArgConstraint) * VAR_2);

    VAR_4 = g_malloc(sizeof(int) * VAR_2);



    for(VAR_1 = 0; VAR_1 < NB_OPS; VAR_1++) {

        def = &tcg_op_defs[VAR_1];

        def->args_ct = args_ct;

        def->VAR_4 = VAR_4;

        VAR_3 = def->nb_iargs + def->nb_oargs;

        VAR_4 += VAR_3;

        args_ct += VAR_3;

    }



    

#define GEN_HELPER 2

#include "helper.h"



    tcg_target_init(VAR_0);

}

void FUNC_0(TCGContext *VAR_0)
{ int VAR_1, VAR_2, VAR_3; TCGOpDef *def; TCGArgConstraint *args_ct; int *VAR_4; memset(VAR_0, 0, sizeof(*VAR_0)); VAR_0->nb_globals = 0; VAR_2 = 0; for(VAR_1 = 0; VAR_1 < NB_OPS; VAR_1++) { def = &tcg_op_defs[VAR_1]; VAR_3 = def->nb_iargs + def->nb_oargs; VAR_2 += VAR_3; } args_ct = g_malloc(sizeof(TCGArgConstraint) * VAR_2); VAR_4 = g_malloc(sizeof(int) * VAR_2); for(VAR_1 = 0; VAR_1 < NB_OPS; VAR_1++) { def = &tcg_op_defs[VAR_1]; def->args_ct = args_ct; def->VAR_4 = VAR_4; VAR_3 = def->nb_iargs + def->nb_oargs; VAR_4 += VAR_3; args_ct += VAR_3; } #define GEN_HELPER 2
#include "helper.h"
tcg_target_init(VAR_0); }