--- rpl/src/instructions_p2.c 2013/02/27 17:11:43 1.44 +++ rpl/src/instructions_p2.c 2020/01/10 11:15:47 1.70 @@ -1,7 +1,7 @@ /* ================================================================================ - RPL/2 (R) version 4.1.13 - Copyright (C) 1989-2013 Dr. BERTRAND Joël + RPL/2 (R) version 4.1.32 + Copyright (C) 1989-2020 Dr. BERTRAND Joël This file is part of RPL/2. @@ -112,7 +112,7 @@ instruction_p_vers_r(struct_processus *s if ((*s_objet_argument).type == INT) { (*((struct_complexe16 *) (*s_objet_resultat).objet)).partie_reelle - = (*((integer8 *) (*s_objet_argument).objet)); + = (real8) (*((integer8 *) (*s_objet_argument).objet)); } else { @@ -374,6 +374,14 @@ instruction_p_vers_r(struct_processus *s ================================================================================ */ +static int +fonction_comparaison(const void *argument_1, const void *argument_2) +{ + return(strcmp((unsigned char *) argument_1, + (unsigned char *) (**((struct_objet **) argument_2)).objet)); +} + + void instruction_put(struct_processus *s_etat_processus) { @@ -383,17 +391,18 @@ instruction_put(struct_processus *s_etat struct_objet *s_copie_3; struct_objet *s_copie_4; + struct_objet **s_enregistrement; struct_objet *s_objet_1; struct_objet *s_objet_2; struct_objet *s_objet_3; struct_objet *s_objet_4; struct_objet *s_objet_element; - unsigned long i; - unsigned long indice_i; - unsigned long indice_j; - unsigned long j; - unsigned long nombre_dimensions; + integer8 i; + integer8 indice_i; + integer8 indice_j; + integer8 j; + integer8 nombre_dimensions; void *tampon; @@ -428,10 +437,10 @@ instruction_put(struct_processus *s_etat " %s, %s, %s, %s, %s,\n" " %s, %s, %s, %s, %s,\n" " %s, %s, %s, %s,\n" - " %s, %s\n", + " %s, %s, %s\n", d_INT, d_REL, d_CPL, d_VIN, d_VRL, d_VCX, d_MIN, d_MRL, d_MCX, d_TAB, d_BIN, d_NOM, d_CHN, d_LST, d_ALG, d_RPN, d_FCH, d_SCK, - d_SQL, d_SLB, d_PRC, d_MTX); + d_SQL, d_SLB, d_PRC, d_MTX, d_REC); printf("-> 1: %s\n\n", d_LST); printf(" 3: %s\n", d_TAB); @@ -440,22 +449,34 @@ instruction_put(struct_processus *s_etat " %s, %s, %s, %s, %s,\n" " %s, %s, %s, %s, %s,\n" " %s, %s, %s, %s,\n" - " %s, %s\n", + " %s, %s, %s\n", d_INT, d_REL, d_CPL, d_VIN, d_VRL, d_VCX, d_MIN, d_MRL, d_MCX, d_TAB, d_BIN, d_NOM, d_CHN, d_LST, d_ALG, d_RPN, d_FCH, d_SCK, - d_SQL, d_SLB, d_PRC, d_MTX); + d_SQL, d_SLB, d_PRC, d_MTX, d_REC); printf("-> 1: %s\n\n", d_TAB); + printf(" 3: %s\n", d_REC); + printf(" 2: %s\n", d_CHN); + printf(" 1: %s, %s, %s, %s, %s, %s,\n" + " %s, %s, %s, %s, %s,\n" + " %s, %s, %s, %s, %s,\n" + " %s, %s, %s, %s,\n" + " %s, %s, %s\n", + d_INT, d_REL, d_CPL, d_VIN, d_VRL, d_VCX, d_MIN, d_MRL, d_MCX, + d_TAB, d_BIN, d_NOM, d_CHN, d_LST, d_ALG, d_RPN, d_FCH, d_SCK, + d_SQL, d_SLB, d_PRC, d_MTX, d_REC); + printf("-> 1: %s\n\n", d_REC); + printf(" 3: %s\n", d_NOM); printf(" 2: %s, %s\n", d_LST, d_INT); printf(" 1: %s, %s, %s, %s, %s, %s,\n" " %s, %s, %s, %s, %s,\n" " %s, %s, %s, %s, %s,\n" " %s, %s, %s, %s,\n" - " %s, %s\n", + " %s, %s, %s\n", d_INT, d_REL, d_CPL, d_VIN, d_VRL, d_VCX, d_MIN, d_MRL, d_MCX, d_TAB, d_BIN, d_NOM, d_CHN, d_LST, d_ALG, d_RPN, d_FCH, d_SCK, - d_SQL, d_SLB, d_PRC, d_MTX); + d_SQL, d_SLB, d_PRC, d_MTX, d_REC); return; } @@ -610,8 +631,8 @@ instruction_put(struct_processus *s_etat (*s_objet_3).type = VRL; if (((*((struct_vecteur *) (*s_objet_3).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_3).objet)).taille * sizeof(real8))) + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_3).objet)).taille) * sizeof(real8))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -645,8 +666,8 @@ instruction_put(struct_processus *s_etat (*s_objet_3).type = VCX; if (((*((struct_vecteur *) (*s_objet_3).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_3).objet)).taille * + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_3).objet)).taille) * sizeof(struct_complexe16))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -726,8 +747,8 @@ instruction_put(struct_processus *s_etat (*s_objet_3).type = VCX; if (((*((struct_vecteur *) (*s_objet_3).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_3).objet)).taille * + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_3).objet)).taille) * sizeof(struct_complexe16))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -969,8 +990,8 @@ instruction_put(struct_processus *s_etat (*s_objet_3).type = MRL; if (((*((struct_matrice *) (*s_objet_3).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_lignes * sizeof(real8 *))) + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_lignes) * sizeof(real8 *))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -983,8 +1004,8 @@ instruction_put(struct_processus *s_etat { if ((((real8 **) (*((struct_matrice *) (*s_objet_3).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_colonnes) * sizeof(real8))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -1022,8 +1043,8 @@ instruction_put(struct_processus *s_etat (*s_objet_3).type = MCX; if (((*((struct_matrice *) (*s_objet_3).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_lignes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_lignes) * sizeof(struct_complexe16 *))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -1036,8 +1057,8 @@ instruction_put(struct_processus *s_etat { if ((((struct_complexe16 **) (*((struct_matrice *) (*s_objet_3).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_colonnes) * sizeof(struct_complexe16))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -1122,8 +1143,8 @@ instruction_put(struct_processus *s_etat (*s_objet_3).type = MCX; if (((*((struct_matrice *) (*s_objet_3).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_lignes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_lignes) * sizeof(struct_complexe16 *))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -1136,8 +1157,8 @@ instruction_put(struct_processus *s_etat { if ((((struct_complexe16 **) (*((struct_matrice *) (*s_objet_3).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_colonnes) * sizeof(struct_complexe16))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -1417,6 +1438,71 @@ instruction_put(struct_processus *s_etat /* -------------------------------------------------------------------------------- + Traitement des enregistrements +-------------------------------------------------------------------------------- +*/ + + else if ((*s_objet_3).type == REC) + { + if ((*s_objet_2).type != CHN) + { + liberation(s_etat_processus, s_objet_1); + liberation(s_etat_processus, s_objet_2); + liberation(s_etat_processus, s_objet_3); + + (*s_etat_processus).erreur_execution = d_ex_erreur_type_argument; + return; + } + + if ((*s_objet_3).nombre_occurrences > 1) + { + if ((s_copie_3 = copie_objet(s_etat_processus, s_objet_3, 'N')) + == NULL) + { + (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; + return; + } + + liberation(s_etat_processus, s_objet_3); + s_objet_3 = s_copie_3; + } + + if ((s_enregistrement = bsearch((unsigned char *) (*s_objet_2).objet, + (*((struct_tableau *) (*(*((struct_record *) + (*s_objet_3).objet)).noms).objet)).elements, + (size_t) (*((struct_tableau *) (*(*((struct_record *) + (*s_objet_3).objet)).noms).objet)).nombre_elements, + sizeof(struct_objet *), fonction_comparaison)) == NULL) + { + liberation(s_etat_processus, s_objet_1); + liberation(s_etat_processus, s_objet_2); + liberation(s_etat_processus, s_objet_3); + + (*s_etat_processus).erreur_execution = d_ex_element_inexistant; + return; + } + + indice_i = s_enregistrement - (*((struct_tableau *) + (*(*((struct_record *) (*s_objet_3).objet)).noms).objet)) + .elements; + + liberation(s_etat_processus, (*((struct_tableau *) + (*(*((struct_record *) (*s_objet_3).objet)).donnees).objet)) + .elements[indice_i]); + (*((struct_tableau *) (*(*((struct_record *) (*s_objet_3).objet)) + .donnees).objet)).elements[indice_i] = s_objet_1; + + liberation(s_etat_processus, s_objet_2); + + if (empilement(s_etat_processus, &((*s_etat_processus).l_base_pile), + s_objet_3) == d_erreur) + { + return; + } + } + +/* +-------------------------------------------------------------------------------- Traitement des noms -------------------------------------------------------------------------------- */ @@ -1646,8 +1732,8 @@ instruction_put(struct_processus *s_etat (*s_objet_4).type = VRL; if (((*((struct_vecteur *) (*s_objet_4).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_4).objet)).taille * sizeof(real8))) + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_4).objet)).taille) * sizeof(real8))) == NULL) { if (variable_partagee == d_vrai) @@ -1694,8 +1780,8 @@ instruction_put(struct_processus *s_etat (*s_objet_4).type = VCX; if (((*((struct_vecteur *) (*s_objet_4).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_4).objet)).taille * + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_4).objet)).taille) * sizeof(struct_complexe16))) == NULL) { if (variable_partagee == d_vrai) @@ -1799,8 +1885,8 @@ instruction_put(struct_processus *s_etat (*s_objet_4).type = VCX; if (((*((struct_vecteur *) (*s_objet_4).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_4).objet)).taille * + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_4).objet)).taille) * sizeof(struct_complexe16))) == NULL) { if (variable_partagee == d_vrai) @@ -2152,8 +2238,8 @@ instruction_put(struct_processus *s_etat (*s_objet_4).type = MRL; if (((*((struct_matrice *) (*s_objet_4).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_lignes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_lignes) * sizeof(real8 *))) == NULL) { if (variable_partagee == d_vrai) @@ -2178,8 +2264,8 @@ instruction_put(struct_processus *s_etat { if ((((real8 **) (*((struct_matrice *) (*s_objet_4).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_colonnes) * sizeof(real8))) == NULL) { if (variable_partagee == d_vrai) @@ -2229,8 +2315,8 @@ instruction_put(struct_processus *s_etat (*s_objet_4).type = MCX; if (((*((struct_matrice *) (*s_objet_4).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_lignes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_lignes) * sizeof(struct_complexe16 *))) == NULL) { if (variable_partagee == d_vrai) @@ -2255,8 +2341,8 @@ instruction_put(struct_processus *s_etat { if ((((struct_complexe16 **) (*((struct_matrice *) (*s_objet_4).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_colonnes) * sizeof(struct_complexe16))) == NULL) { if (variable_partagee == d_vrai) @@ -2366,8 +2452,8 @@ instruction_put(struct_processus *s_etat (*s_objet_4).type = MCX; if (((*((struct_matrice *) (*s_objet_4).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_lignes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_lignes) * sizeof(struct_complexe16 *))) == NULL) { if (variable_partagee == d_vrai) @@ -2392,8 +2478,8 @@ instruction_put(struct_processus *s_etat { if ((((struct_complexe16 **) (*((struct_matrice *) (*s_objet_4).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_colonnes) * sizeof(struct_complexe16))) == NULL) { if (variable_partagee == d_vrai) @@ -2838,6 +2924,116 @@ instruction_put(struct_processus *s_etat liberation(s_etat_processus, s_objet_2); } + else if ((*s_objet_4).type == REC) + { + if ((*s_objet_2).type != CHN) + { + if (variable_partagee == d_vrai) + { + if (pthread_mutex_unlock(&((*(*s_etat_processus) + .pointeur_variable_partagee_courante).mutex)) != 0) + { + (*s_etat_processus).erreur_systeme = + d_es_processus; + return; + } + } + + liberation(s_etat_processus, s_objet_1); + liberation(s_etat_processus, s_objet_2); + liberation(s_etat_processus, s_objet_3); + + (*s_etat_processus).erreur_execution = + d_ex_erreur_type_argument; + return; + } + + if ((*s_objet_4).nombre_occurrences > 1) + { + if ((s_copie_4 = copie_objet(s_etat_processus, s_objet_3, 'N')) + == NULL) + { + if (variable_partagee == d_vrai) + { + if (pthread_mutex_unlock(&((*(*s_etat_processus) + .pointeur_variable_partagee_courante).mutex)) + != 0) + { + (*s_etat_processus).erreur_systeme = + d_es_processus; + return; + } + } + + (*s_etat_processus).erreur_systeme = + d_es_allocation_memoire; + return; + } + + liberation(s_etat_processus, s_objet_4); + s_objet_4 = s_copie_4; + } + + if ((s_enregistrement = bsearch( + (unsigned char *) (*s_objet_2).objet, + (*((struct_tableau *) (*(*((struct_record *) + (*s_objet_4).objet)).noms).objet)).elements, + (size_t) (*((struct_tableau *) (*(*((struct_record *) + (*s_objet_4).objet)).noms).objet)).nombre_elements, + sizeof(struct_objet *), fonction_comparaison)) == NULL) + { + if (variable_partagee == d_vrai) + { + if (pthread_mutex_unlock(&((*(*s_etat_processus) + .pointeur_variable_partagee_courante).mutex)) + != 0) + { + (*s_etat_processus).erreur_systeme = + d_es_processus; + return; + } + } + + liberation(s_etat_processus, s_objet_1); + liberation(s_etat_processus, s_objet_2); + liberation(s_etat_processus, s_objet_3); + + (*s_etat_processus).erreur_execution = d_ex_element_inexistant; + return; + } + + indice_i = s_enregistrement - (*((struct_tableau *) + (*(*((struct_record *) (*s_objet_4).objet)).noms).objet)) + .elements; + + liberation(s_etat_processus, (*((struct_tableau *) + (*(*((struct_record *) (*s_objet_4).objet)).donnees).objet)) + .elements[indice_i]); + (*((struct_tableau *) (*(*((struct_record *) (*s_objet_4).objet)) + .donnees).objet)).elements[indice_i] = s_objet_1; + + if (variable_partagee == d_faux) + { + (*(*s_etat_processus).pointeur_variable_courante).objet = + s_objet_4; + } + else + { + (*(*s_etat_processus).pointeur_variable_courante).objet = NULL; + (*(*s_etat_processus).pointeur_variable_partagee_courante) + .objet = s_objet_4; + + if (pthread_mutex_unlock(&((*(*s_etat_processus) + .pointeur_variable_partagee_courante).mutex)) != 0) + { + (*s_etat_processus).erreur_systeme = + d_es_processus; + return; + } + } + + liberation(s_etat_processus, s_objet_2); + } else { if (variable_partagee == d_vrai) @@ -2907,12 +3103,12 @@ instruction_puti(struct_processus *s_eta struct_objet *s_objet_3; struct_objet *s_objet_4; - unsigned long i; - unsigned long indice_i; - unsigned long indice_j; - unsigned long j; - unsigned long nombre_dimensions; - unsigned long nombre_elements; + integer8 i; + integer8 indice_i; + integer8 indice_j; + integer8 j; + integer8 nombre_dimensions; + integer8 nombre_elements; void *tampon; @@ -2949,10 +3145,10 @@ instruction_puti(struct_processus *s_eta " %s, %s, %s, %s, %s,\n" " %s, %s, %s, %s, %s,\n" " %s, %s, %s, %s,\n" - " %s, %s\n", + " %s, %s, %s\n", d_INT, d_REL, d_CPL, d_VIN, d_VRL, d_VCX, d_MIN, d_MRL, d_MCX, d_TAB, d_BIN, d_NOM, d_CHN, d_LST, d_ALG, d_RPN, d_FCH, d_SCK, - d_SQL, d_SLB, d_PRC, d_MTX); + d_SQL, d_SLB, d_PRC, d_MTX, d_REC); printf("-> 2: %s, %s\n", d_LST, d_NOM); printf(" 1: %s\n", d_INT); @@ -3118,8 +3314,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_3).type = VRL; if (((*((struct_vecteur *) (*s_objet_3).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_3).objet)).taille * sizeof(real8))) + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_3).objet)).taille) * sizeof(real8))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -3153,8 +3349,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_3).type = VCX; if (((*((struct_vecteur *) (*s_objet_3).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_3).objet)).taille * + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_3).objet)).taille) * sizeof(struct_complexe16))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -3234,8 +3430,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_3).type = VCX; if (((*((struct_vecteur *) (*s_objet_3).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_3).objet)).taille * + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_3).objet)).taille) * sizeof(struct_complexe16))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -3486,8 +3682,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_3).type = MRL; if (((*((struct_matrice *) (*s_objet_3).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_lignes * sizeof(real8 *))) + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_lignes) * sizeof(real8 *))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -3500,8 +3696,8 @@ instruction_puti(struct_processus *s_eta { if ((((real8 **) (*((struct_matrice *) (*s_objet_3).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_colonnes) * sizeof(real8))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -3539,8 +3735,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_3).type = MCX; if (((*((struct_matrice *) (*s_objet_3).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_lignes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_lignes) * sizeof(struct_complexe16 *))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -3553,8 +3749,8 @@ instruction_puti(struct_processus *s_eta { if ((((struct_complexe16 **) (*((struct_matrice *) (*s_objet_3).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_colonnes) * sizeof(struct_complexe16))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -3639,8 +3835,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_3).type = MCX; if (((*((struct_matrice *) (*s_objet_3).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_lignes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_lignes) * sizeof(struct_complexe16 *))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -3653,8 +3849,8 @@ instruction_puti(struct_processus *s_eta { if ((((struct_complexe16 **) (*((struct_matrice *) (*s_objet_3).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_3).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_3).objet)).nombre_colonnes) * sizeof(struct_complexe16))) == NULL) { (*s_etat_processus).erreur_systeme = @@ -4113,8 +4309,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_4).type = VRL; if (((*((struct_vecteur *) (*s_objet_4).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_4).objet)).taille * sizeof(real8))) + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_4).objet)).taille) * sizeof(real8))) == NULL) { if (variable_partagee == d_vrai) @@ -4161,8 +4357,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_4).type = VCX; if (((*((struct_vecteur *) (*s_objet_4).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_4).objet)).taille * + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_4).objet)).taille) * sizeof(struct_complexe16))) == NULL) { if (variable_partagee == d_vrai) @@ -4266,8 +4462,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_4).type = VCX; if (((*((struct_vecteur *) (*s_objet_4).objet)).tableau - = malloc((*((struct_vecteur *) - (*s_objet_4).objet)).taille * + = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_4).objet)).taille) * sizeof(struct_complexe16))) == NULL) { if (variable_partagee == d_vrai) @@ -4624,8 +4820,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_4).type = MRL; if (((*((struct_matrice *) (*s_objet_4).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_lignes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_lignes) * sizeof(real8 *))) == NULL) { if (variable_partagee == d_vrai) @@ -4650,8 +4846,8 @@ instruction_puti(struct_processus *s_eta { if ((((real8 **) (*((struct_matrice *) (*s_objet_4).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_colonnes) * sizeof(real8))) == NULL) { if (variable_partagee == d_vrai) @@ -4701,8 +4897,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_4).type = MCX; if (((*((struct_matrice *) (*s_objet_4).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_lignes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_lignes) * sizeof(struct_complexe16 *))) == NULL) { if (variable_partagee == d_vrai) @@ -4727,8 +4923,8 @@ instruction_puti(struct_processus *s_eta { if ((((struct_complexe16 **) (*((struct_matrice *) (*s_objet_4).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_colonnes) * sizeof(struct_complexe16))) == NULL) { if (variable_partagee == d_vrai) @@ -4838,8 +5034,8 @@ instruction_puti(struct_processus *s_eta (*s_objet_4).type = MCX; if (((*((struct_matrice *) (*s_objet_4).objet)).tableau - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_lignes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_lignes) * sizeof(struct_complexe16 *))) == NULL) { if (variable_partagee == d_vrai) @@ -4864,8 +5060,8 @@ instruction_puti(struct_processus *s_eta { if ((((struct_complexe16 **) (*((struct_matrice *) (*s_objet_4).objet)).tableau)[i] - = malloc((*((struct_matrice *) - (*s_objet_4).objet)).nombre_colonnes * + = malloc(((size_t) (*((struct_matrice *) + (*s_objet_4).objet)).nombre_colonnes) * sizeof(struct_complexe16))) == NULL) { if (variable_partagee == d_vrai)