* src/vm/jit/jit.h (basicblock): Renamed debug_nr to nr.
authortwisti <none@none>
Mon, 7 Aug 2006 15:30:19 +0000 (15:30 +0000)
committertwisti <none@none>
Mon, 7 Aug 2006 15:30:19 +0000 (15:30 +0000)
(BASICBLOCK_INIT): Likewise.

* src/vm/jit/reorder.c (reorder_place_next_unplaced_block): Likewise.
(reorder): Likewise.

* src/vm/jit/show.c (new_show_method): Likewise.
(show_method): Likewise.
(new_show_basicblock): Likewise.
(show_basicblock): Likewise.
(SHOW_TARGET): Likewise.
(show_icmd): Likewise.

* src/vm/jit/ifconv/ifconv.c (check): Likewise.

* src/vm/jit/loop/analyze.c (insert_exception): Likewise.
(copy_handler): Likewise.
(create_static_checks): Likewise.

* src/vm/jit/verify/typecheck.c (verify_basic_block): Likewise.
(typecheck_reset_flags): Likewise.
(typecheck): Likewise.

* src/vm/jit/verify/typeinfo.c (typeinfo_print): Likewise.
(typeinfo_print_short): Likewise.
(typeinfo_print_stacktype): Likewise.

src/vm/jit/ifconv/ifconv.c
src/vm/jit/jit.h
src/vm/jit/loop/analyze.c
src/vm/jit/reorder.c
src/vm/jit/show.c
src/vm/jit/verify/typecheck.c
src/vm/jit/verify/typeinfo.c

