
/* This file was automatically generated by pclu.*/

#include "pclu_err.h"
#include "pclu_sys.h"


extern struct dbg_info* dbg_info_host_address;
#undef MY_TRACE_FLAG
#define MY_TRACE_FLAG host_address_TRACE
int host_address_TRACE;
extern struct OPS *int_ops;
static Vlist1 owns_host_address = {0, 1,{ {0, 2, "_init", &int_ops}
}
};
extern errcode _host_address();

/**** BEGIN PROCEDURE host_address ****/

errcode host_address(host, ret_1, ret_2)
CLUREF host;
CLUREF *ret_1;
CLUREF *ret_2;
    {
    struct {
        struct dbg_info *DBG_INFO;
        int DBG_LINE;
        errcode err;
        errcode ecode2;
        CLUREF l;
        CLUREF r;
        CLUREF host;
        } locals;
    locals.l.num = UNINIT;
    locals.r.num = UNINIT;
    locals.host.num = UNINIT;
    locals.DBG_INFO = dbg_info_host_address;
    locals.host = host;
    enter_proc(3);

  LINE(5);
    {
        {CLUREF T_2_1;
        CLUREF T_2_2;
        locals.err = _host_address(locals.host, &T_2_1, &T_2_2);
        if (locals.err != ERR_ok) goto ex_1;
        locals.l.num = T_2_1.num;
        locals.r.num = T_2_2.num;
        }
        }
    goto end_1;
    ex_1:
        if (locals.err == ERR_not_found) {signal(ERR_not_found);}
        else if (locals.err == ERR_bad_address) {signal(ERR_bad_address);}
        else {
            goto ex_0;}
    end_1:;

  LINE(7);
    {
    {
    ret_1->num = locals.l.num;
    }
    {
    ret_2->num = locals.r.num;
    }
    {signal (ERR_ok);}}
    goto end_0;
    ex_0:
        {
            if (locals.err == ERR_failure) {signal(ERR_failure);}
            elist[0] = _pclu_erstr(locals.err);
            {signal(ERR_failure);}
        }
    end_0: elist[0].str = no_return_values_STRING;
        {signal(ERR_failure);}
    }

/**** END PROCEDURE host_address ****/

extern struct OPS *string_ops;
typedef struct {
    int hdr;
    int count;
    char *name;
    char *fname;
    bool is_iter;
    int is_parmd;
    int addr;
    int nargs;
    Vlist2 *vals;
    siglist2 *sigs;
    Vlist5 *locals;
    Vlist1 *owns;
    Vlist0 *ptowns;
    Vlist0 *popowns;
    Slist1 *type_formals;
    Slist0 *op_formals;
    } dbg_info_host_address_actual;
static Vlist2 vals_host_address = {0, 2, { {0, 2, "", &int_ops},  {0, 2, "", &int_ops}}
};
static sig_desc0 sig_host_address_1 = {0, 3, "bad_address", {0, 0
}};
static sig_desc0 sig_host_address_2 = {0, 3, "not_found", {0, 0
}};
static siglist2 sigs_host_address = {0, 2, (sig_desc*)&sig_host_address_1, (sig_desc*)&sig_host_address_2};
static Vlist5 locals_host_address = {0, 5,{ {0, 2, "err", &int_ops},  {0, 2, "ecode2", &int_ops},  {0, 2, "l", &int_ops},  {0, 2, "r", &int_ops},  {0, 2, "host", &string_ops}}
};
static Vlist0 popowns_host_address = {0, 0};
Slist1 tformals_host_address = {0, 1, "t"};
Slist0 opformals_host_address = {0, 0};
dbg_info_host_address_actual dbg_info_host_address_data = {0, 12, 
    "host_address", "/common/pub/dcurtis-temp/pclu/lib/clu/host_address.clu", 0, 0, (int)host_address, 1, 
    &vals_host_address, &sigs_host_address, &locals_host_address, &owns_host_address, &NO_VALS, &NO_VALS, &tformals_host_address, &NO_PARMS};
    struct dbg_info *dbg_info_host_address = (struct dbg_info*)&dbg_info_host_address_data;
