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

Diagnostics reference

What a FLANG_… code in the compiler's output means and how to fix the program. Codes are grouped by the stage of checking that reports them; the full alphabetical list is at the end of the page.

Every error line starts with a code:

$ flang check docs/examples/diagnostics/type.flang
модуль «Probe»: функций 1, из них с доказанным завершением 1; типов 0
FLANG_TYPE в файле docs/examples/diagnostics/type.flang, строка 6, столбец 3: функция «Удвоить» объявлена как число, а тело даёт строка
docs/examples/diagnostics/type.flang: не проверено — замечаний 1
$ echo $?
1

After the code come the file, the line, the column and a description. The last line is the result for the file; 1 is the exit code.

Messages are in Russian by default. With language = en in .flangrc or FLANG_LANG=en the code stays the same and the text is in English for the messages that have a translation.

Words on this page: a postcondition is an обеспечивает line; a precondition is a требует line; the kernel is the part of the compiler that proves postconditions for all inputs; a test is a пример block.

Exit codes of flang check

CodeWhen
0no errors
1errors found
2the command was called wrongly: unknown flag, no such file. Or there are no errors, but not everything was checked: for a program with processes or categories part of the rules of the declarations was not checked, and the output says so
3with --proof or --strict, not everything is proved
4part of the checks did not run (--fast)

The table for all commands is in the Command reference.

Exit code 0 without flags does not mean the postconditions are proved. flang check checks parsing, types, termination and tests, and looks for a counterexample to every postcondition. A postcondition it could neither prove nor refute is not an error:

модуль «Core»

тотальная функция «Двойка»
  принимает н: число
  возвращает число
  н умножить на 2

тотальная функция «Учтено»
  принимает н: число
  возвращает число
  обеспечивает «не меньше двойки» результат не меньше («Двойка» от н)
  («Двойка» от н) плюс 1
$ flang check docs/examples/diagnostics/core.flang
модуль «Core»: функций 2, из них с доказанным завершением 2; типов 0
docs/examples/diagnostics/core.flang: проверено — доказано 0, проверено только на тестах 0, не доказано 1 (постусловий и утверждений 1)
не доказано: 1 — подробности: flang check docs/examples/diagnostics/core.flang --proof

With --proof the same file gives exit code 3 and a proof report:

$ flang check docs/examples/diagnostics/core.flang --proof
модуль «Core»: функций 2, завершение доказано у 2
постусловие «не меньше двойки» функции «Учтено» — не доказано
итог: постусловий и утверждений 1 — доказано 0, проверено только на тестах 0, не доказано 1
docs/examples/diagnostics/core.flang: доказано не всё — доказано 0, проверено только на тестах 0, не доказано 1, ложно 0 (постусловий и утверждений 1); независимая проверка повторила 0 из 0 — код возврата 3
подробный отчёт: flang check docs/examples/diagnostics/core.flang --proof --explain
$ echo $?
3
Word in the reportWhat it means
доказано (proved)true for all inputs
проверено только на тестах (only tested)true on your examples; not proved for other inputs
не доказано (not proved)there is neither a proof nor an example
ложно (false)an input was found on which the postcondition is violated

In CI use flang check --proof --strict: it exits with 0 only when everything is proved.

Parsing

CodeWhat it meansWhat to do
FLANG_LEXa character or word could not be read: an unclosed quote, an unexpected characterclose the quote, remove the character
FLANG_PARSEthe words were read, but they do not form a constructlook at the line and column: usually a missing иначе branch, or a keyword where a name is expected
FLANG_FILE_LANGUAGEa keyword is written in a different writing language than the rest of the file; or a // surface: line names a language that does not exist; or the file has equally many keywords of two languageswrite the word in the language of the file (the message names it) or name the language with a // surface: ru line at the top
модуль «Probe»

тотальная функция «Удвоить»
  принимает н: число
  возвращает число
  если н больше 0 то н умножить на 2
$ flang check docs/examples/diagnostics/parse.flang
FLANG_PARSE в файле docs/examples/diagnostics/parse.flang, строка 7, столбец 1: у 'если' нет ветки 'иначе'
docs/examples/diagnostics/parse.flang: не проверено — замечаний 1
$ echo $?
1

если … то … is an expression, so the иначе branch is required.

$ flang check docs/examples/diagnostics/lex.flang
FLANG_LEX в файле docs/examples/diagnostics/lex.flang, строка 5, столбец 3: не закрыта кавычка
docs/examples/diagnostics/lex.flang: не проверено — замечаний 1
$ echo $?
1

Loop, one-line header, class, interface

The compiler rewrites цикл, a one-line function header, класс and интерфейс into ordinary constructs. It rejects a wrongly written form before parsing.

CodeWhat it meansWhat to do
FLANG_SUGAR_LOOPthe loop has no в конце line; has neither для каждого nor пока; or a пока has no убывает or шагов не большеadd the missing line
FLANG_SUGAR_HEADERin the header возвращает comes before принимает, a word is repeated, or nothing follows a wordwrite … принимает … возвращает …
FLANG_SUGAR_CLASSa class line that is not a field, not всегда and not метод; or станет changes a field that does not existcheck the field name against the class declaration
FLANG_SUGAR_INTERFACEa class does not declare a required method of the interface, or declares it with a different headeradd the method with the same header

loop.flang:

модуль «Цикл»

тотальная функция «Сумма»
  принимает числа: список число
  возвращает число
  цикл «Сложение»
    для каждого х из числа
    храним итог: число равным 0
    дальше: итог станет итог плюс х
$ flang check loop.flang
FLANG_SUGAR_LOOP в файле loop.flang, строка 6, столбец 3: цикл «Сложение»: нет строки «в конце …»: цикл не говорит, что он отдаёт, когда кончается
loop.flang: не проверено — замечаний 1

The fix is a в конце итог line after the храним line. The messages of the other three codes:

FLANG_SUGAR_HEADER в файле header.flang, строка 3, столбец 1: в заголовке «возвращает» стоит раньше «принимает»; пишется «… принимает … возвращает …»
FLANG_SUGAR_CLASS в файле class.flang, строка 6, столбец 3: метод «Положить» класса «Счёт»: у класса «Счёт» нет поля «баланс», которое меняет «… станет …»
FLANG_SUGAR_INTERFACE в файле interface.flang, строка 6, столбец 1: класс «Квадрат» есть «Фигура», но не даёт метод «Площадь»

Names and imports

