| | |
| | | for(i=0;i<vesicle->vlist->n;i++){ |
| | | vertex_taint(vesicle->vlist->vtx[i],1); |
| | | vertex_untaint(vesicle->vlist->vtx[i],1); |
| | | printf("%d taint level %d\n",i,vesicle->vlist->vtx[i]->locked); |
| | | printf("%d taint amount %d\n",i,vesicle->vlist->vtx[i]->locked); |
| | | if(vertex_tainted(vesicle->vlist->vtx[i], 0, 1)) printf("Ooops, Main %d is tainted!\n",i); |
| | | for(j=0;j<vesicle->vlist->vtx[i]->neigh_no;j++){ |
| | | if(vertex_tainted(vesicle->vlist->vtx[i]->neigh[j], 0, 1)){ |
| | |
| | | } |
| | | |
| | | |
| | | printf("At the end you should see no Ooopses and all taint levels should be 0!\n"); |
| | | printf("At the end you should see no Ooopses and all taint amounts should be 0!\n"); |
| | | vesicle_free(vesicle); |
| | | return 0; |
| | | } |