Skip to content
Snippets Groups Projects
  1. Nov 18, 2021
    • Andre Maroneze's avatar
      [Libc] avoid spurious uninitialized warnings from the compiler · a3eb75e3
      Andre Maroneze authored
      Clang 13 emits warnings related to uninitialized variables:
      
      variable 'r' is used uninitialized whenever 'if'
      condition is false [-Wsometimes-uninitialized]
      
      This is due to the fact that the assert(0) macro, when using Frama-C's libc,
      is expanded to __FC_assert. Since it is not known by the compiler, it cannot
      consider it as "noreturn" when the condition is zero. Note that adding
      '__attribute__ ((__noreturn__))' will not work: Frama-C will assume it
      never returns, even when the condition is true.
      Initializing the 'r' variables with a default value will not change the
      actual behavior, and will avoid the warnings.
      a3eb75e3
  2. Nov 02, 2021
  3. Oct 19, 2021
  4. Oct 13, 2021
  5. Oct 12, 2021
    • David Bühler's avatar
      [Eva] Emits indeterminate alarms on call arguments to builtins. · d80e4a34
      David Bühler authored
      'Indeterminate' alarms are alarms about uninitialized memory, escaping pointers
      and special floating-point values (infinite and NaN).
      
      These alarms are emitted for functions specified by -eva-warn-copy-indeterminate
      option, which is @all by default. These alarms can be disabled for some function
      by -eva-warn-copy-indeterminate=-f, in which case they are also disabled for
      the argument expressions of calls to [f].
      
      However:
      - the @all default value did not include functions without definition
        (for which a specification or a builtin is used).
      - 'indeterminate' alarms were emitted anyway for the arguments of calls to
        functions without definition, except for builtins.
      So no indeterminate alarms were emitted for the argument expressions of calls
      to builtins (unless their definitions were included).
      
      This commit fixes this behavior:
      the @all default of -eva-warn-copy-indeterminate option include all functions
      and special case for functions without definition or builtins are removed.
      
      It still avoids to emit surch alarms on Eva directives such as Frama_C_show_each.
      d80e4a34
  6. Oct 11, 2021
  7. Sep 30, 2021
  8. Sep 02, 2021
  9. Sep 01, 2021
  10. Aug 26, 2021
  11. Jul 27, 2021
    • Virgile Prevosto's avatar
      update oracles · f60a02b6
      Virgile Prevosto authored
      most differences in Eva oracles come from the fact that now anonymous arguments are taken into
      account when generating default assigns for prototypes with empty specs.
      f60a02b6
  12. Jun 25, 2021
  13. Jun 22, 2021
  14. Jun 16, 2021
  15. Jun 10, 2021
  16. Jun 09, 2021
  17. Jun 04, 2021
  18. Jun 01, 2021
  19. May 18, 2021
  20. May 12, 2021
  21. Apr 27, 2021
  22. Apr 26, 2021
Loading