CodeWhat it meansWhat to do
FLANG_UNKNOWN_NAMEthe name is not defined: no such function or variabledeclare it, import the module, or fix the spelling
FLANG_AMBIGUOUS_NAMEtwo imports give the same namedrop one import or narrow it with только
FLANG_BAD_NAMEthe name does not follow the rules for nameswrite function names in guillemets and parameters as plain words
FLANG_NAME_TAKENthe name is used by another declarationpick another name
FLANG_DUPLICATE_NAMEthe name is declared twice: in one module or in two modules of one program. The second case also happens when a только list hides a helper function of the same nameremove the second declaration, add the helper to только, or rename
FLANG_IMPORT_NOT_FOUNDthe imported module was not foundcheck the module name and the path in из "…"
FLANG_IMPORT_CYCLEmodules import each other in a circlemove the shared part into a third module
FLANG_IMPORT_AMBIGUOUSone name comes from two modulesnarrow the import with только
FLANG_IMPORT_NAMEthe только list has a name the module does not declarecompare the list with the module's declarations
модуль «Probe»

тотальная функция «Удвоить»
  принимает н: число
  возвращает число
  «Утроить» от н
$ flang check docs/examples/diagnostics/unknown.flang
модуль «Probe»: функций 1, из них с доказанным завершением 0; типов 0
без доказанного завершения: «Удвоить»
FLANG_UNKNOWN_NAME в файле docs/examples/diagnostics/unknown.flang, строка 6, столбец 3: неизвестная функция «Утроить»
FLANG_NOT_TOTAL в файле docs/examples/diagnostics/unknown.flang, строка 6, столбец 3: тотальная функция «Удвоить» вызывает неизвестную функцию «Утроить»: завершение доказать нельзя
docs/examples/diagnostics/unknown.flang: не проверено — замечаний 2
$ echo $?
1

The second error, FLANG_NOT_TOTAL, follows from the first: termination of a call to an unknown function cannot be proved. It goes away with the first.

An operation written in the wrong order also gives FLANG_UNKNOWN_NAME, and the message shows the right form:

$ flang check docs/examples/diagnostics/operator-order.flang
FLANG_UNKNOWN_NAME в файле docs/examples/diagnostics/operator-order.flang, строка 10, столбец 3: имя «умножить» не связано: имя вводят 'принимает', 'пусть' или образец 'случай'; а действия языка ('плюс', 'минус', 'умножить на', 'делить на', 'остаток от') пишутся МЕЖДУ значениями — «3.14 умножить на р», а не «умножить 3.14 на р»
docs/examples/diagnostics/operator-order.flang: не проверено — замечаний 1
$ echo $?
1

Types

CodeWhat it meansWhat to do
FLANG_TYPEthe declared type differs from the type of the body or of an argument; or a function is declared twicemake the types agree; remove the second declaration
FLANG_TYPE_ARGSa built-in type such as число is given type argumentsremove the arguments
FLANG_TYPE_PARAMa type parameter is declared twice, has no name, or is named like an existing typerename the parameter
FLANG_APPLYthe call has the wrong number of arguments, or what is called is not a functioncompare the call with the function header
FLANG_BUILTIN_ARGSa built-in operation got the wrong number of argumentscheck the description of the operation
FLANG_OVERFLOWan operation on a fixed-width integer (u8 … i64) does not fit the type or divides by zerowrite с переполнением where overflow is intended, or take a wider type
FLANG_MATCH_NOT_EXHAUSTIVEa разбор does not cover all casesadd the missing случай
FLANG_MATCH_UNREACHABLEa case is covered by an earlier one and never runsremove it or move it up
FLANG_SCALEvalues of different scale are added or subtracted, for example сотых and тысячныхbring the values to one scale
FLANG_INFINITYan operation takes a value out of the range of its type: вес минус вес can become negativedeclare the result as число
FLANG_NOT_A_NUMBERthe result of an operation is always NaN: a remainder of division by zero, or zero divided by zerofix the divisor
FLANG_EXAMPLEa test failed: the value differs from the expected one, the input of the test does not satisfy требует, or an input was found on which a postcondition is violatedfix the body, the expectation or the postcondition; remove a test whose input does not satisfy the precondition

The first case of FLANG_TYPE is shown at the top of the page. The others:

$ flang check docs/examples/diagnostics/duplicate.flang
модуль «Probe»: функций 2, из них с доказанным завершением 2; типов 0
FLANG_TYPE в файле docs/examples/diagnostics/duplicate.flang, строка 8, столбец 1: функция «Удвоить» объявлена дважды
docs/examples/diagnostics/duplicate.flang: не проверено — замечаний 1
$ echo $?
1
$ flang check docs/examples/diagnostics/match.flang
модуль «Probe»: функций 1, из них с доказанным завершением 1; типов 0
FLANG_MATCH_NOT_EXHAUSTIVE в файле docs/examples/diagnostics/match.flang, строка 6, столбец 3: разбор списка не покрывает «пусто»
docs/examples/diagnostics/match.flang: не проверено — замечаний 1
$ echo $?
1
$ flang check docs/examples/diagnostics/example.flang
модуль «Probe»: функций 1, из них с доказанным завершением 1; типов 0
FLANG_EXAMPLE: пример «Двойка» функции «Удвоить»: значение не совпало с ожидаемым: ожидалось 5, получено 4
docs/examples/diagnostics/example.flang: не проверено — замечаний 1
$ echo $?
1

scale.flang:

модуль «Масштаб»

тотальная функция «Сложить»
  принимает цена: сотых, доля: тысячных
  возвращает число
  цена плюс доля
FLANG_SCALE в файле scale.flang, строка 6, столбец 8: «add»: масштабы 2 и 3 разошлись: сотых и тысячных

infinity.flang:

модуль «Бесконечность»

тотальная функция «Разность весов»
  принимает первый: вес, второй: вес
  возвращает вес
  первый минус второй
FLANG_INFINITY в файле infinity.flang, строка 6, столбец 10: «sub» над вес и вес выводит из отрезка [0, +∞]
FLANG_TYPE в файле infinity.flang, строка 6, столбец 10: функция «Разность весов» объявлена как вес, а тело даёт число

add and sub in the messages are the internal names of the operations плюс and минус.

Termination and limits

CodeWhat it meansWhat to do
FLANG_NOT_TOTALthe function is declared тотальная, and its termination is not proved, or a builtin in its body may fail at run time (an error since 0.9.0, not a warning)pass a PART of the argument to the recursive call (the tail of a list, a field of a variant), not a recomputed number; check the condition of the builtin before it with an if branch, a match pattern or a requires precondition, and if the function can really fail, drop the тотальная mark
FLANG_MEASUREthe declared measure does not decreasefix убывает or the call
FLANG_RECURSION_LIMITevaluation used up the limit of steps or of call depthraise --max-steps or --max-depth, or fix the recursion
FLANG_STEP_LIMITthe step limit was used up inside a testraise --max-steps
FLANG_BUDGET_EXHAUSTEDthe step allowance of the run was used upraise the allowance or make the task smaller
FLANG_MEMORYout of memorymake the data smaller
FLANG_STOPPEDthe run was stopped from outsiderun again
модуль «Probe»

