Skip to content

Feature/ratio

T-Gruber requested to merge T-Gruber/frama-clang:feature/ratio into master

The standard library of Frama-Clang is knwon to be incomplete. The implementation of the ratio header should be added. This requires changes to two files:

ratio:

  • add ratio header to share/libc++
  • add implementation

Makefile.common:

  • add ratio header to CXX_HEADERS (Installed header files)

Requirements:

  • limits: std::numeric_limits is implemented
  • type_traits: template specialization where type T is bool is implemented

Limitations:

  • as long as negative integers of type long long are not supported (#4 (closed)) only positive rational fraction are fully supported

Exemplary C++-program: ratio_test.cpp

Merge request reports