Skip to content
Snippets Groups Projects
  • Xavier Leroy's avatar
    be0b1872
    Refine the type of function results in AST.signature · be0b1872
    Xavier Leroy authored
    Before it was "option typ".  Now it is a proper inductive type
    that can also express small integer types (8/16-bit unsigned/signed integers).
    
    One benefit is that external functions get more precise types that
    control better their return values.  As a consequence,
    the CompCert C type preservation property now holds unconditionally,
    without extra typing hypotheses on external functions.
    be0b1872
    History
    Refine the type of function results in AST.signature
    Xavier Leroy authored
    Before it was "option typ".  Now it is a proper inductive type
    that can also express small integer types (8/16-bit unsigned/signed integers).
    
    One benefit is that external functions get more precise types that
    control better their return values.  As a consequence,
    the CompCert C type preservation property now holds unconditionally,
    without extra typing hypotheses on external functions.