тотальная функция «Считать»
  принимает н: число
  возвращает число
  если н равно 0 то 0 иначе («Считать» от (н плюс 1))
$ flang check docs/examples/diagnostics/total.flang
модуль «Probe»: функций 1, из них с доказанным завершением 0; типов 0
без доказанного завершения: «Считать»
FLANG_NOT_TOTAL в файле docs/examples/diagnostics/total.flang, строка 6, столбец 30: тотальная функция «Считать»: рекурсивный вызов «Считать» не убывает — аргумент 1 («н» add 1) увеличивает параметр «н». Передавайте часть аргумента: хвост списка из образца «голова и хвост», поле варианта из образца, поле записи или элемент коллекции
docs/examples/diagnostics/total.flang: не проверено — замечаний 1
$ echo $?
1

н плюс 1 grows, so the compiler cannot show that the recursion ends. add in the message is the internal name of the operation плюс.

The step limit shows with a small --max-steps. flang run runs only proved programs; not everything in this file is proved, so --trust is added:

$ flang run docs/examples/diagnostics/recursion.flang --function "Вниз" --args '{"н":100}' --max-steps 5 --trust
на веру: доказанность не считалась — запуск по ключу --trust
FLANG_RECURSION_LIMIT: функция «Вниз» исчерпала лимит шагов (5) на глубине вызовов 1
$ echo $?
1

Postconditions and proofs

CodeWhat it meansWhat to do
FLANG_PROPERTYa postcondition was violated at run timeeither the postcondition or the body is wrong — look at the input on which it was violated
FLANG_PRECONDITIONthe input does not satisfy требует: an argument of flang run or the input of a testpass an input that satisfies the precondition
FLANG_PRECONDITION_CALLa call did not establish the precondition of the called function; the same when a function with требует is passed as a valuecheck the condition before the call, narrow the argument type, or repeat требует on the calling function
FLANG_BOUND_ON_NANa postcondition about order is false because of NaNsee below
FLANG_UNPROVEDflang run or flang io did not run the program: something in it is not proved. Exit code 3prove the postconditions or run with --trust
FLANG_PROOFa declaration or a step of a proof was not read or was not accepted by the kernelfix the step the message names
FLANG_PROOF_NO_GOALthe theorem proves nothing: there is no postcondition with this namename the theorem exactly as the postcondition
FLANG_PROOF_AMBIGUOUSthe theorem fits two postconditions at oncegive the postconditions different names
FLANG_PROOF_CLAIM_MISMATCHthe text after утверждаем differs from the postconditioncopy the text of the postcondition word for word
FLANG_PROOF_DUPLICATEtwo theorems prove one postconditionkeep one
FLANG_PROOF_STEPa step has no justification, or there are no steps at alladd по свойству «…», по примеру «…» or по предположению
FLANG_PROOF_UNFINISHEDthe proof is not finishedadd следовательно доказано
FLANG_PROOF_UNKNOWN_VARthe statement has an undeclared namedeclare it with дано
FLANG_PROOF_VAR_TYPEthe type of a theorem variable differs from the type of the parametermake дано agree with the function header
FLANG_PROOF_INDUCTION_TYPEinduction over this type is not possibledo induction over a type with variants or over неотрицательное
FLANG_PROOF_INDUCTION_CASESnot all cases of the induction are coveredadd the missing случай
FLANG_PROOF_INDUCTION_BRANCHa case does not reach the goaljustify this case
FLANG_PROOF_INDUCTION_STEPthe induction step does not reach the hypothesisadd по предположению and make both sides match exactly
FLANG_PROOF_INDUCTION_DESCENTthe induction step goes down by something other than exactly onego down by exactly one
FLANG_INITIAL_FAILUREno induction rule was built for the typecheck that the type is declared with variants
FLANG_UNCOVERED_FAILUREan error case is not handled in a разборadd a case for the error
модуль «Probe»

тотальная функция «Удвоить»
  принимает н: число
  возвращает число
  обеспечивает «удвоенное неотрицательно» если н не меньше 0 то (результат не меньше 0) иначе да
  н умножить на 2

теорема «удвоенное неотрицательно»
  дано н: число
  утверждаем если н не меньше 0 то (результат не меньше 0) иначе да
  следовательно доказано
$ flang check docs/examples/diagnostics/no-steps.flang
модуль «Probe»: функций 1, из них с доказанным завершением 1; типов 0
FLANG_PROOF_STEP: теорема «удвоенное неотрицательно»: ни одного шага
docs/examples/diagnostics/no-steps.flang: не проверено — замечаний 1
$ echo $?
1
$ flang check docs/examples/diagnostics/no-goal.flang
модуль «Probe»: функций 1, из них с доказанным завершением 1; типов 0
FLANG_PROOF_NO_GOAL в файле docs/examples/diagnostics/no-goal.flang, строка 8, столбец 1: теорема «удвоенное неотрицательно» ничего не закрывает: постусловия «удвоенное неотрицательно» нет ни у одной функции модуля. Теорема доказывает названное утверждение, а не утверждение вообще — назовите её так же, как постусловие, которое она закрывает
docs/examples/diagnostics/no-goal.flang: не проверено — замечаний 1
$ echo $?
1
$ flang check docs/examples/diagnostics/ambiguous.flang
модуль «Probe»: функций 2, из них с доказанным завершением 2; типов 0
FLANG_PROOF_AMBIGUOUS в файле docs/examples/diagnostics/ambiguous.flang, строка 15, столбец 1: теорема «неотрицательно» закрывала бы сразу 2 постусловия («Удвоить», «Утроить»), и выбрать нельзя. Дайте постусловиям разные имена
docs/examples/diagnostics/ambiguous.flang: не проверено — замечаний 1
$ echo $?
1
$ flang check docs/examples/diagnostics/mismatch.flang
модуль «Probe»: функций 1, из них с доказанным завершением 1; типов 0
FLANG_PROOF_CLAIM_MISMATCH в файле docs/examples/diagnostics/mismatch.flang, строка 11, столбец 3: теорема «неотрицательно» утверждает не то, что обещает функция «Удвоить»: утверждение теоремы и постусловие обязаны совпадать слово в слово. Ядро не решает, что два разных утверждения означают одно и то же
docs/examples/diagnostics/mismatch.flang: не проверено — замечаний 1
$ echo $?
1

Precondition

requires.flang:

модуль «Требование»

тотальная функция «Тот же»
  принимает а: число
  возвращает число
  требует «вход неотрицателен» а не меньше 0
  а

An argument that does not satisfy the precondition is rejected at run time:

