flang the compiler proves your program cannot hang 0.9.0 GitHub Try in the browserTry it Русский

Code page data

Code page tables for CP1251 and KOI8-R: the upper half, bytes 128–255.

Import:

  использует «Code page data»

Example

File example.flang:

модуль «Пример»
  использует «Code page data»

тотальная функция «Вызов из примера»
  возвращает число
  пример «в верхней половине таблицы 128 кодовых точек»
    ожидается 128
  длина («Верхняя половина CP1251»)
$ flang test example.flang
example.flang: примеров 1, прошло 1, не прошло 0

The command runs the tests of the module and the test in the file: 1 in total.

Functions

Functions to call: 2.

Every postcondition has a status: proved — holds for any arguments; checked on tests only — no violation on the values from the tests, other arguments are checked at run time; not proved — there is no proof, the condition is checked at run time.

«Верхняя половина CP1251»

возвращает список числа

«Верхняя половина KOI8-R»

возвращает список числа

Source: flang/stdlib/code-page-data.flang. All modules: Standard library.