index e939868bc10f5d17ef303e4d69f3ce680e8d0582..ba6844fe99a1f7c9884be5873f20f3bc9c07d3d9 100644 (file)
@@ -968,7 +968,7 @@ static void check(jitdata *jd, basicblock *bptr)
 
 #if !defined(NDEBUG)
        if (pattern != 0) {
-               printf("PATTERN %02d: (BB: %3d) ", pattern, m->basicblockcount - bptr->debug_nr);
+               printf("PATTERN %02d: (BB: %3d) ", pattern, m->basicblockcount - bptr->nr);
                method_println(m);
 
                /*                                                              if (pattern == 27) { */
@@ -984,7 +984,7 @@ static void check(jitdata *jd, basicblock *bptr)
 
                        (bptr[1].iinstr[1].opc == ICMD_GOTO))
                        {
-                               printf("CHECK 1   : (BB: %3d) ", m->basicblockcount - bptr->debug_nr);
+                               printf("CHECK 1   : (BB: %3d) ", m->basicblockcount - bptr->nr);
                                method_println(m);
                                show_basicblock(jd, &bptr[1]);
                                show_basicblock(jd, &bptr[2]);
@@ -996,7 +996,7 @@ static void check(jitdata *jd, basicblock *bptr)
 
                        (bptr[1].iinstr[2].opc == ICMD_GOTO))
                        {
-                               printf("CHECK 2   : (BB: %3d) ", m->basicblockcount - bptr->debug_nr);
+                               printf("CHECK 2   : (BB: %3d) ", m->basicblockcount - bptr->nr);
                                method_println(m);
                                show_basicblock(jd, &bptr[1]);
                                show_basicblock(jd, &bptr[2]);
@@ -1008,7 +1008,7 @@ static void check(jitdata *jd, basicblock *bptr)
 
                        (bptr[1].iinstr[3].opc == ICMD_GOTO))
                        {
-                               printf("CHECK 3   : (BB: %3d) ", m->basicblockcount - bptr->debug_nr);
+                               printf("CHECK 3   : (BB: %3d) ", m->basicblockcount - bptr->nr);
                                method_println(m);
                                show_basicblock(jd, &bptr[1]);
                                show_basicblock(jd, &bptr[2]);
@@ -1020,7 +1020,7 @@ static void check(jitdata *jd, basicblock *bptr)
 
                        (bptr[1].iinstr[2].opc == ICMD_GOTO))
                        {
-                               printf("CHECK 4   : (BB: %3d) ", m->basicblockcount - bptr->debug_nr);
+                               printf("CHECK 4   : (BB: %3d) ", m->basicblockcount - bptr->nr);
                                method_println(m);
                                show_basicblock(jd, &bptr[1]);
                                show_basicblock(jd, &bptr[2]);
index 9449b95fa710ba6c28549760de18b07a5c451e15..86dee038ad72acab1fff21a41913ccd27a605f4b 100644 (file)
@@ -30,7 +30,7 @@
    Changes: Christian Thalinger
                        Edwin Steiner
 
-   $Id: jit.h 5210 2006-08-07 11:10:01Z twisti $
+   $Id: jit.h 5214 2006-08-07 15:30:19Z twisti $
 
 */
 
@@ -477,7 +477,7 @@ struct insinfo_inline {
 /* the others by using bitfields.                                             */
 
 struct basicblock {
-       s4            debug_nr;     /* basic block number                         */
+       s4            nr;           /* basic block number                         */
        s4            flags;        /* used during stack analysis, init with -1   */
        s4            bitflags;     /* OR of BBFLAG_... constants, init with 0    */
        s4            type;         /* basic block type (std, xhandler, subroutine*/
@@ -509,13 +509,13 @@ struct basicblock {
 /* Macro for initializing newly allocated basic block's. It does not
    need to zero fields, as we zero out the whole basic block array. */
 
-#define BASICBLOCK_INIT(bptr,m)                            \
-       do {                                                   \
-               bptr->mpc        = -1;                             \
-               bptr->flags      = -1;                             \
-               bptr->type       = BBTYPE_STD;                     \
-               bptr->method     = (m);                            \
-               bptr->debug_nr   = (m)->c_debug_nr++;              \
+#define BASICBLOCK_INIT(bptr,m)                        \
+       do {                                               \
+               bptr->mpc    = -1;                             \
+               bptr->flags  = -1;                             \
+               bptr->type   = BBTYPE_STD;                     \
+               bptr->method = (m);                            \
+               bptr->nr     = (m)->c_debug_nr++;              \
        } while (0)
                        
 
index 77432136a45ad88a4f61c6f9212160324919b7c0..25e0b5f1f85f70361a70daee56b77ba3417d25d0 100644 (file)
@@ -34,7 +34,7 @@
    bounds are never violated. The function to call is
    optimize_loops().
 
-   $Id: analyze.c 4699 2006-03-28 14:52:32Z twisti $
+   $Id: analyze.c 5214 2006-08-07 15:30:19Z twisti $
 
 */
 
@@ -329,7 +329,7 @@ void insert_exception(methodinfo *m, struct LoopContainer *lc, exceptiontable *e
        struct LoopElement *le;
 
 #ifdef LOOP_DEBUG
-       /* printf("insert_exception called with %d-%d and loop %d\n", ex->start->debug_nr, ex->end->debug_nr, lc->loop_head); */
+       /* printf("insert_exception called with %d-%d and loop %d\n", ex->start->nr, ex->end->nr, lc->loop_head); */
 #endif
        
        /* if child node is reached immediately insert exception into the tree    */
@@ -2322,7 +2322,7 @@ void copy_handler(methodinfo *m, loopdata *ld, struct LoopContainer *lc, basicbl
        /* copy node                                                              */
        new = DMNEW(basicblock, 1);    
        memcpy(new, bptr, sizeof(basicblock));
-       new->debug_nr = m->c_debug_nr++;
+       new->nr = m->c_debug_nr++;
 
        ld->c_last_block_copied = new;
 
@@ -2610,7 +2610,7 @@ void create_static_checks(methodinfo *m, codegendata *cd, loopdata *ld, struct L
        {
                bptr = DMNEW(basicblock, 1);    
                memcpy(bptr, le->block, sizeof(basicblock));
-               bptr->debug_nr = m->c_debug_nr++;
+               bptr->nr = m->c_debug_nr++;
 
                /* determine beginning of copied loop to extend exception handler, that */
                /* protect this loop                                                    */
@@ -2644,7 +2644,7 @@ void create_static_checks(methodinfo *m, codegendata *cd, loopdata *ld, struct L
 
        /* copy current loop header to new basic block                              */
        memcpy(bptr, loop_head, sizeof(basicblock));
-    bptr->debug_nr = m->c_debug_nr++;
+    bptr->nr = m->c_debug_nr++;
 
        /* insert the new basic block and move header before first loop node        */
        le = lc->nodes;
index cfd0b4a35355aaa9c93a8236551f0d37c4ef5f8b..1b2958b3c4fd7439c47e9ae9f1749a1d262d2248 100644 (file)
@@ -61,7 +61,7 @@ static basicblock *reorder_place_next_unplaced_block(methodinfo *m, u1 *blocks,
 
                        /* place the block */
 
-                       blocks[tbptr->debug_nr] = true;
+                       blocks[tbptr->nr] = true;
 
                        /* change the basic block order */
 
@@ -136,7 +136,7 @@ bool reorder(jitdata *jd)
 
                iptr = bptr->iinstr + bptr->icount - 1;
 
-               printf("L%03d, ", bptr->debug_nr);
+               printf("L%03d, ", bptr->nr);
 
                switch (bptr->type) {
                case BBTYPE_STD:
@@ -152,7 +152,7 @@ bool reorder(jitdata *jd)
 
                printf(", predecessors: %d, successors: %d, frequency: %d -> ",
                           bptr->predecessorcount, bptr->successorcount,
-                          pcode->bbfrequency[bptr->debug_nr]);
+                          pcode->bbfrequency[bptr->nr]);
 
                switch (iptr->opc) {
                case ICMD_RETURN:
@@ -214,14 +214,14 @@ bool reorder(jitdata *jd)
                        tbptr  = (basicblock *) iptr->target;
                        ntbptr = bptr->next;
 
-                       printf("cond. L%03d\n", tbptr->debug_nr);
+                       printf("cond. L%03d\n", tbptr->nr);
 
-                       tfreq  = pcode->bbfrequency[tbptr->debug_nr];
-                       ntfreq = pcode->bbfrequency[ntbptr->debug_nr];
+                       tfreq  = pcode->bbfrequency[tbptr->nr];
+                       ntfreq = pcode->bbfrequency[ntbptr->nr];
 
                        /* check which branch is more frequently */
 
-                       if ((blocks[tbptr->debug_nr] == false) && (tfreq > ntfreq)) {
+                       if ((blocks[tbptr->nr] == false) && (tfreq > ntfreq)) {
                                /* If we place the taken block, we need to change the
                                   conditional instruction (opcode and target). */
 
@@ -234,17 +234,17 @@ bool reorder(jitdata *jd)
 
                                /* place taken block */
 
-                               blocks[tbptr->debug_nr] = true;
+                               blocks[tbptr->nr] = true;
                                placed++;
 
                                /* set last placed block */
 
                                bptr = tbptr;
                        }
-                       else if (blocks[ntbptr->debug_nr] == false) {
+                       else if (blocks[ntbptr->nr] == false) {
                                /* place not-taken block */
 
-                               blocks[ntbptr->debug_nr] = true;
+                               blocks[ntbptr->nr] = true;
                                placed++;
 
                                /* set last placed block */
@@ -270,12 +270,12 @@ bool reorder(jitdata *jd)
                case ICMD_GOTO:
                        tbptr = (basicblock *) iptr->target;
 
-                       printf("L%03d\n", tbptr->debug_nr);
+                       printf("L%03d\n", tbptr->nr);
 
                        /* If next block is already placed, search for another
                           one. */
 
-                       if (blocks[tbptr->debug_nr] == true) {
+                       if (blocks[tbptr->nr] == true) {
                                tbptr = reorder_place_next_unplaced_block(m, blocks, bptr);
 
                                placed++;
@@ -290,15 +290,15 @@ bool reorder(jitdata *jd)
                                   And if the other predecessors have a higher
                                   frequency, don't place it. */
 
-                               freq = pcode->bbfrequency[bptr->debug_nr];
+                               freq = pcode->bbfrequency[bptr->nr];
 
                                for (i = 0; i < tbptr->predecessorcount; i++) {
                                        pbptr = tbptr->predecessors[i];
 
                                        /* skip the current basic block */
 
-                                       if (pbptr->debug_nr != bptr->debug_nr) {
-                                               pfreq = pcode->bbfrequency[pbptr->debug_nr];
+                                       if (pbptr->nr != bptr->nr) {
+                                               pfreq = pcode->bbfrequency[pbptr->nr];
 
                                                /* Other predecessor has a higher frequency?
                                                   Search for another block to place. */
@@ -322,7 +322,7 @@ bool reorder(jitdata *jd)
                        goto_continue:
                                /* place block */
 
-                               blocks[tbptr->debug_nr] = true;
+                               blocks[tbptr->nr] = true;
                                placed++;
                        }
 
@@ -342,7 +342,7 @@ bool reorder(jitdata *jd)
                        /* If next block is already placed, search for another
                           one. */
 
-                       if (blocks[tbptr->debug_nr] == true) {
+                       if (blocks[tbptr->nr] == true) {
                                tbptr = reorder_place_next_unplaced_block(m, blocks, bptr);
 
                                placed++;
@@ -355,7 +355,7 @@ bool reorder(jitdata *jd)
                        else {
                                /* place block */
 
-                               blocks[tbptr->debug_nr] = true;
+                               blocks[tbptr->nr] = true;
                                placed++;
                        }
 
@@ -373,7 +373,7 @@ bool reorder(jitdata *jd)
        puts("");
 
        for (bptr = m->basicblocks; bptr != NULL; bptr = bptr->next) {
-               printf("L%03d\n", bptr->debug_nr);
+               printf("L%03d\n", bptr->nr);
        }
 
        /* everything's ok */
index 8e028a2861070e24e36807ff4390d298dd59fa25..5a4715afcf21e67434408d98d10edd8956ef647b 100644 (file)
@@ -362,9 +362,9 @@ void new_show_method(jitdata *jd, int stage)
        if (stage >= SHOW_PARSE) {
                printf("Exceptions (Number: %d):\n", cd->exceptiontablelength);
                for (ex = cd->exceptiontable; ex != NULL; ex = ex->down) {
-                       printf("    L%03d ... ", ex->start->debug_nr );
-                       printf("L%03d  = ", ex->end->debug_nr);
-                       printf("L%03d", ex->handler->debug_nr);
+                       printf("    L%03d ... ", ex->start->nr );
+                       printf("L%03d  = ", ex->end->nr);
+                       printf("L%03d", ex->handler->nr);
                        printf("  (catchtype: ");
                        if (ex->catchtype.any)
                                if (IS_CLASSREF(ex->catchtype))
@@ -601,9 +601,9 @@ void show_method(jitdata *jd)
 
        printf("Exceptions (Number: %d):\n", cd->exceptiontablelength);
        for (ex = cd->exceptiontable; ex != NULL; ex = ex->down) {
-               printf("    L%03d ... ", ex->start->debug_nr );
-               printf("L%03d  = ", ex->end->debug_nr);
-               printf("L%03d", ex->handler->debug_nr);
+               printf("    L%03d ... ", ex->start->nr );
+               printf("L%03d  = ", ex->end->nr);
+               printf("L%03d", ex->handler->nr);
                printf("  (catchtype: ");
                if (ex->catchtype.any)
                        if (IS_CLASSREF(ex->catchtype))
@@ -816,8 +816,8 @@ void new_show_basicblock(jitdata *jd, basicblock *bptr, int stage)
 
                printf("======== %sL%03d ======== (flags: %d, bitflags: %01x, next: %d, type: ",
                                (bptr->bitflags & BBFLAG_REPLACEMENT) ? "<REPLACE> " : "",
-                          bptr->debug_nr, bptr->flags, bptr->bitflags, 
-                          (bptr->next) ? (bptr->next->debug_nr) : -1);
+                          bptr->nr, bptr->flags, bptr->bitflags, 
+                          (bptr->next) ? (bptr->next->nr) : -1);
 
                switch (bptr->type) {
                case BBTYPE_STD:
@@ -895,8 +895,8 @@ void show_basicblock(jitdata *jd, basicblock *bptr)
 
                printf("] %sL%03d(flags: %d, bitflags: %01x, next: %d, type: ",
                                (bptr->bitflags & BBFLAG_REPLACEMENT) ? "<REPLACE> " : "",
-                          bptr->debug_nr, bptr->flags, bptr->bitflags, 
-                          (bptr->next) ? (bptr->next->debug_nr) : -1);
+                          bptr->nr, bptr->flags, bptr->bitflags, 
+                          (bptr->next) ? (bptr->next->nr) : -1);
 
                switch (bptr->type) {
                case BBTYPE_STD:
@@ -964,12 +964,12 @@ void show_basicblock(jitdata *jd, basicblock *bptr)
 
 #define SHOW_TARGET(target)                                          \
         if (stage >= SHOW_STACK) {                                   \
-            printf("--> L%03d ", (target).block->debug_nr);          \
+            printf("--> L%03d ", (target).block->nr);                \
         }                                                            \
         else if (stage >= SHOW_PARSE) {                              \
             printf("--> insindex %d (L%03d) ", (target).insindex,    \
                 jd->new_basicblocks[jd->new_basicblockindex[         \
-                (target).insindex]].debug_nr);                       \
+                (target).insindex]].nr);                             \
         }                                                            \
         else {                                                       \
             printf("--> insindex %d ", (target).insindex);           \
@@ -2101,7 +2101,7 @@ void show_icmd(instruction *iptr, bool deadcode)
                        if (deadcode || !iptr->target)
                                printf(" op1=%d", iptr->op1);
                        else
-                               printf(" L%03d (%p)", ((basicblock *) iptr->target)->debug_nr, iptr->target);
+                               printf(" L%03d (%p)", ((basicblock *) iptr->target)->nr, iptr->target);
 /*             } */
                break;
 
@@ -2121,7 +2121,7 @@ void show_icmd(instruction *iptr, bool deadcode)
                        if (deadcode || !iptr->target)
                                printf(" op1=%d", iptr->op1);
                        else
-                               printf(" L%03d", ((basicblock *) iptr->target)->debug_nr);
+                               printf(" L%03d", ((basicblock *) iptr->target)->nr);
 /*             } */
                break;
 
@@ -2131,7 +2131,7 @@ void show_icmd(instruction *iptr, bool deadcode)
                if (deadcode || !iptr->target)
                        printf(" op1=%d", iptr->op1);
                else
-                       printf(" L%03d (%p)", ((basicblock *) iptr->target)->debug_nr,iptr->target);
+                       printf(" L%03d (%p)", ((basicblock *) iptr->target)->nr,iptr->target);
                break;
 
        case ICMD_IFNULL:
@@ -2182,7 +2182,7 @@ void show_icmd(instruction *iptr, bool deadcode)
                        if (deadcode || !iptr->target)
                                printf(" op1=%d", iptr->op1);
                        else
-                               printf(" L%03d (%p)", ((basicblock *) iptr->target)->debug_nr,iptr->target);
+                               printf(" L%03d (%p)", ((basicblock *) iptr->target)->nr,iptr->target);
 /*             } */
                break;
 
@@ -2194,7 +2194,7 @@ void show_icmd(instruction *iptr, bool deadcode)
                }
                else {
                        tptr = (void **) iptr->target;
-                       printf(" L%03d;", ((basicblock *) *tptr)->debug_nr); 
+                       printf(" L%03d;", ((basicblock *) *tptr)->nr); 
                        tptr++;
                }
 
@@ -2205,7 +2205,7 @@ void show_icmd(instruction *iptr, bool deadcode)
                        if (deadcode || !*tptr)
                                printf(" %d", *s4ptr++);
                        else {
-                               printf(" L%03d", ((basicblock *) *tptr)->debug_nr);
+                               printf(" L%03d", ((basicblock *) *tptr)->nr);
                                tptr++;
                        }
                        j--;
@@ -2220,7 +2220,7 @@ void show_icmd(instruction *iptr, bool deadcode)
                }
                else {
                        tptr = (void **) iptr->target;
-                       printf(" L%03d;", ((basicblock *) *tptr)->debug_nr);
+                       printf(" L%03d;", ((basicblock *) *tptr)->nr);
                        tptr++;
                }
                s4ptr++;                                         /* default */
@@ -2232,7 +2232,7 @@ void show_icmd(instruction *iptr, bool deadcode)
                                printf(" %d",*s4ptr++);
                        }
                        else {
-                               printf(" L%03d", ((basicblock *) *tptr)->debug_nr);
+                               printf(" L%03d", ((basicblock *) *tptr)->nr);
                                tptr++;
                        }
                }
index 7269d749a40729604e8f13080080bf6309ca3e66..23b31fa8528b4851273d4428209b1b1bf6b3dad3 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: typecheck.c 5173 2006-07-25 15:57:11Z twisti $
+   $Id: typecheck.c 5214 2006-08-07 15:30:19Z twisti $
 
 */
 
@@ -1654,7 +1654,7 @@ verify_basic_block(verifier_state *state)
                                /* of eclipse 3.0.2                                                  */
                                if (TYPEINFO_NEWOBJECT_INSTRUCTION(state->localset->td[i].info) != NULL) {
                                        /*show_icmd_method(state->m, state->cd, state->rd);*/
-                                       printf("Uninitialized variable: %d, block: %d\n", i, state->bptr->debug_nr);
+                                       printf("Uninitialized variable: %d, block: %d\n", i, state->bptr->nr);
                                        TYPECHECK_VERIFYERROR_bool("Uninitialized object in local variable inside try block");
                                }
                        }
@@ -2171,7 +2171,7 @@ switch_instruction_tail:
 
                                while (--i >= 0) {
                                        tbptr = *tptr++;
-                                       LOG2("target %d is block %04d",(tptr-(basicblock **)state->iptr->target)-1,tbptr->debug_nr);
+                                       LOG2("target %d is block %04d",(tptr-(basicblock **)state->iptr->target)-1,tbptr->nr);
                                        if (!typestate_reach(state,tbptr,dst,state->localset))
                                                return false;
                                }
@@ -2525,7 +2525,7 @@ return_tail:
                        tbptr++;
 #ifdef TYPECHECK_DEBUG
                        /* this must be checked in parse.c */
-                       if ((tbptr->debug_nr) >= state->m->basicblockcount)
+                       if ((tbptr->nr) >= state->m->basicblockcount)
                                TYPECHECK_VERIFYERROR_bool("Control flow falls off the last block");
 #endif
                }
@@ -2687,7 +2687,7 @@ typecheck_reset_flags(verifier_state *state)
                                                                                                         * that's ok. */
                {
                        LOG2("block L%03d has invalid flags after typecheck: %d",
-                                state->m->basicblocks[i].debug_nr,state->m->basicblocks[i].flags);
+                                state->m->basicblocks[i].nr,state->m->basicblocks[i].flags);
                        TYPECHECK_ASSERT(false);
                }
        }
@@ -2814,7 +2814,7 @@ bool typecheck(jitdata *jd)
         state.bptr = state.m->basicblocks;
 
         while (--i >= 0) {
-            LOGSTR1("---- BLOCK %04d, ",state.bptr->debug_nr);
+            LOGSTR1("---- BLOCK %04d, ",state.bptr->nr);
             LOGSTR1("blockflags: %d\n",state.bptr->flags);
             LOGFLUSH;
             
index cf59fa5425d0e0e1bd3a5a7ae869f5a464967efe..9a0a5e4ec1dd0b185813d252e9793d7c647c9dce 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Edwin Steiner
 
-   $Id: typeinfo.c 5171 2006-07-25 13:52:38Z twisti $
+   $Id: typeinfo.c 5214 2006-08-07 15:30:19Z twisti $
 
 */
 
@@ -2642,7 +2642,7 @@ typeinfo_print(FILE *file,typeinfo *info,int indent)
     if (TYPEINFO_IS_PRIMITIVE(*info)) {
                bptr = (basicblock*) TYPEINFO_RETURNADDRESS(*info);
                if (bptr)
-                       fprintf(file,"%sreturnAddress (L%03d)\n",ind,bptr->debug_nr);
+                       fprintf(file,"%sreturnAddress (L%03d)\n",ind,bptr->nr);
                else
                        fprintf(file,"%sprimitive\n",ind);
         return;
@@ -2720,7 +2720,7 @@ typeinfo_print_short(FILE *file,typeinfo *info)
     if (TYPEINFO_IS_PRIMITIVE(*info)) {
                bptr = (basicblock*) TYPEINFO_RETURNADDRESS(*info);
                if (bptr)
-                       fprintf(file,"ret(L%03d)",bptr->debug_nr);
+                       fprintf(file,"ret(L%03d)",bptr->nr);
                else
                        fprintf(file,"primitive");
         return;
@@ -2782,10 +2782,10 @@ typeinfo_print_stacktype(FILE *file,int type,typeinfo *info)
                typeinfo_retaddr_set *set = (typeinfo_retaddr_set*)
                        TYPEINFO_RETURNADDRESS(*info);
                if (set) {
-                       fprintf(file,"ret(L%03d",((basicblock*)(set->addr))->debug_nr);
+                       fprintf(file,"ret(L%03d",((basicblock*)(set->addr))->nr);
                        set = set->alt;
                        while (set) {
-                               fprintf(file,"|L%03d",((basicblock*)(set->addr))->debug_nr);
+                               fprintf(file,"|L%03d",((basicblock*)(set->addr))->nr);
                                set = set->alt;
                        }
                }