$ flang run requires.flang --function 'Тот же' --args '{"а":-7}'
доказано: утверждений 0
FLANG_PRECONDITION: не выполнено требование «вход неотрицателен» функции «Тот же»
$ echo $?
1

A test with such an input is rejected by flang check already:

FLANG_EXAMPLE: пример «минус семь» функции «Тот же»: FLANG_PRECONDITION: не выполнено требование «вход неотрицателен» функции «Тот же»

A call «Тот же» от б from a function where nothing is known about б gives FLANG_PRECONDITION_CALL:

FLANG_PRECONDITION_CALL в файле call.flang, строка 12, столбец 3: вызов «Тот же» в функции «Проба» не снимает предусловие «вход неотрицателен»: …

A postcondition violated at run time

A postcondition the kernel did not prove is checked at run time. Running a program that is not proved needs --trust:

$ flang run docs/examples/diagnostics/property.flang --function "Половина" --args '{"н":0}' --trust
на веру: доказанность не считалась — запуск по ключу --trust
FLANG_PROPERTY: нарушено свойство «результат меньше довода» функции «Половина»
$ echo $?
1

FLANG_BOUND_ON_NAN: the type число contains NaN

The postcondition looks true, and the kernel answers with a counterexample:

модуль «Probe»

тотальная функция «Прибавить один»
  принимает н: число
  возвращает число
  обеспечивает «результат больше довода» результат больше н
  н плюс 1
$ flang check docs/examples/diagnostics/nan.flang
модуль «Probe»: функций 1, из них с доказанным завершением 1; типов 0
FLANG_BOUND_ON_NAN в файле docs/examples/diagnostics/nan.flang, строка 6, столбец 3: постусловие «результат больше довода» функции «Прибавить один» ЛОЖНО, и контрпример назван: «н» объявлен типом «число», а «не число» живёт в этом типе и стоит ВНЕ ПОРЯДКА — оно не больше и не меньше ничего, включая самоё себя. Тело собрано только из арифметики над «н», а всякая арифметическая операция «не число» переносит, значит результат есть «не число», и сравнение с ним ложно… Полный текст: тот же вызов с ключом --explain.
docs/examples/diagnostics/nan.flang: не проверено — замечаний 1
$ echo $?
1

The type число is a floating-point number, and it contains NaN ("not a number"). Any arithmetic on NaN gives NaN, and any comparison with NaN is false. So for NaN the postcondition does not hold. Three ways to fix it:

WayWhat to writeWho checks
narrow the argument typeпринимает н: неотрицательное or целоеnobody: NaN is not in the type
add a preconditionтребует «вход есть число» (н минус н) равен 0the calling function
exclude NaN in the postcondition itselfобеспечивает «…» не ((н минус н) равен 0) или (результат больше н)nobody

(н минус н) равен 0 is false only when н is NaN.

Laws of declared structures

These laws are not proved; they are checked on a finite set of values that you give. An error means a violation was found; there is always a counterexample.

CodeWhich law is violated
FLANG_EQUALITY_NOT_REFLEXIVEthe declared equality is not reflexive
FLANG_EQUALITY_NOT_SYMMETRICthe equality is not symmetric
FLANG_EQUALITY_NOT_TRANSITIVEthe equality is not transitive
FLANG_EQUALITY_NOT_CONGRUENTcomposition does not preserve equality
FLANG_ORDER_NOT_REFLEXIVEthe order is not reflexive
FLANG_ORDER_NOT_ANTISYMMETRICthe order is not antisymmetric
FLANG_ORDER_NOT_TRANSITIVEthe order is not transitive
FLANG_CATEGORY_NOT_CLOSEDthe category is not closed under composition
FLANG_CATEGORY_NO_IDENTITYan object has no identity morphism
FLANG_CATEGORY_NOT_ASSOCcomposition is not associative
FLANG_COMPOSE_MISMATCHthe ends of a composition do not meet
FLANG_MORPHISM_SHAPEa morphism is declared wrongly
FLANG_FUNCTOR_SQUAREa functor square does not commute
FLANG_FUNCTOR_OBJECT_MISSINGan arrow is mapped, but its end has no image
FLANG_TRANSFORM_NOT_NATURALa naturality square does not commute
FLANG_BIFUNCTOR_OBJECT_TWICEthe bifunctor maps one pair of objects twice
FLANG_BIFUNCTOR_OBJECT_MISSINGa pair of arrows is mapped, but the pair of their ends has no image
FLANG_BIFUNCTOR_ARROW_MISMATCHthe image of a pair of arrows is not declared or does not go between the images of the ends
FLANG_BIFUNCTOR_IDENTITYa pair of identities is mapped to an arrow that is not an identity
FLANG_BIFUNCTOR_COMPOSITIONa pair of compositions is not mapped to the composition of the images of the parts
FLANG_ISO_NOT_INVERSEthe two arrows are not inverse to each other
FLANG_ISO_MISMATCHan arrow of the isomorphism is not declared or does not go between its objects
FLANG_ISO_IDENTITY_MISSINGan object of the isomorphism has no declared identity
FLANG_EMBED_SHAPEan embedding is declared wrongly
FLANG_EMBED_NOT_INJECTIVEthe embedding maps different values to one
FLANG_MONOIDthe monoid declaration is incomplete
FLANG_MONOID_ASSOCthe monoid operation is not associative
FLANG_MONOID_IDENTITYthe identity element is not an identity
FLANG_GROUP_INVERSEthe inverse element is not an inverse
FLANG_MONADthe monad declaration is incomplete
FLANG_MONAD_ASSOCbind is not associative
FLANG_MONAD_LEFT_UNITthe left unit law is violated
FLANG_MONAD_RIGHT_UNITthe right unit law is violated
FLANG_NOT_COMMUTATIVEthe declared commutativity does not hold
FLANG_NOT_DISTRIBUTIVEdistributivity does not hold
FLANG_NOT_IDEMPOTENTidempotence does not hold
FLANG_NOT_MONOTONEmonotonicity does not hold
FLANG_MEET_NAME_TAKENthe name of the set is already taken
FLANG_MEET_NO_UNIVERSEthe declared sets have no common enclosing set
FLANG_MEET_SAME_SIDEa set is intersected with itself
FLANG_MEET_TWICEone pair is declared twice

Errors in the declarations of categories, transformations and properties themselves:

