Diff for /rpl/src/instructions_c4.c between versions 1.21 and 1.22

version 1.21, 2011/04/21 16:00:56 version 1.22, 2011/06/09 14:48:36
Line 42  instruction_cov(struct_processus *s_etat Line 42  instruction_cov(struct_processus *s_etat
     integer8                            nombre_colonnes;      integer8                            nombre_colonnes;
   
     logical1                            erreur;      logical1                            erreur;
     logical1                            presence_variable;  
   
     long                                i;  
   
     struct_objet                        *s_objet_statistique;      struct_objet                        *s_objet_statistique;
     struct_objet                        *s_objet_resultat;      struct_objet                        *s_objet_resultat;
Line 86  instruction_cov(struct_processus *s_etat Line 83  instruction_cov(struct_processus *s_etat
      * Recherche d'une variable globale référencée par SIGMA       * Recherche d'une variable globale référencée par SIGMA
      */       */
   
     if (recherche_variable(s_etat_processus, ds_sdat) == d_faux)      if (recherche_variable_globale(s_etat_processus, ds_sdat) == d_faux)
     {      {
         /*          /*
          * Aucune variable SIGMA           * Aucune variable SIGMA
Line 98  instruction_cov(struct_processus *s_etat Line 95  instruction_cov(struct_processus *s_etat
     }      }
     else      else
     {      {
         /*          if ((*(*s_etat_processus).pointeur_variable_courante).objet
          * Il existe une variable locale SIGMA. Reste à vérifier l'existence                  == NULL)
          * d'une variable SIGMA globale...  
          */  
   
         i = (*s_etat_processus).position_variable_courante;  
         presence_variable = d_faux;  
   
         while(i >= 0)  
         {          {
             if ((strcmp((*s_etat_processus).s_liste_variables[i].nom,              (*s_etat_processus).erreur_execution = d_ex_variable_partagee;
                     ds_sdat) == 0) && ((*s_etat_processus)              return;
                     .s_liste_variables[i].niveau == 1))  
             {  
                 presence_variable = d_vrai;  
                 break;  
             }  
   
             i--;  
         }          }
   
         if (presence_variable == d_faux)          if (((*(*(*s_etat_processus).pointeur_variable_courante).objet)
                   .type != MIN) && ((*(*(*s_etat_processus)
                   .pointeur_variable_courante).objet).type != MRL))
         {          {
             (*s_etat_processus).erreur_execution = d_ex_absence_observations;              (*s_etat_processus).erreur_execution =
                       d_ex_matrice_statistique_invalide;
             return;              return;
         }          }
         else  
         {  
             (*s_etat_processus).position_variable_courante = i;  
   
             if ((*s_etat_processus).s_liste_variables          nombre_colonnes = (*((struct_matrice *) (*(*(*s_etat_processus)
                     [(*s_etat_processus).position_variable_courante].objet                  .pointeur_variable_courante).objet).objet)).nombre_colonnes;
                     == NULL)  
             {  
                 (*s_etat_processus).erreur_execution = d_ex_variable_partagee;  
                 return;  
             }  
   
             if (((*((*s_etat_processus).s_liste_variables  
                     [(*s_etat_processus).position_variable_courante].objet))  
                     .type != MIN) && ((*((*s_etat_processus)  
                     .s_liste_variables[(*s_etat_processus)  
                     .position_variable_courante].objet)).type != MRL))  
             {  
                 (*s_etat_processus).erreur_execution =  
                         d_ex_matrice_statistique_invalide;  
                 return;  
             }  
   
             nombre_colonnes = (*((struct_matrice *) (*((*s_etat_processus)  
                     .s_liste_variables[(*s_etat_processus)  
                     .position_variable_courante].objet)).objet))  
                     .nombre_colonnes;  
         }  
     }      }
   
     s_objet_statistique = ((*s_etat_processus).s_liste_variables      s_objet_statistique = (*(*s_etat_processus).pointeur_variable_courante)
             [(*s_etat_processus).position_variable_courante]).objet;              .objet;
   
     if (((*s_objet_statistique).type == MIN) ||      if (((*s_objet_statistique).type == MIN) ||
             ((*s_objet_statistique).type == MRL))              ((*s_objet_statistique).type == MRL))
Line 221  void Line 182  void
 instruction_corr(struct_processus *s_etat_processus)  instruction_corr(struct_processus *s_etat_processus)
 {  {
     logical1                            erreur;      logical1                            erreur;
     logical1                            presence_variable;  
   
     long                                i;  
   
     struct_objet                        *s_objet_statistique;      struct_objet                        *s_objet_statistique;
     struct_objet                        *s_objet_resultat;      struct_objet                        *s_objet_resultat;
Line 267  instruction_corr(struct_processus *s_eta Line 225  instruction_corr(struct_processus *s_eta
      * Recherche d'une variable globale référencée par SIGMA       * Recherche d'une variable globale référencée par SIGMA
      */       */
   
     if (recherche_variable(s_etat_processus, ds_sdat) == d_faux)      if (recherche_variable_globale(s_etat_processus, ds_sdat) == d_faux)
     {      {
         /*          /*
          * Aucune variable SIGMA           * Aucune variable SIGMA
Line 279  instruction_corr(struct_processus *s_eta Line 237  instruction_corr(struct_processus *s_eta
     }      }
     else      else
     {      {
         /*          if ((*(*s_etat_processus).pointeur_variable_courante).objet == NULL)
          * Il existe une variable locale SIGMA. Reste à vérifier l'existence  
          * d'une variable SIGMA globale...  
          */  
   
         i = (*s_etat_processus).position_variable_courante;  
         presence_variable = d_faux;  
   
         while(i >= 0)  
         {          {
             if ((strcmp((*s_etat_processus).s_liste_variables[i].nom,              (*s_etat_processus).erreur_execution = d_ex_variable_partagee;
                     ds_sdat) == 0) && ((*s_etat_processus)              return;
                     .s_liste_variables[i].niveau == 1))  
             {  
                 presence_variable = d_vrai;  
                 break;  
             }  
   
             i--;  
         }          }
   
         if (presence_variable == d_faux)          if (((*(*(*s_etat_processus).pointeur_variable_courante).objet)
                   .type != MIN) && ((*(*(*s_etat_processus)
                   .pointeur_variable_courante).objet).type != MRL))
         {          {
             (*s_etat_processus).erreur_execution = d_ex_absence_observations;              (*s_etat_processus).erreur_execution =
                       d_ex_matrice_statistique_invalide;
             return;              return;
         }          }
         else  
         {  
             (*s_etat_processus).position_variable_courante = i;  
   
             if ((*s_etat_processus).s_liste_variables          nombre_colonnes = (*((struct_matrice *) (*(*(*s_etat_processus)
                     [(*s_etat_processus).position_variable_courante].objet                  .pointeur_variable_courante).objet).objet))
                     == NULL)                  .nombre_colonnes;
             {  
                 (*s_etat_processus).erreur_execution = d_ex_variable_partagee;  
                 return;  
             }  
   
             if (((*((*s_etat_processus).s_liste_variables  
                     [(*s_etat_processus).position_variable_courante].objet))  
                     .type != MIN) && ((*((*s_etat_processus)  
                     .s_liste_variables[(*s_etat_processus)  
                     .position_variable_courante].objet)).type != MRL))  
             {  
                 (*s_etat_processus).erreur_execution =  
                         d_ex_matrice_statistique_invalide;  
                 return;  
             }  
   
             nombre_colonnes = (*((struct_matrice *) (*((*s_etat_processus)  
                     .s_liste_variables[(*s_etat_processus)  
                     .position_variable_courante].objet)).objet))  
                     .nombre_colonnes;  
         }  
     }      }
   
     s_objet_statistique = ((*s_etat_processus).s_liste_variables      s_objet_statistique = (*(*s_etat_processus).pointeur_variable_courante)
             [(*s_etat_processus).position_variable_courante]).objet;              .objet;
   
     if (((*s_objet_statistique).type == MIN) ||      if (((*s_objet_statistique).type == MIN) ||
             ((*s_objet_statistique).type == MRL))              ((*s_objet_statistique).type == MRL))

Removed from v.1.21  
changed lines
  Added in v.1.22


CVSweb interface <joel.bertrand@systella.fr>