Skip to content

Commit 1523b4d

Browse files
Fix typos
Co-authored-by: Allan Blanchard <allan.blanchard0@gmail.com>
1 parent 7d1ea17 commit 1523b4d

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

english/function-contract/contract.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -652,11 +652,11 @@
652652
types, the logic type is \CodeInline{integer}, for C floating point types, the
653653
logic type is \CodeInline{real} (structures are kept as are until one really
654654
tries to compute something with its field and this case, the value of the field
655-
itself is promoted). When one tries to add an \CodeInline{integer} and a
655+
itself is promoted). When one tries to sum an \CodeInline{integer} and a
656656
\CodeInline{real}, the \CodeInline{integer} is promoted to a \CodeInline{real}.
657657

658658

659-
Thus, here even if \CodeInline{x+y} might overflow, we can safely compare the
659+
Thus, here, even if \CodeInline{x+y} might overflow, we can safely compare the
660660
resulting value to \CodeInline{INT\_MIN} and \CodeInline{INT\_MAX}. Note that
661661
it also means that for C types that have defined overflow, the behavior is the
662662
one from ACSL. For example:
@@ -680,7 +680,7 @@
680680
\image{addition-unsigned-fixed}
681681

682682

683-
However, there are still operations that may be undefined, for example, if one
683+
However, there are still operations that may be undefined. For example, if one
684684
writes the following ACSL properties, there are divisions by 0:
685685

686686

@@ -692,7 +692,7 @@
692692

693693
Nevertheless, those annotations are well-defined in ACSL. Even if we are not
694694
able to \textit{compute} the values of these divisions, it is correct to write
695-
these assertions, the first one evaluates to true, the second is unknown: in the
695+
these assertions. The first one evaluates to true, the second is unknown: in the
696696
first assertion, even if we cannot compute the terms, they are indeed the same,
697697
thus equal ; in the second, we cannot say if they equal because even if they are
698698
different, nothing tells us what is the value that would eventually be

french/function-contract/contract.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@
682682

683683
Nous voyons que l'expression qui peut provoquer un comportement indéterminé en
684684
C peut être utilisée de manière sure en ACSL. La raison de cela est que les
685-
valeurs C sont automatiquement promue vers de types logiques avant de faire des
685+
valeurs C sont automatiquement promues vers des types logiques avant de faire des
686686
calculs. Pour les entiers C, le type logique est \CodeInline{integer}, pour les
687687
valeurs flottantes, le type logique est \CodeInline{real} (les structures sont
688688
conservées telles quelles jusqu'à ce qu'un champ en particulier soit utilisé
@@ -716,7 +716,7 @@
716716
\image{addition-unsigned-fixed}
717717

718718

719-
Cependant, il reste d'autres opérations qui peuvent être indéfinie, par exemple,
719+
Cependant, il reste d'autres opérations qui peuvent être indéfinies, par exemple,
720720
si nous écrivons les propriétés ACSL suivante, il y a des divisions par 0 :
721721

722722

@@ -728,7 +728,7 @@
728728

729729
Néanmoins, ces annotations sont parfaitement définies en ACSL. Même si nous ne
730730
sommes pas capables de \textit{calculer} les valeurs de ces divisions, il est
731-
correct d'écrire ces assertions, la première s'évalue à vrai, la seconde est
731+
correct d'écrire ces assertions. La première s'évalue à vrai, la seconde est
732732
inconnue : dans la première assertion, même, si nous ne pouvons pas calculer
733733
les termes, ils sont effectivement les mêmes, et donc égaux ; dans la seconde,
734734
nous ne pouvons pas dire s'ils sont égaux parce que même s'ils sont différents,

0 commit comments

Comments
 (0)