CodeWhat it means
FLANG_CATEGORY_ARROW_TWICEan arrow of the category is named twice
FLANG_CATEGORY_UNKNOWN_ARROWan arrow is named that is not declared
FLANG_CATEGORY_EQUALITY_SHAPEthe equality of an object is not a function of two arguments that returns признак
FLANG_CATEGORY_EQUALITY_TWICEthe equality of one object is declared twice
FLANG_CATEGORY_EQUALITY_OUTSIDEan equality is declared for an object that no arrow of the category touches
FLANG_CATEGORY_NAMEa declaration without names, or a name that is taken or repeated
FLANG_CATEGORY_FORMa line of a proof about arrows is written wrongly
FLANG_CATEGORY_TYPEthe goal of a proof about arrows is not valid; the message names the reason
FLANG_CATEGORY_STEPa step of the chain of equalities was not accepted
FLANG_CATEGORY_GOALthe chain of equalities did not reach the right-hand side of the goal
FLANG_TRANSFORM_SHAPEa functor of the natural transformation is not declared, or its two functors do not go between the same categories
FLANG_TRANSFORM_COMPONENTan object has more than one component; a functor does not map the object of a component; the arrow of a component is not declared
FLANG_TRANSFORM_NOT_TOTALan object has no component of the transformation
FLANG_UNKNOWN_PROPERTYa property with an unknown name is declared; the message lists the known ones
FLANG_PROPERTY_NOT_JUDGEDa declared property was not checked; the message names the reason. Give examples or remove the declaration

Plans and input/output

Errors of flang io. A plan returns an effect — a command for the host — as data, and the host carries it out. The host returns FLANG_IO_* codes to the plan in answer to an effect.

CodeWhat it meansWhat to do
FLANG_PLANthe plan is declared wronglycheck the план declaration
FLANG_UNKNOWN_PLANthe file has no plan with this namename an existing one: --plan 'Name', without guillemets
FLANG_PLAN_UNSUPPORTEDcode for plans is not generated for this target languagechoose another target language or run with flang io
FLANG_IOthe plan returned something that is not an effect, a step of the plan returned something that is not a continuation, or the host answered with something that is not a responsefix the type of the value the step of the plan returns
FLANG_IO_DENIEDthe permission was taken away by a flag (--no-read, --no-write, --no-net and others)remove the flag
FLANG_IO_NO_HOSTthere is nothing to carry out the effectrun with flang io, not by evaluating a function
FLANG_IO_UNKNOWNthe host does not know this effectcheck the name of the effect
FLANG_IO_NOT_WIREDthe effect is known, but this host does not carry it outrun the plan with flang io
FLANG_IO_ORDERthe host expected a different effect: for example, the contents of a file instead of a write confirmationfix the order of the steps of the plan
FLANG_IO_LIMITthe plan used up the limit on the number of effectsraise --max-orders
FLANG_IO_PATHthe effect needs a non-empty pathpass a path
FLANG_IO_READthe file was not readcheck the path and permissions
FLANG_IO_WRITEthe write failed, for example the path is a directorycheck the path and permissions
FLANG_IO_LISTthe directory was not openedcheck the path
FLANG_IO_REMOVEthe file was not removedcheck the path and permissions
FLANG_IO_TEMPDIRthe temporary directory was not createdcheck FLANG_TMP and disk space
FLANG_IO_NOT_TEXTreading text met bytes that are not textread as bytes
FLANG_IO_OCTETSthe effect needs a list of bytes, but got another value or a number outside 0…255pass a list of bytes
FLANG_IO_ENVthe effect that reads an environment variable has an empty namepass the name of the variable
FLANG_IO_ENTROPYrandom bytes were requested in a run with --seed, or their count is outside 0…65536remove --seed or fix the count
FLANG_IO_SPAWNthe process was not startedcheck the program name
FLANG_IO_TIMEOUTthe started process printed nothing for longer than --timeoutraise --timeout
FLANG_IO_FAILEDthe plan ended with an error and named no code of its ownread the message text
FLANG_IO_NOT_CHECKEDthe plan ended with the outcome "not checked" and named no code of its own: there was nothing to check with. Exit code 3remove the cause named in the message and repeat
FLANG_IO_NO_SCREENa screen effect was called without a terminal (output to a pipe, CI)run in a terminal
FLANG_IO_PLACEa screen place is named that does not exist; there is one place, «экран»name «экран»
FLANG_IO_NETa network effect was not carried out: an empty address, no connection, or the host cannot use the networkcheck the address and the network; run with flang io
FLANG_IO_NO_TLSthe compiler was built without a TLS client, so an https address cannot be openedtake a build with the TLS client
FLANG_IO_TLS_CERTthe certificate of the host failed the check: chain, validity period, name or signaturecheck the address; your own root certificates — --trust-roots <PEM file>
FLANG_IO_TLSanother TLS failureretry; check that the host supports TLS 1.3
FLANG_TLS_CHAIN, FLANG_TLS_EXPIRED, FLANG_TLS_NAME, FLANG_TLS_SIGNATUREthe cause inside FLANG_IO_TLS_CERT: certificate chain, validity period, host name, signaturethe same as for FLANG_IO_TLS_CERT
FLANG_TLS_ENGINEthe TLS client answered with something the host did not expectreport it: this is a fault of the tool
FLANG_LOCKthe lock file is damaged or its checksum does not matchrebuild it with flang lock
FLANG_PACKAGEthe package is damaged or there is no flang.package next to itrebuild it with flang package
FLANG_PRINT_REFUSEDthe code generation plan did not generate the files; the message names the reasonremove the cause named in the message
FLANG_PRINT_DIAGNOSTICSthe code generation plan found errors in the source files; they are listed in the messagefix the listed errors
FLANG_EMPTY_ORDERthe code generation plan was given no filespass the files

Permissions are taken away one at a time; by default everything is allowed:

flang io план.flang --plan 'Разбор' --no-net --in-dir
CodeWhat it meansWhat to do

Processes

CodeWhat it meansWhat to do
FLANG_PROCESSthe process is declared wronglycheck the declaration
FLANG_UNKNOWN_PROCESSa process names a handler or an initial function that the program does not havefix the name
FLANG_HANDLER_NOT_TOTALthe handler of a process is not declared тотальная, and the process names no step allowancedeclare the handler тотальная or name a step allowance
FLANG_PROCESS_ACCEPTSthe process received a message it does not acceptadd the kind of message to принимает
FLANG_PROCESS_LIMITthe limit on the number of processes was reachedraise the limit or start fewer
FLANG_MAILBOX_FULLthe message queue of the process is full: the receiver falls behindread more often or slow the sender down
FLANG_HOTSWAP_REFUSEDreplacing the code without stopping was rejectedmake the new code compatible with the previous declarations

Command line and internal errors

