public int Ensure(String variable){
	            int i=0;
	            int exist = 0;
	            int r_index = 0;
	            for(i=0;i<4;i++){
	                  register_type r = Allregisters.get(i);
	                  if(r.variable.equals(variable)){
	                        exist = 1;
	                        r_index = i;
	                        //System.out.println(";already there");
	                        break;
	                  }
	            }

	            if(exist == 1){
	                  Usecount(r_index);
	                  return r_index;
	            }

	            r_index = allocate(variable);
	            Usecount(r_index);
	            Genload(variable,r_index);
	            return r_index;
	      }