CodeWhat it meansWhat to do
FLANG_CLIthe command was called wrongly: unknown flag or missing argumentflang <command> --help
FLANG_NEWflang new did not create the package: the directory exists or the name is not allowedanother name or --force
FLANG_INTERNALan error in the compiler itselfreport it: this is a fault of the tool, not of your program
FLANG_UNKNOWNa generated program got an error without a codereport it: this is a fault of the tool
FLANG_SELF_REPL_UNSUPPORTEDthe interactive shell does not accept this construct, for example используетput the code in a file and run flang check
FLANG_FACTCHECK_NO_ANSWERflang facts got no value for a calladd the value to the facts
FLANG_FREESTANDING_UNSUPPORTEDemit --freestanding: the function cannot be translated to C without libc — it has strings, lists, fractional numbers or recursionrewrite the function over the integers u8…u64, records and types with variants; details — C without libc
$ flang check --неткого
flang check: непонятный ключ «--неткого»
$ echo $?
2

Environment variables with the same prefix

These names are settings, not errors. They get into the full table below because of the FLANG_ prefix. The main ones are described in the Command reference.

VariablesWhat they concern
FLANG_JOBS, FLANG_THREADSthe number of processes check uses for independent proofs; the number of threads for parallel evaluation
FLANG_TMPthe directory for temporary files
FLANG_LANG, FLANG_MESSAGE_DIRthe language of messages and the directory with their texts
FLANG_MODULE_DIR, FLANG_MODULE_ROOTwhere to look for modules; the directory above which the search does not go
FLANG_RUNTIME_DIR, FLANG_FSPEC_TEMPLATE_DIRruntime sources for emit; templates for flang new
FLANG_UNPROVENwhat run and io do with a program that is not proved: refuse, warn, allow
FLANG_CHECKER, FLANG_PROOF_CHECKERthe path to the independent checker program
FLANG_OFFLINEforbids the network when importing by a link
FLANG_LISTEN_ADDRESSthe address on which a program accepts connections; 127.0.0.1 by default
FLANG_HISTORYthe history file of the interactive shell; 0 or no turns recording off
FLANG_BINthe path to flang itself; the compiler sets it for the processes it starts
FLANG_PROOF_CACHE, FLANG_PROOF_CACHE_AUDIT, FLANG_PROOF_CACHE_KEY, FLANG_PROOF_CACHE_RECHECK, FLANG_PROOF_CACHE_STATSthe proof cache
FLANG_MEMO, FLANG_MEMO_AUDIT, FLANG_MEMO_BYTES, FLANG_MEMO_STATSremembering results of the evaluator: switching on, cross-checking, memory limit, statistics
FLANG_TICKS, FLANG_TICKS_OUT, FLANG_TIME_OUT, FLANG_WATCH, FLANG_WATCH_TICK, FLANG_PULSE, FLANG_PULSE_TICK, FLANG_KERNEL_STAGESmeasuring steps and time while developing the compiler

FLANG_STEPS occurs only in the compiler's own tests.

Every code of the compiler

The table is collected from the sources of the compiler and the runtime: it has every code they report. A dash in the third column means the message text is put together at the place of the error.

A FLANG_* code is part of the contract with programs that read the compiler's output: an editor, CI, a course. For each code the release it appeared in and a status are recorded: stable, new or removed.

CodeWhere in the compilerMessage
FLANG_AMBIGUOUS_NAMEparser.flang—
FLANG_APPLYinterpret.flang, types.flang—
FLANG_BAD_NAMEconc.flang, failures.flang, flang_conc.c—
FLANG_BIFUNCTOR_ARROW_MISMATCHcompiler.flang—
FLANG_BIFUNCTOR_COMPOSITIONcompiler.flang—
FLANG_BIFUNCTOR_IDENTITYcompiler.flang—
FLANG_BIFUNCTOR_OBJECT_MISSINGcompiler.flang—
FLANG_BIFUNCTOR_OBJECT_TWICEcompiler.flang—
FLANG_BINflang_repl.c—
FLANG_BOUND_ON_NANobligations.flangpostcondition «{claim}» of function «{function}» is FALSE, and a counterexample is named: {reason}
FLANG_BUDGET_EXHAUSTEDconc.flang, failures.flang, flang_conc.c—
FLANG_BUILTIN_ARGSbuiltins.flang, failures.flang, interpret.flang, types.flang—
FLANG_CATEGORY_ARROW_TWICEcompiler.flang—
FLANG_CATEGORY_EQUALITY_OUTSIDEcompiler.flang—
FLANG_CATEGORY_EQUALITY_SHAPEcompiler.flang—
FLANG_CATEGORY_EQUALITY_TWICEcompiler.flang—
FLANG_CATEGORY_FORMcategory-paths.flang—
FLANG_CATEGORY_GOALcategory-paths.flang—
FLANG_CATEGORY_NAMEcategory-paths.flang—
FLANG_CATEGORY_NOT_ASSOCsetoid.flang—
FLANG_CATEGORY_NOT_CLOSEDcompiler.flang—
FLANG_CATEGORY_NO_IDENTITYcompiler.flang—
FLANG_CATEGORY_STEPcategory-paths.flang—
FLANG_CATEGORY_TYPEcategory-paths.flang—
FLANG_CATEGORY_UNKNOWN_ARROWcompiler.flang—
FLANG_CHECKERflang_repl.c—
FLANG_CLIcli.flang, repl.flang, flang_repl.c—
FLANG_COMPOSE_MISMATCHcompiler.flang—
FLANG_DUPLICATE_NAMElink.flang, sets.flang, flang_repl.cin file {file}: function «{name}» is declared in two modules: {first} and {second} · function «{name}» is declared in two modules: {first} and {second} · in file {file}: type «{name}» is declared in two modules: {first} and {second} · type «{name}» is declared in two modules: {first} and {second}
FLANG_EMBED_NOT_INJECTIVEsets.flang—
FLANG_EMBED_SHAPEsets.flang—
FLANG_EMPTY_ORDERemit-from-source.flang—
FLANG_EQUALITY_NOT_CONGRUENTsetoid.flang—
FLANG_EQUALITY_NOT_REFLEXIVEsetoid.flang—
FLANG_EQUALITY_NOT_SYMMETRICsetoid.flang—
FLANG_EQUALITY_NOT_TRANSITIVEsetoid.flang—
FLANG_EXAMPLEcompiler.flangexample «{example}» of function «{function}»: the value does not match the expected one: expected {wanted}, got {got}
FLANG_FACTCHECK_NO_ANSWERfactcheck.flang—
FLANG_FILE_LANGUAGElexer.flang, parser.flang—
FLANG_FREESTANDING_UNSUPPORTEDc-without-libc.flang—
FLANG_FSPEC_TEMPLATE_DIRflang_repl.c—
FLANG_FUNCTOR_OBJECT_MISSINGcompiler.flang—
FLANG_FUNCTOR_SQUAREfunctor.flang—
FLANG_GROUP_INVERSEmonoid.flang—
FLANG_HANDLER_NOT_TOTALprocesses.flang—
FLANG_HISTORYflang_repl.c—
FLANG_HOTSWAP_REFUSEDhotswap.flang—
FLANG_IMPORT_AMBIGUOUSlink.flang, flang_repl.c—
FLANG_IMPORT_CYCLElink.flang, flang_repl.c—
FLANG_IMPORT_NAMElink.flang, flang_repl.c—
FLANG_IMPORT_NOT_FOUNDlink.flang, flang_repl.c—
FLANG_INFINITYtypes.flang—
FLANG_INITIAL_FAILUREfailures.flang, processes.flang—
FLANG_INTERNALconc.flang, lsp.flang, flang_conc.c, flang_repl.c—
FLANG_IOcompiler.flang, flang_cli.c, flang_conc.c, flang_repl.c—
FLANG_IO_DENIEDflang_repl.c—
FLANG_IO_ENTROPYflang_repl.c—
FLANG_IO_ENVflang_cli.c, flang_repl.c—
FLANG_IO_FAILEDflang_cli.c, flang_repl.c—
FLANG_IO_LIMITflang_cli.c, flang_repl.c—
FLANG_IO_LISTflang_cli.c, flang_repl.c—
FLANG_IO_NETflang_conc.c, flang_repl.c—
FLANG_IO_NOT_CHECKEDflang_cli.c, flang_repl.c—
FLANG_IO_NOT_TEXTflang_cli.c, flang_conc.c, flang_repl.c—
FLANG_IO_NOT_WIREDflang_cli.c—
FLANG_IO_NO_HOSTconc.flang, flang_conc.c—
FLANG_IO_NO_SCREENflang_cli.c, flang_repl.c—
FLANG_IO_NO_TLSflang_repl.c—
FLANG_IO_OCTETSflang_cli.c, flang_conc.c, flang_repl.c—
FLANG_IO_ORDERemit-from-source.flang—
FLANG_IO_PATHflang_cli.c, flang_conc.c, flang_repl.c—
FLANG_IO_PLACEflang_repl.c—
FLANG_IO_READflang_cli.c, flang_conc.c, flang_repl.c—
FLANG_IO_REMOVEflang_cli.c, flang_conc.c, flang_repl.c—
FLANG_IO_SPAWNflang_repl.c—
FLANG_IO_TEMPDIRflang_cli.c, flang_conc.c, flang_repl.c—
FLANG_IO_TIMEOUTflang_repl.c—
FLANG_IO_TLSflang_repl.c—
FLANG_IO_TLS_CERTflang_repl.c—
FLANG_IO_UNKNOWNflang_conc.c, flang_repl.c—
FLANG_IO_WRITEflang_cli.c, flang_conc.c, flang_repl.c—
FLANG_ISO_IDENTITY_MISSINGcompiler.flang—
FLANG_ISO_MISMATCHcompiler.flang—
FLANG_ISO_NOT_INVERSEiso.flang—
FLANG_JOBSflang_runtime.c—
FLANG_KERNEL_STAGESflang_repl.c—
FLANG_LANGflang_repl.c—
FLANG_LEXlexer.flang—
FLANG_LINK_CHANGEDflang_repl.c—
FLANG_LINK_DOWNfailures.flang—
FLANG_LINK_FETCHflang_repl.c—
FLANG_LINK_OFFLINEflang_repl.c—
FLANG_LISTEN_ADDRESSflang_conc.c, flang_repl.c—
FLANG_LOCKflang_repl.c—
FLANG_MAILBOX_FULLconc.flang, failures.flang, flang_conc.c—
FLANG_MATCH_NOT_EXHAUSTIVEinterpret.flang, types.flangthe match on {subject} does not cover {cases} · a match without cases covers nothing
FLANG_MATCH_UNREACHABLEtypes.flang—
FLANG_MEASUREdefunc.flang, failures.flang—
FLANG_MEET_NAME_TAKENsets.flang—
FLANG_MEET_NO_UNIVERSEsets.flang—
FLANG_MEET_SAME_SIDEcompiler.flang, sets.flang—
FLANG_MEET_TWICEsets.flang—
FLANG_MEMOflang_runtime.c—
FLANG_MEMORYflang_cli.c, flang_repl.c—
FLANG_MEMO_AUDITflang_runtime.c—
FLANG_MEMO_BYTESflang_runtime.c—
FLANG_MEMO_STATSflang_runtime.c—
FLANG_MESSAGE_DIRflang_repl.c—
FLANG_MODULE_DIRflang_repl.c—
FLANG_MODULE_ROOTflang_repl.c—
FLANG_MONADmonad-expand.flang, monad.flang—
FLANG_MONAD_ASSOCmonad.flang—
FLANG_MONAD_LEFT_UNITmonad.flang—
FLANG_MONAD_RIGHT_UNITmonad.flang—
FLANG_MONOIDmonoid.flang—
FLANG_MONOID_ASSOCmonoid.flang—
FLANG_MONOID_IDENTITYmonoid.flang—
FLANG_MORPHISM_SHAPEcompiler.flang—
FLANG_NAME_TAKENconc.flang, failures.flang, flang_conc.c—
FLANG_NEWflang_repl.c—
FLANG_NOT_A_NUMBERtypes.flang—
FLANG_NOT_COMMUTATIVEcommutative.flang—
FLANG_NOT_DISTRIBUTIVEdistributive.flang—
FLANG_NOT_IDEMPOTENTidempotent.flang—
FLANG_NOT_MONOTONEmonotone.flang—
FLANG_NOT_TOTALtotality.flang, types.flangtotal function «{function}» calls an unknown function «{callee}»: termination cannot be proved · total function «{function}»: the recursive call «{callee}» does not decrease — argument {position} ({argument}) increases parameter «{parameter}». Pass a part of the argument: the tail of a list from the pattern «голова и хвост», a variant field from a pattern, a record field or an element of a collection
FLANG_OFFLINEflang_repl.c—
FLANG_ORDER_NOT_ANTISYMMETRICpartialorder.flang—
FLANG_ORDER_NOT_REFLEXIVEpartialorder.flang—
FLANG_ORDER_NOT_TRANSITIVEpartialorder.flang—
FLANG_OVERFLOWinterpret.flang, types.flang—
FLANG_PACKAGEflang_repl.c—
FLANG_PARSEinterpret.flang, parser.flang'если' has no 'иначе' branch · construct not parsed: unexpected '{word}' — this word is taken by the language and cannot be a name: write the name in guillemets («{word.quoted}») or rename it; and if the word got into the form by mistake, remove it
FLANG_PLANio.flang—
FLANG_PLAN_UNSUPPORTEDcompiler.flang—
FLANG_PRECONDITIONemit-c.flang, emit-csharp.flang, emit-elixir.flang, emit-java.flang, emit-js.flang, emit-python.flang, interpret.flang, parser.flang—
FLANG_PRECONDITION_CALLproofterm.flang, types.flangthe call of «{callee}» in function «{function}» does not discharge precondition «{precondition}»: {reason}
FLANG_PRINT_DIAGNOSTICSemit-from-source.flang—
FLANG_PRINT_REFUSEDemit-from-source.flang—
FLANG_PROCESSconc.flang, processes.flang, flang_conc.c—
FLANG_PROCESS_ACCEPTSconc.flang, failures.flang, processes.flang—
FLANG_PROCESS_LIMITconc.flang, failures.flang, flang_conc.c—
FLANG_PROOFcompiler.flang, link.flang—
FLANG_PROOF_AMBIGUOUSobligations.flang—
FLANG_PROOF_CACHEflang_repl.c—
FLANG_PROOF_CACHE_AUDITflang_repl.c—
FLANG_PROOF_CACHE_KEYflang_repl.c—
FLANG_PROOF_CACHE_RECHECKflang_repl.c—
FLANG_PROOF_CACHE_STATSflang_repl.c—
FLANG_PROOF_CHECKERflang_repl.c—
FLANG_PROOF_CLAIM_MISMATCHobligations.flang, proofterm.flang—
FLANG_PROOF_DUPLICATEobligations.flang—
FLANG_PROOF_INDUCTION_BRANCHproofterm.flangstep {step}, inductive case «{case}» of theorem «{theorem}»: {reason} · step {step}, base case «{case}» of theorem «{theorem}»: {reason}
FLANG_PROOF_INDUCTION_CASESproofterm.flang—
FLANG_PROOF_INDUCTION_DESCENTproofterm.flang—
FLANG_PROOF_INDUCTION_STEPproofterm.flangstep {step}, inductive case «{case}» of theorem «{theorem}»: {reason} · step {step}, base case «{case}» of theorem «{theorem}»: {reason}
FLANG_PROOF_INDUCTION_TYPEproofterm.flang—
FLANG_PROOF_NO_GOALobligations.flang—
FLANG_PROOF_STEPproofterm.flangstep {step}, theorem «{theorem}»: {reason}
FLANG_PROOF_UNFINISHEDobligations.flang—
FLANG_PROOF_UNKNOWN_VARobligations.flang, parser.flang, types.flang—
FLANG_PROOF_VAR_TYPEobligations.flang—
FLANG_PROPERTYcompiler.flang, emit-c.flang, emit-csharp.flang, emit-elixir.flang, emit-java.flang, emit-js.flang, emit-python.flang, grid.flang, interpret.flang, parser.flangproperty «{claim}» of function «{function}» is violated
FLANG_PROPERTY_NOT_JUDGEDcompiler.flang—
FLANG_PULSEflang_runtime.c—
FLANG_PULSE_TICKflang_runtime.c—
FLANG_RECURSION_LIMITcompiler.flang, conc.flang, factcheck.flang, failures.flang, interpret.flang—
FLANG_RUNTIME_DIRflang_repl.c—
FLANG_SCALEtypes.flang—
FLANG_SELF_REPL_UNSUPPORTEDrepl.flang—
FLANG_STEPScompiler.flang—
FLANG_STEP_LIMITfactcheck.flang—
FLANG_STOPPEDconc.flang, failures.flang, flang_conc.c—
FLANG_SUGAR_CLASSsugar.flang—
FLANG_SUGAR_HEADERsugar.flang—
FLANG_SUGAR_INTERFACEsugar.flang—
FLANG_SUGAR_LOOPsugar.flang—
FLANG_THREADSflang_runtime.c—
FLANG_TICKSflang_repl.c—
FLANG_TICKS_OUTflang_runtime.c—
FLANG_TIME_OUTflang_runtime.c—
FLANG_TLS_CHAINflang_repl.c—
FLANG_TLS_ENGINEflang_repl.c—
FLANG_TLS_EXPIREDflang_repl.c—
FLANG_TLS_NAMEflang_repl.c—
FLANG_TLS_SIGNATUREflang_repl.c—
FLANG_TMPflang_repl.c—
FLANG_TRANSFORM_COMPONENTcompiler.flang—
FLANG_TRANSFORM_NOT_NATURALsetoid.flang—
FLANG_TRANSFORM_NOT_TOTALcompiler.flang—
FLANG_TRANSFORM_SHAPEcompiler.flang—
FLANG_TYPEinterpret.flang, types.flang, flang_cli.c{where} is declared to return {type.declared}, but its body gives {type.body} · {where} is declared twice · {where} has no body · argument «{parameter}» of function «{function}»: expected {type.wanted}, got {type.got} · {side} operand of «{operation}»: expected {type.wanted}, got {type.got} · the condition of «если» must be a flag, not {type} · the branches of «если» have different types: {type.then} and {type.else} · record «{record}» has no field «{field}» · record «{record}» requires field «{field}» ({type}) · field «{field}» is declared twice · function «{function}» takes {count} argument(s) ({parameters}), but is called with {given} · call of function «{function}»: argument «{parameter}»: {value} is outside {type} · {label} of function «{function}» does not give argument «{parameter}» · {label}: {value} is outside {type} · {label} does not match type {type}
FLANG_TYPE_ARGStypes.flang—
FLANG_TYPE_PARAMtypes.flang—
FLANG_UNCOVERED_FAILUREfailures.flang, processes.flang—
FLANG_UNKNOWNflang_cli.c—
FLANG_UNKNOWN_NAMEcompiler.flang, builtins.flang, conc.flang, interpret.flang, link.flang, parser.flang, sets.flang, types.flang, flang_repl.cunknown function «{name}» · unknown type «{name}» · unknown record «{name}» · unknown variant «{name}» · unknown variant constructor «{name}» · function «{name}» is not found · the record has no field «{field}» · name «{name}» is not bound · name «{name}» is not bound: a name is introduced by 'принимает', 'пусть' or a 'случай' pattern; and the operations of the language ('плюс', 'минус', 'умножить на', 'делить на', 'остаток от') go BETWEEN values — «3.14 умножить на р», not «умножить 3.14 на р»
FLANG_UNKNOWN_PLANcompiler.flang, flang_cli.c—
FLANG_UNKNOWN_PROCESSprocesses.flang—
FLANG_UNKNOWN_PROPERTYcompiler.flang—
FLANG_UNPROVEDcompiler.flang—
FLANG_UNPROVENflang_repl.c—
FLANG_WATCHflang_runtime.c—
FLANG_WATCH_TICKflang_runtime.c—

Next: When it is not proved — how to read a rejected proof, and when the mistake is not yours.