/* Generated by Nim Compiler v1.6.0 */
#define NIM_INTBITS 64

#include "nimbase.h"
#include <string.h>
#include <stdio.h>
#include <setjmp.h>
#include <stdlib.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
#define nimfr_(x, y)
#define nimln_(x, y)
typedef struct tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw;
typedef struct tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyTuple__kN8up2W6YKc5YA9avn5mV5w tyTuple__kN8up2W6YKc5YA9avn5mV5w;
typedef struct tyObject_Target__9abOl5DLX8suLujOaHSvGzw tyObject_Target__9abOl5DLX8suLujOaHSvGzw;
typedef struct tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg;
typedef struct tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A;
typedef struct tySequence__tNFrR3kRuS1FSwuiLGoSSA tySequence__tNFrR3kRuS1FSwuiLGoSSA;
typedef struct tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA;
typedef struct tySequence__7lEisrXlQEzwtUKW5pzRCw tySequence__7lEisrXlQEzwtUKW5pzRCw;
typedef struct tySequence__Zi9cGbCWofbtABoHJ5RbLNQ tySequence__Zi9cGbCWofbtABoHJ5RbLNQ;
typedef struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg;
typedef struct tySequence__4eRCaZmrYLLw2k30GPTiMw tySequence__4eRCaZmrYLLw2k30GPTiMw;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tyTuple__47w2DboNEPf69aPgubZdd7Q tyTuple__47w2DboNEPf69aPgubZdd7Q;
typedef struct tySequence__pK3qSsBZwdXd6qyUMkd5Jw tySequence__pK3qSsBZwdXd6qyUMkd5Jw;
typedef struct tyObject_SuggestcolonObjectType___bkMuTTb2G70XfpzAiyNrnQ tyObject_SuggestcolonObjectType___bkMuTTb2G70XfpzAiyNrnQ;
typedef struct tyObject_ProfileDatacolonObjectType___rPBBfFL4X0b9cQ6rfMNPXig tyObject_ProfileDatacolonObjectType___rPBBfFL4X0b9cQ6rfMNPXig;
typedef struct tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tyTuple__z822nu9bFF1AlQnLrHjdwpA tyTuple__z822nu9bFF1AlQnLrHjdwpA;
typedef struct tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw;
typedef struct tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA;
typedef struct Exception Exception;
typedef struct RootObj RootObj;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
typedef struct TSafePoint TSafePoint;
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
typedef struct tyTuple__xYhUhS7X82rKTqbT9bRfCnw tyTuple__xYhUhS7X82rKTqbT9bRfCnw;
typedef struct tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag;
typedef struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
typedef struct tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ;
typedef struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw tyTuple__QeWl6B6ffS4pU6WWrtcrDw;
typedef struct tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
struct tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q {
NU16 line;
NI16 col;
NI32 fileIndex;
};
typedef NU8 tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w;
struct TGenericSeq {
NI len;
NI reserved;
};
struct NimStringDesc {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw;
struct tyTuple__kN8up2W6YKc5YA9avn5mV5w {
NimStringDesc* Field0;
NI Field1;
NI Field2;
};
typedef NU8 tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg;
typedef NU8 tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA;
typedef NU8 tySet_tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA;
typedef NU8 tyEnum_TBackend__4OBsgZ9cscH2JLUE5Wcz01g;
typedef NU8 tyEnum_TSystemCPU__XYDt7D1G3qcClFyZy1Ky9ag;
typedef NU8 tyEnum_TSystemOS__s7Mlr1t66SUqP6BKJMXLaQ;
struct tyObject_Target__9abOl5DLX8suLujOaHSvGzw {
tyEnum_TSystemCPU__XYDt7D1G3qcClFyZy1Ky9ag targetCPU;
tyEnum_TSystemCPU__XYDt7D1G3qcClFyZy1Ky9ag hostCPU;
tyEnum_TSystemOS__s7Mlr1t66SUqP6BKJMXLaQ targetOS;
tyEnum_TSystemOS__s7Mlr1t66SUqP6BKJMXLaQ hostOS;
NI intSize;
NI floatSize;
NI ptrSize;
NimStringDesc* tnl;
};
typedef NU32 tySet_tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg;
typedef NU64 tySet_tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw;
struct tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA {
tySequence__7lEisrXlQEzwtUKW5pzRCw* data;
NI counter;
};
struct tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A {
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q trackPos;
NIM_BOOL trackPosAttached;
tySet_tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA errorOutputs;
tySequence__tNFrR3kRuS1FSwuiLGoSSA* msgContext;
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q lastError;
tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA filenameToIndexTbl;
tySequence__Zi9cGbCWofbtABoHJ5RbLNQ* fileInfos;
NI32 systemFileIdx;
};
typedef NU8 tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ;
typedef NU8 tyEnum_Command__0zjcIQ623TIRGPdtjLwTFA;
typedef NU8 tyEnum_TGCMode__tkz389aDYNd8ykeZszCuBSw;
typedef NU8 tyEnum_ExceptionSystem__1mkAogyaDAT7g9cQjzsgKLQ;
typedef NU8 tyEnum_SymbolFilesOption__gBES9bqm1ru9ape8SeMRAFgQ;
struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg {
tySequence__4eRCaZmrYLLw2k30GPTiMw* data;
NI counter;
};
typedef NU32 tySet_tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ;
typedef NU8 tySet_tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA;
typedef NU8 tyEnum_IdeCmd__1Ced39bl5eePmZ1PKMPXigQ;
typedef NU8 tyEnum_TSystemCC__1eWBJUonHMOnlBwsOvpFmA;
typedef NU8 tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug[11];
struct tyTuple__47w2DboNEPf69aPgubZdd7Q {
NI Field0;
NI Field1;
NI Field2;
};
typedef NU8 tySet_tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (tyObject_SuggestcolonObjectType___bkMuTTb2G70XfpzAiyNrnQ* result, void* ClE_0);
void* ClE_0;
} tyProc__YD0MR9bJ2x4beJkZdnjXN9cA;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (NimStringDesc* output, void* ClE_0);
void* ClE_0;
} tyProc__k2HFjxisIgDALbEUFojxaQ;
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* msg, tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA severity, void* ClE_0);
void* ClE_0;
} tyProc__oL9coyIA2VDTGdUcur9aL9bew;
struct tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw {
tyEnum_TBackend__4OBsgZ9cscH2JLUE5Wcz01g backend;
tyObject_Target__9abOl5DLX8suLujOaHSvGzw target;
NI linesCompiled;
tySet_tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg options;
tySet_tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw globalOptions;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* macrosToExpand;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* arcToExpand;
tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A m;
tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ filenameOption;
NimStringDesc* unitSep;
NI evalTemplateCounter;
NI evalMacroCounter;
NI8 exitcode;
tyEnum_Command__0zjcIQ623TIRGPdtjLwTFA cmd;
NimStringDesc* cmdInput;
NIM_BOOL projectIsCmd;
NIM_BOOL implicitCmd;
tyEnum_TGCMode__tkz389aDYNd8ykeZszCuBSw selectedGC;
tyEnum_ExceptionSystem__1mkAogyaDAT7g9cQjzsgKLQ exc;
NIM_BOOL hintProcessingDots;
NI verbosity;
NI numberOfProcessors;
NF lastCmdTime;
tyEnum_SymbolFilesOption__gBES9bqm1ru9ape8SeMRAFgQ symbolFiles;
NI spellSuggestMax;
tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg cppDefines;
NimStringDesc* headerFile;
tySet_tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ features;
tySet_tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA legacyFeatures;
NimStringDesc* arguments;
tyEnum_IdeCmd__1Ced39bl5eePmZ1PKMPXigQ ideCmd;
NIM_BOOL oldNewlines;
tyEnum_TSystemCC__1eWBJUonHMOnlBwsOvpFmA cCompiler;
tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug modifiedyNotes;
tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug cmdlineNotes;
tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug foreignPackageNotes;
tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug notes;
tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug warningAsErrors;
tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug mainPackageNotes;
NI mainPackageId;
NI errorCounter;
NI hintCounter;
NI warnCounter;
NI errorMax;
NI maxLoopIterationsVM;
NIM_BOOL isVmTrace;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* configVars;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* symbols;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* packageCache;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* nimblePaths;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* searchPaths;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* lazyPaths;
NimStringDesc* outFile;
NimStringDesc* outDir;
NimStringDesc* jsonBuildFile;
NimStringDesc* prefixDir;
NimStringDesc* libpath;
NimStringDesc* nimcacheDir;
tyTuple__47w2DboNEPf69aPgubZdd7Q nimStdlibVersion;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* dllOverrides;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* moduleOverrides;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* cfileSpecificOptions;
NimStringDesc* projectName;
NimStringDesc* projectPath;
NimStringDesc* projectFull;
NIM_BOOL projectIsStdin;
tySet_tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug lastMsgWasDot;
NI32 projectMainIdx;
NI32 projectMainIdx2;
NimStringDesc* command;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* commandArgs;
NimStringDesc* commandLine;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* extraCmds;
NIM_BOOL keepComments;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* implicitImports;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* implicitIncludes;
NimStringDesc* docSeeSrcUrl;
NimStringDesc* docRoot;
NimStringDesc* docCmd;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* configFiles;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* cIncludes;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* cLibs;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* cLinkedLibs;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* externalToLink;
NimStringDesc* linkOptionsCmd;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* compileOptionsCmd;
NimStringDesc* linkOptions;
NimStringDesc* compileOptions;
NimStringDesc* cCompilerPath;
tySequence__pK3qSsBZwdXd6qyUMkd5Jw* toCompile;
tyProc__YD0MR9bJ2x4beJkZdnjXN9cA suggestionResultHook;
NI suggestVersion;
NI suggestMaxResults;
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q lastLineInfo;
tyProc__k2HFjxisIgDALbEUFojxaQ writelnHook;
tyProc__oL9coyIA2VDTGdUcur9aL9bew structuredErrorHook;
NimStringDesc* cppCustomNamespace;
tyObject_ProfileDatacolonObjectType___rPBBfFL4X0b9cQ6rfMNPXig* vmProfileData;
};
struct tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg {
tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w a;
tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w b;
};
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
struct TNimType {
NI size;
NI align;
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
TNimType* base;
TNimNode* node;
void* finalizer;
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {
tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct tyTuple__z822nu9bFF1AlQnLrHjdwpA {
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q Field0;
NimStringDesc* Field1;
};
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_4) (tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* msg, tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA severity);
typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1];
typedef NimStringDesc* tyArray__24KAM9afIUgUaqBaEBB6r9bg[3];
struct tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw {
NimStringDesc* fullPath;
NimStringDesc* projPath;
NimStringDesc* shortName;
tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* quotedName;
tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* quotedFullName;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* lines;
NimStringDesc* dirtyFile;
NimStringDesc* hash;
NIM_BOOL dirty;
};
typedef NU8 tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw;
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_13) (NimStringDesc* output);
typedef NU8 tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA;
typedef NU8 tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug;
typedef NU16 tySet_tyEnum_Style__NXKayqTLMsAibFwNceBlpA;
typedef NU8 tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug;
typedef NU8 tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg;
typedef NimStringDesc* tyArray__z9cqFgHiS9ahHOXLmNWEBvBg[103];
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_19) (tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* msg, tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA severity);
typedef NimStringDesc* tyArray__yt5VDPNtUGx9cBkOVakHwdQ[6];
struct RootObj {
TNimType* m_type;
};
struct Exception {
  RootObj Sup;
Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
Exception* up;
};
struct TSafePoint {
TSafePoint* prev;
NI status;
jmp_buf context;
};
typedef NU8 tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg;
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {
NI refcount;
TNimType* typ;
};
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {
void* bottom;
};
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {
NI len;
NI cap;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
};
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SPr7N6UKfuF549bNPiUvSRw[256];
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {
tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
};
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {
tyArray__0aOLqZchNi8nWtMTi8ND8w link;
NI key;
NI upperBound;
NI level;
};
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
NI Field1;
};
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {
NI len;
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
};
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {
NI minLargeObj;
NI maxLargeObj;
tyArray__SPr7N6UKfuF549bNPiUvSRw freeSmallChunks;
NU32 flBitmap;
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
NI currMem;
NI maxMem;
NI freeMem;
NI occ;
NI lastSize;
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
NIM_BOOL locked;
NIM_BOOL blockChunkSizeIncrease;
NI nextChunkSize;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
};
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {
NI stackScans;
NI cycleCollections;
NI maxThreshold;
NI maxStackSize;
NI maxStackCells;
NI cycleTableSize;
NI64 maxPause;
};
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {
NI counter;
NI max;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
};
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {
tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
NI cycleThreshold;
NI zctThreshold;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
NI recGcLock;
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
NI gcThreadId;
};
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_24) (NimStringDesc* output);
typedef NimStringDesc* tyArray__sMpvt1sOxOJ3LFGulnbeMQ[4];
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_27) (NimStringDesc* output);
typedef NimStringDesc* tyArray__Re75IspeoxXy2oCZHwcRrA[2];
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_33) (NimStringDesc* output);
typedef NU8 tySet_tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ;
typedef NU8 tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ;
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_34) (NimStringDesc* output);
struct tyTuple__xYhUhS7X82rKTqbT9bRfCnw {
NI Field0;
NimStringDesc* Field1;
NI32 Field2;
};
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA {
  Exception Sup;
};
struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw {
  tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
};
struct tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag {
  tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw Sup;
};
struct tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA {
  RootObj Sup;
tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* left;
tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* right;
NI L;
NimStringDesc* data;
};
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_43) (NimStringDesc* output);
struct tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ {
  tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw Sup;
};
typedef NU8 tyEnum_BinaryPrefixMode__nDtrM19b3byM8T9ab2m7BwvA;
typedef NU8 tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ;
typedef NimStringDesc* tyArray__ucDUDWdKfioXQrN9bCbG29bg[12];
struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw {
NI Field0;
NimStringDesc* Field1;
};
typedef NU8 tySet_tyEnum_CfileFlag__Vl9c9ayddDuXiWtnWTsEYGsA;
struct tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg {
NimStringDesc* nimname;
NimStringDesc* cname;
NimStringDesc* obj;
tySet_tyEnum_CfileFlag__Vl9c9ayddDuXiWtnWTsEYGsA flags;
NimStringDesc* customArgs;
};
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {
NCSTRING procname;
NI line;
NCSTRING filename;
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct tySequence__Zi9cGbCWofbtABoHJ5RbLNQ {
  TGenericSeq Sup;
  tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw data[SEQ_DECL_SIZE];
};
struct tySequence__tNFrR3kRuS1FSwuiLGoSSA {
  TGenericSeq Sup;
  tyTuple__z822nu9bFF1AlQnLrHjdwpA data[SEQ_DECL_SIZE];
};
struct tySequence__7lEisrXlQEzwtUKW5pzRCw {
  TGenericSeq Sup;
  tyTuple__xYhUhS7X82rKTqbT9bRfCnw data[SEQ_DECL_SIZE];
};
struct tySequence__4eRCaZmrYLLw2k30GPTiMw {
  TGenericSeq Sup;
  tyTuple__QeWl6B6ffS4pU6WWrtcrDw data[SEQ_DECL_SIZE];
};
struct tySequence__pK3qSsBZwdXd6qyUMkd5Jw {
  TGenericSeq Sup;
  tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg data[SEQ_DECL_SIZE];
};
struct tySequence__uB9b75OUPRENsBAu4AnoePA {
  TGenericSeq Sup;
  tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];
};
static N_INLINE(NIM_BOOL, contains_msgs_952)(tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg s, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w value);
static N_INLINE(tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg, dotdot__msgs_891)(tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w a, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w b);
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem_systemZmemory_7)(void* a, int v, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, reprEnum)(NI e, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(void, writeContext_msgs_1001)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q lastinfo);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq__msgs_993)(tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q a, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q b);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatVarargs)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, concat_msgs_405)(NimStringDesc** strings, NI stringsLen_0);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem_system_1727)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
static N_INLINE(NimStringDesc*, toFileLineCol_msgs_619)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toMsgFilename_msgs_602)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFilenameOption_msgs_590)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx, tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ opt);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFullPath_msgs_538)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toProjPath_msgs_530)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, canonicalImportAux_options_4640)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* file);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, noslastPathPart)(NimStringDesc* path);
N_LIB_PRIVATE N_NIMCALL(NI, nsuCountString)(NimStringDesc* s, NimStringDesc* sub, NIM_BOOL overlapping);
static N_INLINE(void, addInt_stdZprivateZdigitsutils_189)(NimStringDesc** result, NI x);
N_LIB_PRIVATE N_NIMCALL(void, addInt_stdZprivateZdigitsutils_167)(NimStringDesc** result, NI64 x);
N_LIB_PRIVATE N_NIMCALL(void, flushDot_msgs_17)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf);
N_LIB_PRIVATE N_NIMCALL(void, write_systemZio_205)(FILE* f, NimStringDesc* s);
static N_INLINE(void, writeLine_msgs_432)(FILE* f, NimStringDesc** x, NI xLen_0);
N_LIB_PRIVATE N_NIMCALL(void, flushFile_systemZio_226)(FILE* f);
N_LIB_PRIVATE N_NIMCALL(void, setStyle_pureZterminal_313)(FILE* f, tySet_tyEnum_Style__NXKayqTLMsAibFwNceBlpA style);
N_LIB_PRIVATE N_NIMCALL(void, resetAttributes_pureZterminal_280)(FILE* f);
static N_INLINE(NIM_BOOL, hasWarn_options_555)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug note);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasHint_options_515)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug note);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getMessageStr_msgs_775)(tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, NimStringDesc* arg);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, msgKindToString_msgs_772)(tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w kind);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, ignoreMsgBecauseOfIdeTools_msgs_1066)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg);
N_LIB_PRIVATE N_NIMCALL(void, msgWrite_msgs_749)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getSurroundingSrc_msgs_1106)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, sourceLine_msgs_1101)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q i);
N_LIB_PRIVATE N_NIMCALL(NI, numLines_msgs_1090)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFullPathConsiderDirty_msgs_571)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx);
static N_INLINE(NIM_BOOL, isEmpty_options_4493)(NimStringDesc* x);
N_LIB_PRIVATE N_NIMCALL(FILE*, open_systemZio_430)(NimStringDesc* filename, tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg mode, NI bufSize);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, readLine_systemZio_238)(FILE* f, NimStringDesc** line);
N_LIB_PRIVATE N_NIMCALL(void, addSourceLine_msgs_1082)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx, NimStringDesc* line);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incRef_system_5309)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(NI, pluspercent__system_696)(NI x, NI y);
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell_system_5271)(void* usr);
static N_INLINE(NI, minuspercent__system_716)(NI x, NI y);
static N_INLINE(void, decRef_system_5316)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(NIM_BOOL, ltpercent__system_1005)(NI x, NI y);
static N_INLINE(void, rtlAddZCT_system_5314)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NOINLINE(void, addZCT_system_5265)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(void, popSafePoint)(void);
N_LIB_PRIVATE N_NIMCALL(void, close_systemZio_217)(FILE* f);
N_LIB_PRIVATE N_NIMCALL(void, nimLeaveFinally)(void);
N_LIB_PRIVATE N_NIMCALL(void, reraiseException)(void);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass);
static N_INLINE(Exception*, nimBorrowCurrentException)(void);
static N_INLINE(void, popCurrentException)(void);
static N_INLINE(NimStringDesc*, spaces_pureZstrutils_1029)(NI n);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuRepeatChar)(NIM_CHAR c, NI count);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(void, setForegroundColor_pureZterminal_387)(FILE* f, tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg fg, NIM_BOOL bright);
static N_INLINE(NimStringDesc*, toFileLineCol_msgs_615)(tyTuple__kN8up2W6YKc5YA9avn5mV5w info);
N_LIB_PRIVATE N_NIMCALL(void, handleError_msgs_870)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw eh, NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(void, log_msgs_786)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, open_systemZio_389)(FILE** f, NimStringDesc* filename, tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg mode, NI bufSize);
static N_INLINE(NimStringDesc*, slash__pureZos_121)(NimStringDesc* head, NimStringDesc* tail);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosjoinPath)(NimStringDesc* head, NimStringDesc* tail);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosgetHomeDir)(void);
N_LIB_PRIVATE N_NIMCALL(void, quit_msgs_793)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isDefined_options_2277)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* symbol);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl_systemZassertions_56)(NimStringDesc* msg);
N_LIB_PRIVATE N_NIMCALL(void, quit_system_7174)(NimStringDesc* errormsg, NI errorcode) __attribute__((noreturn));
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, stackTraceAvailable_system_2747)(void);
N_LIB_PRIVATE N_NIMCALL(void, writeStackTrace_system_2161)(void);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, createDocLink_lineinfos_6)(NimStringDesc* urlSuffix);
N_LIB_PRIVATE N_NOINLINE(void, raiseRecoverableError_lineinfos_258)(NimStringDesc* msg);
N_LIB_PRIVATE N_NIMCALL(void, msgWriteln_msgs_647)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* s, tySet_tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ flags);
N_LIB_PRIVATE N_NIMCALL(NI32, fileInfoIdx_msgs_127)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* filename, NIM_BOOL* isKnownFile);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, canonicalizePath_options_4082)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* path);
static N_INLINE(void, shallow_system_7434)(NimStringDesc** s);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
N_LIB_PRIVATE N_NIMCALL(void, forceCopy_strutils50_10)(NimStringDesc** result, NimStringDesc* a);
N_LIB_PRIVATE N_NIMCALL(void, canonicalCase_msgs_67)(NimStringDesc** path);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasKey_msgs_114)(tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA t, NimStringDesc* key);
static N_INLINE(NI, rawGet_lineinfos_448)(tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA t, NimStringDesc* key, NI* hc);
N_LIB_PRIVATE N_NIMCALL(NI, hash_pureZhashes_279)(NimStringDesc* x);
static N_INLINE(NIM_BOOL, isFilled_pureZcollectionsZtables_31)(NI hcode);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(NIM_BOOL, equalMem_system_1735)(void* a, void* b, NI size);
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
static N_INLINE(NI, nextTry_pureZcollectionsZtables_34)(NI h, NI maxHash);
N_LIB_PRIVATE N_NIMCALL(NI32*, X5BX5D__msgs_233)(tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA* t, NimStringDesc* key);
N_LIB_PRIVATE N_NOINLINE(void, raiseKeyError_msgs_300)(NimStringDesc* key) __attribute__((noreturn));
N_LIB_PRIVATE N_NOINLINE(void*, newObj)(TNimType* typ, NI size);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
N_LIB_PRIVATE N_NIMCALL(void, newFileInfo_msgs_59)(NimStringDesc* fullPath, NimStringDesc* projPath, tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw* Result);
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosextractFilename)(NimStringDesc* path);
N_LIB_PRIVATE N_NIMCALL(tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*, makeCString_msgs_50)(NimStringDesc* s);
static N_INLINE(NF, toFloat_system_1702)(NI i);
static N_INLINE(void, toCChar_msgs_47)(NIM_CHAR c, NimStringDesc** result);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuToOctal)(NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(void, add_ropes_159)(tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA** a, tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* b);
N_LIB_PRIVATE N_NIMCALL(tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*, rope_ropes_109)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, relativeTo_pathutils_132)(NimStringDesc* fullPath, NimStringDesc* baseFilename, NIM_CHAR sep);
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(void, X5BX5Deq__lineinfos_387)(tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA* t, NimStringDesc* key, NI32 val);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
N_LIB_PRIVATE N_NOINLINE(void, liMessage_msgs_1118)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, NimStringDesc* arg, tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw eh, tyTuple__kN8up2W6YKc5YA9avn5mV5w info2, NIM_BOOL isRaw);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuEndsWith)(NimStringDesc* s, NimStringDesc* suffix);
static N_INLINE(NIM_BOOL, lteqpercent__system_985)(NI x, NI y);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, formatSize_pureZstrutils_1971)(NI64 bytes, NIM_CHAR decimalSep, tyEnum_BinaryPrefixMode__nDtrM19b3byM8T9ab2m7BwvA prefix, NIM_BOOL includeSpace);
N_LIB_PRIVATE N_NIMCALL(NI, getMaxMem_system_5243)(void);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar__systemZdollars_3)(NI x);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuformatFloat)(NF f, tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ format, NI precision, NIM_CHAR decimalSep);
N_LIB_PRIVATE N_NIMCALL(NF, epochTime_pureZtimes_3599)(void);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar__options_4371)(NimStringDesc* x);
static N_INLINE(NIM_BOOL, isEmpty_options_4047)(NimStringDesc* x);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, absOutFile_options_4036)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf);
extern TNimType NTItmsgkind__29cbg2fC1z5iM1PAI28kR5w_;
static NIM_CONST tyProc__oL9coyIA2VDTGdUcur9aL9bew TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_2 = {NIM_NIL,NIM_NIL};
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_3, "template/generic instantiation from here", 40);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_5, "template/generic instantiation of `$1` from here", 48);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_6, "command line", 12);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_7, "\?\?\?", 3);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_8, "..", 2);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_9, "(", 1);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_10, ", ", 2);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_11, ")", 1);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12, " ", 1);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14, "\012", 1);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_15, "Error: ", 7);
extern NIM_CONST tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q unknownLineInfo_lineinfos_280;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_16, "Warning: ", 9);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_17, "Hint: ", 6);
extern NIM_CONST tyArray__z9cqFgHiS9ahHOXLmNWEBvBg MsgKindToStr_lineinfos_116;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_18, " [$1]", 5);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_20, ".", 1);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_21, "\012  ", 3);
extern TNimType NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_;
extern TNimType NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_25, " compiler msg initiated here", 28);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_26, "MsgOrigin", 9);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_28, "nimsuggest.log", 14);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_29, "nimDebug", 8);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_30, "options.nim(632, 14) `false` ", 29);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_31, "No stack traceback available\012To create a stacktrace, rerun compilation with \'./koch temp $1 <file>\', see $2 for details", 119);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_32, "intern.html#debugging-the-compiler", 34);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_35, "Warnings:", 9);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_36, "  [$1] $2", 9);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_37, "x", 1);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_38, "Hints:", 6);
extern TNimType NTIoserror__BeJgrOdDsczOwEWOZbRfKA_;
extern TNimType NTIrefkeyerror__8SzoIAgLw9ci2v0yafHj9b6Q_;
extern TNimType NTIkeyerror__t7nhKLvXTQS9cS8ByJU9bIag_;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_40, "key not found: ", 15);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_41, "\"", 1);
extern TNimType NTIseqLtfileinfoT__Zi9cGbCWofbtABoHJ5RbLNQ_;
extern TNimType NTItfileinfo__GE3hAakXKOEpch4ap3zXAw_;
N_LIB_PRIVATE NIM_CONST tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q gCmdLineInfo_msgs_404 = {((NU16) 1), ((NI16) 1), ((NI32) -3)}
;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_42, ".nim", 4);
extern TNimType NTIseqLtupleLinfo58tlineinfo_detail58stringTT__tNFrR3kRuS1FSwuiLGoSSA_;
extern TNimType NTIrefesuggestdone__q2mvqo4oBiq6VrjsaIw7rg_;
extern TNimType NTIesuggestdone__cDtWY9cE7zf8BAC5QcEZZkQ_;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_44, "suggest done", 12);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_45, " peakmem", 8);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_46, "gc: $#; ", 8);
extern TNimType NTItgcmode__tkz389aDYNd8ykeZszCuBSw_;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_47, "threads: on; ", 13);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_48, "opt: ", 5);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_49, "speed", 5);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_50, "size", 4);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_51, "none (DEBUG BUILD, `-d:release` generates faster code)", 54);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_52, "danger", 6);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_53, " -d:danger", 10);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_54, "release", 7);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_55, " -d:release", 11);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_56, "; options:", 10);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_57, "unknownOutput", 13);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_58, "build", 5);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_59, "loc", 3);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_60, "sec", 3);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_61, "mem", 3);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_62, "project", 7);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_63, "output", 6);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_65, "/home/runner/work/nightlies/nightlies/nim/compiler/msgs.nim", 59);
static NIM_CONST tyTuple__kN8up2W6YKc5YA9avn5mV5w TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_64 = {((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_65),
((NI) 708),
((NI) 12)}
;
extern TSafePoint* excHandler_system_2565;
extern TSafePoint* excHandler_system_2565;
extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch_system_5218;
extern TSafePoint* excHandler_system_2565;
extern TSafePoint* excHandler_system_2565;
extern Exception* currException_system_2566;
extern Exception* currException_system_2566;
extern Exception* currException_system_2566;
static N_INLINE(NIM_BOOL, contains_msgs_952)(tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg s, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w value) {
	NIM_BOOL result;
	NIM_BOOL T1_;
	result = (NIM_BOOL)0;
	T1_ = (NIM_BOOL)0;
	T1_ = (s.a <= value);
	if (!(T1_)) goto LA2_;
	T1_ = (value <= s.b);
	LA2_: ;
	result = T1_;
	return result;
}
static N_INLINE(void, nimSetMem_systemZmemory_7)(void* a, int v, NI size) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memset(a, v, ((size_t) (size)));
}
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
	nimSetMem_systemZmemory_7(p, ((int) 0), size);
}
static N_INLINE(tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg, dotdot__msgs_891)(tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w a, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w b) {
	tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg result;
	nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg));
	nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg));
	result.a = a;
	result.b = b;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq__msgs_993)(tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q a, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q b) {
	NIM_BOOL result;
	NIM_BOOL T1_;
	result = (NIM_BOOL)0;
	T1_ = (NIM_BOOL)0;
	T1_ = (a.line == b.line);
	if (!(T1_)) goto LA2_;
	T1_ = (a.fileIndex == b.fileIndex);
	LA2_: ;
	result = T1_;
	return result;
}
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memcpy(dest, source, ((size_t) (size)));
}
static N_INLINE(void, copyMem_system_1727)(void* dest, void* source, NI size) {
	nimCopyMem(dest, source, size);
}
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	{
		if (!!((src == ((NimStringDesc*) NIM_NIL)))) goto LA3_;
		copyMem_system_1727(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
		(*dest).Sup.len += (*src).Sup.len;
	}
	LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, concat_msgs_405)(NimStringDesc** strings, NI stringsLen_0) {
	NimStringDesc* result;
	NI totalLen;
	result = (NimStringDesc*)0;
	totalLen = ((NI) 0);
	{
		NimStringDesc** s;
		NI i;
		s = (NimStringDesc**)0;
		i = ((NI) 0);
		{
			while (1) {
				if (!(i < stringsLen_0)) goto LA3;
				s = (&strings[i]);
				totalLen += ((*s) ? (*s)->Sup.len : 0);
				i += ((NI) 1);
			} LA3: ;
		}
	}
	result = rawNewString(((NI) (totalLen)));
	{
		NimStringDesc** s_2;
		NI i_2;
		s_2 = (NimStringDesc**)0;
		i_2 = ((NI) 0);
		{
			while (1) {
				if (!(i_2 < stringsLen_0)) goto LA6;
				s_2 = (&strings[i_2]);
				result = resizeString(result, ((*s_2) ? (*s_2)->Sup.len : 0) + 0);
appendString(result, (*s_2));
				i_2 += ((NI) 1);
			} LA6: ;
		}
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFullPath_msgs_538)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (fileIdx < ((NI32) 0));
		if (T3_) goto LA4_;
		T3_ = (conf == ((tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw*) NIM_NIL));
		LA4_: ;
		if (!T3_) goto LA5_;
		{
			if (!(fileIdx == ((NI32) -3))) goto LA9_;
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_6));
		}
		goto LA7_;
		LA9_: ;
		{
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_7));
		}
		LA7_: ;
	}
	goto LA1_;
	LA5_: ;
	{
		result = copyString((*conf).m.fileInfos->data[fileIdx].fullPath);
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toProjPath_msgs_530)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (fileIdx < ((NI32) 0));
		if (T3_) goto LA4_;
		T3_ = (conf == ((tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw*) NIM_NIL));
		LA4_: ;
		if (!T3_) goto LA5_;
		{
			if (!(fileIdx == ((NI32) -3))) goto LA9_;
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_6));
		}
		goto LA7_;
		LA9_: ;
		{
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_7));
		}
		LA7_: ;
	}
	goto LA1_;
	LA5_: ;
	{
		result = copyString((*conf).m.fileInfos->data[fileIdx].projPath);
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFilenameOption_msgs_590)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx, tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ opt) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	switch (opt) {
	case ((tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ) 0):
	{
		result = toFullPath_msgs_538(conf, fileIdx);
	}
	break;
	case ((tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ) 1):
	{
		result = toProjPath_msgs_530(conf, fileIdx);
	}
	break;
	case ((tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ) 2):
	{
		NimStringDesc* absPath;
		absPath = toFullPath_msgs_538(conf, fileIdx);
		result = canonicalImportAux_options_4640(conf, absPath);
	}
	break;
	case ((tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ) 4):
	{
		NimStringDesc* T5_;
		T5_ = (NimStringDesc*)0;
		T5_ = toProjPath_msgs_530(conf, fileIdx);
		result = noslastPathPart(T5_);
	}
	break;
	case ((tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ) 3):
	{
		NimStringDesc* absPath_2;
		NimStringDesc* relPath;
		absPath_2 = toFullPath_msgs_538(conf, fileIdx);
		relPath = toProjPath_msgs_530(conf, fileIdx);
		{
			NIM_BOOL T9_;
			NI T11_;
			T9_ = (NIM_BOOL)0;
			T9_ = ((absPath_2 ? absPath_2->Sup.len : 0) < (relPath ? relPath->Sup.len : 0));
			if (T9_) goto LA10_;
			T11_ = (NI)0;
			T11_ = nsuCountString(relPath, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_8), NIM_FALSE);
			T9_ = (((NI) 2) < T11_);
			LA10_: ;
			if (!T9_) goto LA12_;
			result = copyString(absPath_2);
		}
		goto LA7_;
		LA12_: ;
		{
			result = copyString(relPath);
		}
		LA7_: ;
	}
	break;
	case ((tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ) 5):
	{
		{
			if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 31))&63U)))!=0)) goto LA18_;
			result = toFilenameOption_msgs_590(conf, fileIdx, ((tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ) 0));
		}
		goto LA16_;
		LA18_: ;
		{
			result = toFilenameOption_msgs_590(conf, fileIdx, ((tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ) 4));
		}
		LA16_: ;
	}
	break;
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toMsgFilename_msgs_602)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = toFilenameOption_msgs_590(conf, fileIdx, (*conf).filenameOption);
	return result;
}
static N_INLINE(void, addInt_stdZprivateZdigitsutils_189)(NimStringDesc** result, NI x) {
	addInt_stdZprivateZdigitsutils_167(result, ((NI64) (x)));
}
static N_INLINE(NimStringDesc*, toFileLineCol_msgs_619)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info) {
	NimStringDesc* result;
	NimStringDesc* T1_;
	result = (NimStringDesc*)0;
	T1_ = (NimStringDesc*)0;
	T1_ = toMsgFilename_msgs_602(conf, info.fileIndex);
	result = resizeString(result, (T1_ ? T1_->Sup.len : 0) + 0);
appendString(result, T1_);
	{
		if (!(((NI) 0) < ((NI) (info.line)))) goto LA4_;
		result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_9));
		addInt_stdZprivateZdigitsutils_189((&result), ((NI) (info.line)));
		{
			if (!(((NI) 0) < (NI)(((NI) (info.col)) + ((NI) 1)))) goto LA8_;
			result = resizeString(result, 2);
appendString(result, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_10));
			addInt_stdZprivateZdigitsutils_189((&result), (NI)(((NI) (info.col)) + ((NI) 1)));
		}
		LA8_: ;
		result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_11));
	}
	LA4_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, flushDot_msgs_17)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf) {
	FILE* stdOrr;
	tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug stdOrrKind;
	{
		if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 24))&63U)))!=0)) goto LA3_;
		stdOrr = stdout;
	}
	goto LA1_;
	LA3_: ;
	{
		stdOrr = stderr;
	}
	LA1_: ;
	{
		if (!(stdOrr == stdout)) goto LA8_;
		stdOrrKind = ((tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug) 0);
	}
	goto LA6_;
	LA8_: ;
	{
		stdOrrKind = ((tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug) 1);
	}
	LA6_: ;
	{
		if (!(((*conf).lastMsgWasDot &((NU8)1<<((NU)(stdOrrKind)&7U)))!=0)) goto LA13_;
		(*conf).lastMsgWasDot &= ~(((NU8)1) << ((stdOrrKind) & 7));
		write_systemZio_205(stdOrr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
	}
	LA13_: ;
}
static N_INLINE(void, writeLine_msgs_432)(FILE* f, NimStringDesc** x, NI xLen_0) {
	{
		NimStringDesc** i;
		NI i_2;
		i = (NimStringDesc**)0;
		i_2 = ((NI) 0);
		{
			while (1) {
				if (!(i_2 < xLen_0)) goto LA3;
				i = (&x[i_2]);
				write_systemZio_205(f, (*i));
				i_2 += ((NI) 1);
			} LA3: ;
		}
	}
	write_systemZio_205(f, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
}
N_LIB_PRIVATE N_NIMCALL(void, writeContext_msgs_1001)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q lastinfo) {
	tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info;
	info = lastinfo;
	{
		NI i;
		NI colontmp_;
		NI T2_;
		NI i_2;
		i = (NI)0;
		colontmp_ = (NI)0;
		T2_ = ((*conf).m.msgContext ? (*conf).m.msgContext->Sup.len : 0);
		colontmp_ = T2_;
		i_2 = ((NI) 0);
		{
			while (1) {
				tyTuple__z822nu9bFF1AlQnLrHjdwpA context;
				if (!(i_2 < colontmp_)) goto LA4;
				i = i_2;
				nimZeroMem((void*)(&context), sizeof(tyTuple__z822nu9bFF1AlQnLrHjdwpA));
				context.Field0 = (*conf).m.msgContext->data[i].Field0;
				context.Field1 = (*conf).m.msgContext->data[i].Field1;
				{
					NIM_BOOL T7_;
					NIM_BOOL T8_;
					NIM_BOOL T10_;
					T7_ = (NIM_BOOL)0;
					T8_ = (NIM_BOOL)0;
					T8_ = eqeq__msgs_993(context.Field0, lastinfo);
					T7_ = !(T8_);
					if (!(T7_)) goto LA9_;
					T10_ = (NIM_BOOL)0;
					T10_ = eqeq__msgs_993(context.Field0, info);
					T7_ = !(T10_);
					LA9_: ;
					if (!T7_) goto LA11_;
					{
						if (!!(((*conf).structuredErrorHook.ClP_0 == TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_2.ClP_0 && (*conf).structuredErrorHook.ClE_0 == TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_2.ClE_0))) goto LA15_;
						(*conf).structuredErrorHook.ClE_0? (*conf).structuredErrorHook.ClP_0(conf, context.Field0, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_3), ((tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA) 0), (*conf).structuredErrorHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_4)((*conf).structuredErrorHook.ClP_0))(conf, context.Field0, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_3), ((tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA) 0));
					}
					goto LA13_;
					LA15_: ;
					{
						NimStringDesc* message;
						{
							if (!((context.Field1 ? context.Field1->Sup.len : 0) == 0)) goto LA20_;
							message = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_3));
						}
						goto LA18_;
						LA20_: ;
						{
							tyArray__nHXaesL0DJZHyVS07ARPRA T23_;
							nimZeroMem((void*)T23_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
							T23_[0] = copyString(context.Field1);
							message = nsuFormatVarargs(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_5), T23_, 1);
						}
						LA18_: ;
						{
							tyArray__24KAM9afIUgUaqBaEBB6r9bg T28_;
							NimStringDesc* T29_;
							if (!!(((*conf).writelnHook.ClP_0 == 0))) goto LA26_;
							nimZeroMem((void*)T28_, sizeof(tyArray__24KAM9afIUgUaqBaEBB6r9bg));
							T28_[0] = toFileLineCol_msgs_619(conf, context.Field0);
							T28_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
							T28_[2] = copyString(message);
							T29_ = (NimStringDesc*)0;
							T29_ = concat_msgs_405(T28_, 3);
							(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(T29_, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_13)((*conf).writelnHook.ClP_0))(T29_);
						}
						goto LA24_;
						LA26_: ;
						{
							if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 24))&63U)))!=0)) goto LA31_;
							{
								tyArray__24KAM9afIUgUaqBaEBB6r9bg T37_;
								if (!(((*conf).m.errorOutputs &((NU8)1<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 0))&7U)))!=0)) goto LA35_;
								flushDot_msgs_17(conf);
								nimZeroMem((void*)T37_, sizeof(tyArray__24KAM9afIUgUaqBaEBB6r9bg));
								T37_[0] = toFileLineCol_msgs_619(conf, context.Field0);
								T37_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
								T37_[2] = copyString(message);
								writeLine_msgs_432(stdout, T37_, 3);
								flushFile_systemZio_226(stdout);
							}
							LA35_: ;
						}
						goto LA24_;
						LA31_: ;
						{
							if (!(((*conf).m.errorOutputs &((NU8)1<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 1))&7U)))!=0)) goto LA39_;
							flushDot_msgs_17(conf);
							{
								NimStringDesc* T45_;
								if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 22))&63U)))!=0)) goto LA43_;
								setStyle_pureZterminal_313(stderr, 1);
								T45_ = (NimStringDesc*)0;
								T45_ = toFileLineCol_msgs_619(conf, context.Field0);
								write_systemZio_205(stderr, T45_);
								write_systemZio_205(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
								resetAttributes_pureZterminal_280(stderr);
								write_systemZio_205(stderr, message);
								resetAttributes_pureZterminal_280(stderr);
								write_systemZio_205(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
							}
							goto LA41_;
							LA43_: ;
							{
								tyArray__24KAM9afIUgUaqBaEBB6r9bg T47_;
								nimZeroMem((void*)T47_, sizeof(tyArray__24KAM9afIUgUaqBaEBB6r9bg));
								T47_[0] = toFileLineCol_msgs_619(conf, context.Field0);
								T47_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
								T47_[2] = copyString(message);
								writeLine_msgs_432(stderr, T47_, 3);
							}
							LA41_: ;
						}
						goto LA24_;
						LA39_: ;
						LA24_: ;
					}
					LA13_: ;
				}
				LA11_: ;
				info = context.Field0;
				i_2 += ((NI) 1);
			} LA4: ;
		}
	}
}
static N_INLINE(NIM_BOOL, hasWarn_options_555)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug note) {
	NIM_BOOL result;
	NIM_BOOL T1_;
	result = (NIM_BOOL)0;
	T1_ = (NIM_BOOL)0;
	T1_ = (((*conf).options &((NU32)1<<((NU)(((tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg) 13))&31U)))!=0);
	if (!(T1_)) goto LA2_;
	T1_ = (((*conf).notes[(NU)((note- 16))>>3] &(1U<<((NU)((note- 16))&7U)))!=0);
	LA2_: ;
	result = T1_;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, msgKindToString_msgs_772)(tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w kind) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = copyString(MsgKindToStr_lineinfos_116[(kind)- 0]);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getMessageStr_msgs_775)(tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, NimStringDesc* arg) {
	NimStringDesc* result;
	NimStringDesc* T1_;
	tyArray__nHXaesL0DJZHyVS07ARPRA T2_;
	result = (NimStringDesc*)0;
	T1_ = (NimStringDesc*)0;
	T1_ = msgKindToString_msgs_772(msg);
	nimZeroMem((void*)T2_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
	T2_[0] = copyString(arg);
	result = nsuFormatOpenArray(T1_, T2_, 1);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, ignoreMsgBecauseOfIdeTools_msgs_1066)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg) {
	NIM_BOOL result;
	NIM_BOOL T1_;
	NIM_BOOL T2_;
	result = (NIM_BOOL)0;
	T1_ = (NIM_BOOL)0;
	T2_ = (NIM_BOOL)0;
	T2_ = (((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 14) <= msg);
	if (!(T2_)) goto LA3_;
	T2_ = ((*conf).cmd == ((tyEnum_Command__0zjcIQ623TIRGPdtjLwTFA) 11));
	LA3_: ;
	T1_ = T2_;
	if (!(T1_)) goto LA4_;
	T1_ = !((((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 29))&63U)))!=0));
	LA4_: ;
	result = T1_;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, msgWrite_msgs_749)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* s) {
	{
		FILE* stdOrr;
		tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug T10_;
		if (!!(((*conf).m.errorOutputs == 0))) goto LA3_;
		{
			if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 24))&63U)))!=0)) goto LA7_;
			stdOrr = stdout;
		}
		goto LA5_;
		LA7_: ;
		{
			stdOrr = stderr;
		}
		LA5_: ;
		write_systemZio_205(stdOrr, s);
		flushFile_systemZio_226(stdOrr);
		T10_ = (tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug)0;
		{
			if (!(stdOrr == stdout)) goto LA13_;
			T10_ = ((tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug) 0);
		}
		goto LA11_;
		LA13_: ;
		{
			T10_ = ((tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug) 1);
		}
		LA11_: ;
		(*conf).lastMsgWasDot |= ((NU8)1)<<((T10_) & 7);
	}
	LA3_: ;
}
static N_INLINE(void, pushSafePoint)(TSafePoint* s) {
	(*s).prev = excHandler_system_2565;
	excHandler_system_2565 = s;
}
static N_INLINE(NIM_BOOL, isEmpty_options_4493)(NimStringDesc* x) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = ((x ? x->Sup.len : 0) == ((NI) 0));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFullPathConsiderDirty_msgs_571)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	{
		if (!(fileIdx < ((NI32) 0))) goto LA3_;
		{
			if (!(fileIdx == ((NI32) -3))) goto LA7_;
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_6));
		}
		goto LA5_;
		LA7_: ;
		{
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_7));
		}
		LA5_: ;
	}
	goto LA1_;
	LA3_: ;
	{
		NIM_BOOL T11_;
		T11_ = (NIM_BOOL)0;
		T11_ = isEmpty_options_4493((*conf).m.fileInfos->data[fileIdx].dirtyFile);
		if (!!(T11_)) goto LA12_;
		result = copyString((*conf).m.fileInfos->data[fileIdx].dirtyFile);
	}
	goto LA1_;
	LA12_: ;
	{
		result = copyString((*conf).m.fileInfos->data[fileIdx].fullPath);
	}
	LA1_: ;
	return result;
}
static N_INLINE(NI, pluspercent__system_696)(NI x, NI y) {
	NI result;
	result = (NI)0;
	result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y))))));
	return result;
}
static N_INLINE(void, incRef_system_5309)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
	(*c).refcount = pluspercent__system_696((*c).refcount, ((NI) 8));
}
static N_INLINE(NI, minuspercent__system_716)(NI x, NI y) {
	NI result;
	result = (NI)0;
	result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y))))));
	return result;
}
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell_system_5271)(void* usr) {
	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result;
	NI T1_;
	result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
	T1_ = (NI)0;
	T1_ = minuspercent__system_716(((NI) (ptrdiff_t) (usr)), ((NI) 16));
	result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_));
	return result;
}
static N_INLINE(NIM_BOOL, ltpercent__system_1005)(NI x, NI y) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y))));
	return result;
}
static N_INLINE(void, rtlAddZCT_system_5314)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
	addZCT_system_5265((&gch_system_5218.zct), c);
}
static N_INLINE(void, decRef_system_5316)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
	(*c).refcount = minuspercent__system_716((*c).refcount, ((NI) 8));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = ltpercent__system_1005((*c).refcount, ((NI) 8));
		if (!T3_) goto LA4_;
		rtlAddZCT_system_5314(c);
	}
	LA4_: ;
}
static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
		if (!!((src == NIM_NIL))) goto LA3_;
		T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
		T5_ = usrToCell_system_5271(src);
		incRef_system_5309(T5_);
	}
	LA3_: ;
	{
		tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
		if (!!(((*dest) == NIM_NIL))) goto LA8_;
		T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
		T10_ = usrToCell_system_5271((*dest));
		decRef_system_5316(T10_);
	}
	LA8_: ;
	(*dest) = src;
}
static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
	T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
	T1_ = usrToCell_system_5271(p);
	decRef_system_5316(T1_);
}
N_LIB_PRIVATE N_NIMCALL(void, addSourceLine_msgs_1082)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx, NimStringDesc* line) {
	NI T1_;
	NimStringDesc* T2_;
	asgnRef((void**) (&(*conf).m.fileInfos->data[fileIdx].lines), (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)((*conf).m.fileInfos->data[fileIdx].lines), (&NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_)));
	T1_ = (*conf).m.fileInfos->data[fileIdx].lines->Sup.len++;
	T2_ = (NimStringDesc*)0;
	T2_ = (*conf).m.fileInfos->data[fileIdx].lines->data[T1_]; (*conf).m.fileInfos->data[fileIdx].lines->data[T1_] = copyStringRC1(line);
	if (T2_) nimGCunrefNoCycle(T2_);
}
static N_INLINE(void, popSafePoint)(void) {
	excHandler_system_2565 = (*excHandler_system_2565).prev;
}
static N_INLINE(Exception*, nimBorrowCurrentException)(void) {
	Exception* result;
	result = (Exception*)0;
	result = currException_system_2566;
	return result;
}
static N_INLINE(void, popCurrentException)(void) {
	asgnRef((void**) (&currException_system_2566), (*currException_system_2566).up);
}
N_LIB_PRIVATE N_NIMCALL(NI, numLines_msgs_1090)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx) {
	NI result;
	NI T1_;
	result = (NI)0;
	T1_ = ((*conf).m.fileInfos->data[fileIdx].lines ? (*conf).m.fileInfos->data[fileIdx].lines->Sup.len : 0);
	result = T1_;
	{
		TSafePoint TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_22;
		NI T14_;
		if (!(result == ((NI) 0))) goto LA4_;
		pushSafePoint(&TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_22);
		TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_22.status = setjmp(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_22.context);
		if (TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_22.status == 0) {
		{
			NimStringDesc* line;
			NimStringDesc* colontmp_;
			FILE* f;
			TSafePoint TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_23;
			NimStringDesc* res;
			line = (NimStringDesc*)0;
			colontmp_ = (NimStringDesc*)0;
			colontmp_ = toFullPathConsiderDirty_msgs_571(conf, fileIdx);
			f = open_systemZio_430(colontmp_, ((tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg) 0), ((NI) 8000));
			pushSafePoint(&TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_23);
			TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_23.status = setjmp(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_23.context);
			if (TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_23.status == 0) {
			res = rawNewString(((NI) 80));
			{
				while (1) {
					NIM_BOOL T9_;
					T9_ = (NIM_BOOL)0;
					T9_ = readLine_systemZio_238(f, (&res));
					if (!T9_) goto LA8;
					line = res;
					addSourceLine_msgs_1082(conf, fileIdx, line);
				} LA8: ;
			}
			popSafePoint();
			}
			else {
				popSafePoint();
			}
			{
				close_systemZio_217(f);
				if (TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_23.status != 0) nimLeaveFinally();
			}
			if (TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_23.status != 0) reraiseException();
		}
		popSafePoint();
		}
		else {
			popSafePoint();
			if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTIioerror__iLZrPn9anoh9ad1MmO0RczFw_))) {
				TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_22.status = 0;
				popCurrentException();
			}
		}
		if (TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_22.status != 0) reraiseException();
		T14_ = ((*conf).m.fileInfos->data[fileIdx].lines ? (*conf).m.fileInfos->data[fileIdx].lines->Sup.len : 0);
		result = T14_;
	}
	LA4_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, sourceLine_msgs_1101)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q i) {
	NimStringDesc* result;
	NI num;
{	result = (NimStringDesc*)0;
	{
		if (!(i.fileIndex < ((NI32) 0))) goto LA3_;
		result = ((NimStringDesc*) NIM_NIL);
		goto BeforeRet_;
	}
	LA3_: ;
	num = numLines_msgs_1090(conf, i.fileIndex);
	{
		if (!(num < ((NI) (i.line)))) goto LA7_;
		result = ((NimStringDesc*) NIM_NIL);
		goto BeforeRet_;
	}
	LA7_: ;
	result = copyString((*conf).m.fileInfos->data[i.fileIndex].lines->data[(NI)(((NI) (i.line)) - ((NI) 1))]);
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NimStringDesc*, spaces_pureZstrutils_1029)(NI n) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = nsuRepeatChar(32, n);
	return result;
}
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c) {
	(*dest).data[(*dest).Sup.len] = c;
	(*dest).data[(NI)((*dest).Sup.len + ((NI) 1))] = 0;
	(*dest).Sup.len += ((NI) 1);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getSurroundingSrc_msgs_1106)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	{
		NIM_BOOL T3_;
		NIM_BOOL T5_;
		NimStringDesc* T8_;
		NimStringDesc* T9_;
		T3_ = (NIM_BOOL)0;
		T3_ = hasHint_options_515(conf, ((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) 92));
		if (!(T3_)) goto LA4_;
		T5_ = (NIM_BOOL)0;
		T5_ = eqeq__msgs_993(info, unknownLineInfo_lineinfos_280);
		T3_ = !(T5_);
		LA4_: ;
		if (!T3_) goto LA6_;
		T8_ = (NimStringDesc*)0;
		T9_ = (NimStringDesc*)0;
		T9_ = sourceLine_msgs_1101(conf, info);
		T8_ = rawNewString((T9_ ? T9_->Sup.len : 0) + 3);
appendString(T8_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_21));
appendString(T8_, T9_);
		result = T8_;
		{
			NimStringDesc* T14_;
			NimStringDesc* T15_;
			if (!(((NI16) 0) <= info.col)) goto LA12_;
			T14_ = (NimStringDesc*)0;
			T15_ = (NimStringDesc*)0;
			T15_ = spaces_pureZstrutils_1029(((NI) (info.col)));
			T14_ = rawNewString((T15_ ? T15_->Sup.len : 0) + 4);
appendString(T14_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_21));
appendString(T14_, T15_);
appendChar(T14_, 94);
			result = resizeString(result, (T14_ ? T14_->Sup.len : 0) + 0);
appendString(result, T14_);
		}
		LA12_: ;
	}
	LA6_: ;
	return result;
}
static N_INLINE(NimStringDesc*, toFileLineCol_msgs_615)(tyTuple__kN8up2W6YKc5YA9avn5mV5w info) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = resizeString(result, (info.Field0 ? info.Field0->Sup.len : 0) + 0);
appendString(result, info.Field0);
	{
		if (!(((NI) 0) < info.Field1)) goto LA3_;
		result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_9));
		addInt_stdZprivateZdigitsutils_189((&result), info.Field1);
		{
			if (!(((NI) 0) < (NI)(info.Field2 + ((NI) 1)))) goto LA7_;
			result = resizeString(result, 2);
appendString(result, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_10));
			addInt_stdZprivateZdigitsutils_189((&result), (NI)(info.Field2 + ((NI) 1)));
		}
		LA7_: ;
		result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_11));
	}
	LA3_: ;
	return result;
}
static N_INLINE(NimStringDesc*, slash__pureZos_121)(NimStringDesc* head, NimStringDesc* tail) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = nosjoinPath(head, tail);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, log_msgs_786)(NimStringDesc* s) {
	FILE* f;
	f = (FILE*)0;
	{
		NimStringDesc* T3_;
		NimStringDesc* T4_;
		NIM_BOOL T5_;
		tyArray__nHXaesL0DJZHyVS07ARPRA T8_;
		T3_ = (NimStringDesc*)0;
		T3_ = nosgetHomeDir();
		T4_ = (NimStringDesc*)0;
		T4_ = slash__pureZos_121(T3_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_28));
		T5_ = (NIM_BOOL)0;
		T5_ = open_systemZio_389(&f, T4_, ((tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg) 4), ((NI) -1));
		if (!T5_) goto LA6_;
		nimZeroMem((void*)T8_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
		T8_[0] = copyString(s);
		writeLine_msgs_432(f, T8_, 1);
		close_systemZio_217(f);
	}
	LA6_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, quit_msgs_793)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg) {
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = isDefined_options_2277(conf, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_29));
		if (!T3_) goto LA4_;
		{
			NIM_BOOL T8_;
			T8_ = (NIM_BOOL)0;
			T8_ = isDefined_options_2277(conf, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_29));
			if (!T8_) goto LA9_;
			{
				NimStringDesc* T15_;
				if (!NIM_TRUE) goto LA13_;
				T15_ = (NimStringDesc*)0;
				T15_ = rawNewString((reprEnum((NI)msg, (&NTItmsgkind__29cbg2fC1z5iM1PAI28kR5w_)) ? reprEnum((NI)msg, (&NTItmsgkind__29cbg2fC1z5iM1PAI28kR5w_))->Sup.len : 0) + 29);
appendString(T15_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_30));
appendString(T15_, reprEnum((NI)msg, (&NTItmsgkind__29cbg2fC1z5iM1PAI28kR5w_)));
				failedAssertImpl_systemZassertions_56(T15_);
			}
			LA13_: ;
		}
		goto LA6_;
		LA9_: ;
		{
			quit_system_7174(reprEnum((NI)msg, (&NTItmsgkind__29cbg2fC1z5iM1PAI28kR5w_)), ((NI) 1));
		}
		LA6_: ;
	}
	goto LA1_;
	LA4_: ;
	{
		NIM_BOOL T18_;
		NIM_BOOL T19_;
		T18_ = (NIM_BOOL)0;
		T19_ = (NIM_BOOL)0;
		T19_ = NIM_FALSE;
		if (T19_) goto LA20_;
		T19_ = (msg == ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 2));
		LA20_: ;
		T18_ = T19_;
		if (T18_) goto LA21_;
		T18_ = hasHint_options_515(conf, ((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) 94));
		LA21_: ;
		if (!T18_) goto LA22_;
		{
			NIM_BOOL T26_;
			T26_ = (NIM_BOOL)0;
			T26_ = stackTraceAvailable_system_2747();
			if (!(T26_)) goto LA27_;
			T26_ = ((*conf).writelnHook.ClP_0 == 0);
			LA27_: ;
			if (!T26_) goto LA28_;
			writeStackTrace_system_2161();
		}
		goto LA24_;
		LA28_: ;
		{
			{
				tyArray__Re75IspeoxXy2oCZHwcRrA T35_;
				tyArray__Re75IspeoxXy2oCZHwcRrA T36_;
				NimStringDesc* T37_;
				if (!!(((*conf).writelnHook.ClP_0 == 0))) goto LA33_;
				nimZeroMem((void*)T35_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
				nimZeroMem((void*)T36_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
				T36_[0] = copyString((*conf).command);
				T36_[1] = createDocLink_lineinfos_6(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_32));
				T35_[0] = nsuFormatOpenArray(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_31), T36_, 2);
				T35_[1] = copyString((*conf).unitSep);
				T37_ = (NimStringDesc*)0;
				T37_ = concat_msgs_405(T35_, 2);
				(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(T37_, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_33)((*conf).writelnHook.ClP_0))(T37_);
			}
			goto LA31_;
			LA33_: ;
			{
				if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 24))&63U)))!=0)) goto LA39_;
				{
					tyArray__Re75IspeoxXy2oCZHwcRrA T45_;
					tyArray__Re75IspeoxXy2oCZHwcRrA T46_;
					if (!(((*conf).m.errorOutputs &((NU8)1<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 0))&7U)))!=0)) goto LA43_;
					flushDot_msgs_17(conf);
					nimZeroMem((void*)T45_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
					nimZeroMem((void*)T46_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
					T46_[0] = copyString((*conf).command);
					T46_[1] = createDocLink_lineinfos_6(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_32));
					T45_[0] = nsuFormatOpenArray(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_31), T46_, 2);
					T45_[1] = copyString((*conf).unitSep);
					writeLine_msgs_432(stdout, T45_, 2);
					flushFile_systemZio_226(stdout);
				}
				LA43_: ;
			}
			goto LA31_;
			LA39_: ;
			{
				if (!(((*conf).m.errorOutputs &((NU8)1<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 1))&7U)))!=0)) goto LA48_;
				flushDot_msgs_17(conf);
				{
					tyArray__Re75IspeoxXy2oCZHwcRrA T54_;
					NimStringDesc* T55_;
					if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 22))&63U)))!=0)) goto LA52_;
					setForegroundColor_pureZterminal_387(stderr, ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 31), NIM_FALSE);
					nimZeroMem((void*)T54_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
					T54_[0] = copyString((*conf).command);
					T54_[1] = createDocLink_lineinfos_6(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_32));
					T55_ = (NimStringDesc*)0;
					T55_ = nsuFormatOpenArray(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_31), T54_, 2);
					write_systemZio_205(stderr, T55_);
					write_systemZio_205(stderr, (*conf).unitSep);
					resetAttributes_pureZterminal_280(stderr);
					write_systemZio_205(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
				}
				goto LA50_;
				LA52_: ;
				{
					tyArray__Re75IspeoxXy2oCZHwcRrA T57_;
					tyArray__Re75IspeoxXy2oCZHwcRrA T58_;
					nimZeroMem((void*)T57_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
					nimZeroMem((void*)T58_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
					T58_[0] = copyString((*conf).command);
					T58_[1] = createDocLink_lineinfos_6(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_32));
					T57_[0] = nsuFormatOpenArray(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_31), T58_, 2);
					T57_[1] = copyString((*conf).unitSep);
					writeLine_msgs_432(stderr, T57_, 2);
				}
				LA50_: ;
			}
			goto LA31_;
			LA48_: ;
			LA31_: ;
		}
		LA24_: ;
	}
	goto LA1_;
	LA22_: ;
	LA1_: ;
	exit(((NI) 1));
}
N_LIB_PRIVATE N_NIMCALL(void, handleError_msgs_870)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw eh, NimStringDesc* s) {
	{
		if (!(msg >= ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 0) && msg <= ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 2))) goto LA3_;
		{
			if (!((*conf).cmd == ((tyEnum_Command__0zjcIQ623TIRGPdtjLwTFA) 11))) goto LA7_;
			log_msgs_786(s);
		}
		LA7_: ;
		quit_msgs_793(conf, msg);
	}
	LA3_: ;
	{
		NIM_BOOL T11_;
		NIM_BOOL T12_;
		NIM_BOOL T15_;
		tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg T16_;
		T11_ = (NIM_BOOL)0;
		T12_ = (NIM_BOOL)0;
		T12_ = (((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 0) <= msg);
		if (!(T12_)) goto LA13_;
		T12_ = (msg <= ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 15));
		LA13_: ;
		T11_ = T12_;
		if (T11_) goto LA14_;
		T15_ = (NIM_BOOL)0;
		T16_ = dotdot__msgs_891(((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 16), ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 102));
		T15_ = contains_msgs_952(T16_, msg);
		if (!(T15_)) goto LA17_;
		T15_ = (((*conf).warningAsErrors[(NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (msg))- 16))>>3] &(1U<<((NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (msg))- 16))&7U)))!=0);
		LA17_: ;
		T11_ = T15_;
		LA14_: ;
		if (!T11_) goto LA18_;
		(*conf).errorCounter += ((NI) 1);
		(*conf).exitcode = ((NI8) 1);
		{
			if (!((*conf).errorMax <= (*conf).errorCounter)) goto LA22_;
			{
				if (!((*conf).ideCmd == ((tyEnum_IdeCmd__1Ced39bl5eePmZ1PKMPXigQ) 0))) goto LA26_;
				quit_msgs_793(conf, msg);
			}
			LA26_: ;
		}
		goto LA20_;
		LA22_: ;
		{
			NIM_BOOL T29_;
			T29_ = (NIM_BOOL)0;
			T29_ = (eh == ((tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw) 1));
			if (!(T29_)) goto LA30_;
			T29_ = !(((*conf).cmd == ((tyEnum_Command__0zjcIQ623TIRGPdtjLwTFA) 11)));
			LA30_: ;
			if (!T29_) goto LA31_;
			quit_msgs_793(conf, msg);
		}
		goto LA20_;
		LA31_: ;
		{
			if (!(eh == ((tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw) 2))) goto LA34_;
			raiseRecoverableError_lineinfos_258(s);
		}
		goto LA20_;
		LA34_: ;
		LA20_: ;
	}
	LA18_: ;
}
N_LIB_PRIVATE N_NOINLINE(void, liMessage_msgs_1118)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, NimStringDesc* arg, tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw eh, tyTuple__kN8up2W6YKc5YA9avn5mV5w info2, NIM_BOOL isRaw) {
	NimStringDesc* title;
	tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg color;
	NIM_BOOL ignoreMsg;
	tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA sev;
	tySet_tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA errorOutputsOld;
	NimStringDesc* kind;
	NimStringDesc* s;
	title = (NimStringDesc*)0;
	color = (tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg)0;
	ignoreMsg = NIM_FALSE;
	sev = (tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA)0;
	errorOutputsOld = (*conf).m.errorOutputs;
	{
		if (!(msg >= ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 0) && msg <= ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 2))) goto LA3_;
		(*conf).m.errorOutputs = 3;
	}
	LA3_: ;
	{
		NIM_BOOL T7_;
		tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg T8_;
		T7_ = (NIM_BOOL)0;
		T8_ = dotdot__msgs_891(((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 16), ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 102));
		T7_ = contains_msgs_952(T8_, msg);
		if (!(T7_)) goto LA9_;
		T7_ = !((msg == ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 99)));
		LA9_: ;
		if (!T7_) goto LA10_;
		kind = reprEnum((NI)msg, (&NTItmsgkind__29cbg2fC1z5iM1PAI28kR5w_));
	}
	goto LA5_;
	LA10_: ;
	{
		kind = ((NimStringDesc*) NIM_NIL);
	}
	LA5_: ;
	switch (msg) {
	case ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 0) ... ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 15):
	{
		sev = ((tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA) 2);
		writeContext_msgs_1001(conf, info);
		title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_15));
		color = ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 31);
		{
			NIM_BOOL T16_;
			T16_ = (NIM_BOOL)0;
			T16_ = eqeq__msgs_993(info, unknownLineInfo_lineinfos_280);
			if (!!(T16_)) goto LA17_;
			(*conf).m.lastError = info;
		}
		LA17_: ;
	}
	break;
	case ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 16) ... ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 67):
	{
		NIM_BOOL T20_;
		sev = ((tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA) 1);
		T20_ = (NIM_BOOL)0;
		T20_ = hasWarn_options_555(conf, ((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (msg)));
		ignoreMsg = !(T20_);
		{
			if (!(((*conf).warningAsErrors[(NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (msg))- 16))>>3] &(1U<<((NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (msg))- 16))&7U)))!=0)) goto LA23_;
			ignoreMsg = NIM_FALSE;
			title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_15));
		}
		goto LA21_;
		LA23_: ;
		{
			title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_16));
		}
		LA21_: ;
		{
			if (!!(ignoreMsg)) goto LA28_;
			writeContext_msgs_1001(conf, info);
		}
		LA28_: ;
		color = ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 33);
		(*conf).warnCounter += ((NI) 1);
	}
	break;
	case ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 68) ... ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 102):
	{
		NIM_BOOL T31_;
		sev = ((tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA) 0);
		T31_ = (NIM_BOOL)0;
		T31_ = hasHint_options_515(conf, ((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (msg)));
		ignoreMsg = !(T31_);
		{
			if (!(((*conf).warningAsErrors[(NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (msg))- 16))>>3] &(1U<<((NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (msg))- 16))&7U)))!=0)) goto LA34_;
			ignoreMsg = NIM_FALSE;
			title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_15));
		}
		goto LA32_;
		LA34_: ;
		{
			title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_17));
		}
		LA32_: ;
		color = ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 32);
		(*conf).hintCounter += ((NI) 1);
	}
	break;
	}
	{
		if (!isRaw) goto LA39_;
		s = arg;
	}
	goto LA37_;
	LA39_: ;
	{
		s = getMessageStr_msgs_775(msg, arg);
	}
	LA37_: ;
	{
		NimStringDesc* loc;
		NimStringDesc* kindmsg;
		if (!!(ignoreMsg)) goto LA44_;
		{
			NIM_BOOL T48_;
			NimStringDesc* T51_;
			NimStringDesc* T52_;
			T48_ = (NIM_BOOL)0;
			T48_ = eqeq__msgs_993(info, unknownLineInfo_lineinfos_280);
			if (!!(T48_)) goto LA49_;
			T51_ = (NimStringDesc*)0;
			T52_ = (NimStringDesc*)0;
			T52_ = toFileLineCol_msgs_619(conf, info);
			T51_ = rawNewString((T52_ ? T52_->Sup.len : 0) + 1);
appendString(T51_, T52_);
appendString(T51_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
			loc = T51_;
		}
		goto LA46_;
		LA49_: ;
		{
			loc = ((NimStringDesc*) NIM_NIL);
		}
		LA46_: ;
		{
			if (!(((NI) 0) < (kind ? kind->Sup.len : 0))) goto LA56_;
			kindmsg = nsuFormatSingleElem(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_18), kind);
		}
		goto LA54_;
		LA56_: ;
		{
			kindmsg = ((NimStringDesc*) NIM_NIL);
		}
		LA54_: ;
		{
			NimStringDesc* T63_;
			if (!!(((*conf).structuredErrorHook.ClP_0 == TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_2.ClP_0 && (*conf).structuredErrorHook.ClE_0 == TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_2.ClE_0))) goto LA61_;
			T63_ = (NimStringDesc*)0;
			T63_ = rawNewString((s ? s->Sup.len : 0) + (kindmsg ? kindmsg->Sup.len : 0) + 0);
appendString(T63_, s);
appendString(T63_, kindmsg);
			(*conf).structuredErrorHook.ClE_0? (*conf).structuredErrorHook.ClP_0(conf, info, T63_, sev, (*conf).structuredErrorHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_19)((*conf).structuredErrorHook.ClP_0))(conf, info, T63_, sev);
		}
		LA61_: ;
		{
			NIM_BOOL T66_;
			T66_ = (NIM_BOOL)0;
			T66_ = ignoreMsgBecauseOfIdeTools_msgs_1066(conf, msg);
			if (!!(T66_)) goto LA67_;
			{
				NIM_BOOL T71_;
				T71_ = (NIM_BOOL)0;
				T71_ = (msg == ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 79));
				if (!(T71_)) goto LA72_;
				T71_ = (*conf).hintProcessingDots;
				LA72_: ;
				if (!T71_) goto LA73_;
				msgWrite_msgs_749(conf, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_20));
			}
			goto LA69_;
			LA73_: ;
			{
				{
					tyArray__yt5VDPNtUGx9cBkOVakHwdQ T80_;
					NimStringDesc* T81_;
					if (!!(((*conf).writelnHook.ClP_0 == 0))) goto LA78_;
					nimZeroMem((void*)T80_, sizeof(tyArray__yt5VDPNtUGx9cBkOVakHwdQ));
					T80_[0] = copyString(loc);
					T80_[1] = copyString(title);
					T80_[2] = copyString(s);
					T80_[3] = copyString(kindmsg);
					T80_[4] = getSurroundingSrc_msgs_1106(conf, info);
					T80_[5] = copyString((*conf).unitSep);
					T81_ = (NimStringDesc*)0;
					T81_ = concat_msgs_405(T80_, 6);
					(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(T81_, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_24)((*conf).writelnHook.ClP_0))(T81_);
				}
				goto LA76_;
				LA78_: ;
				{
					if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 24))&63U)))!=0)) goto LA83_;
					{
						tyArray__yt5VDPNtUGx9cBkOVakHwdQ T89_;
						if (!(((*conf).m.errorOutputs &((NU8)1<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 0))&7U)))!=0)) goto LA87_;
						flushDot_msgs_17(conf);
						nimZeroMem((void*)T89_, sizeof(tyArray__yt5VDPNtUGx9cBkOVakHwdQ));
						T89_[0] = copyString(loc);
						T89_[1] = copyString(title);
						T89_[2] = copyString(s);
						T89_[3] = copyString(kindmsg);
						T89_[4] = getSurroundingSrc_msgs_1106(conf, info);
						T89_[5] = copyString((*conf).unitSep);
						writeLine_msgs_432(stdout, T89_, 6);
						flushFile_systemZio_226(stdout);
					}
					LA87_: ;
				}
				goto LA76_;
				LA83_: ;
				{
					if (!(((*conf).m.errorOutputs &((NU8)1<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 1))&7U)))!=0)) goto LA91_;
					flushDot_msgs_17(conf);
					{
						NimStringDesc* T97_;
						if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 22))&63U)))!=0)) goto LA95_;
						setStyle_pureZterminal_313(stderr, 1);
						write_systemZio_205(stderr, loc);
						resetAttributes_pureZterminal_280(stderr);
						setForegroundColor_pureZterminal_387(stderr, color, NIM_FALSE);
						write_systemZio_205(stderr, title);
						resetAttributes_pureZterminal_280(stderr);
						write_systemZio_205(stderr, s);
						setForegroundColor_pureZterminal_387(stderr, ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 36), NIM_FALSE);
						write_systemZio_205(stderr, kindmsg);
						resetAttributes_pureZterminal_280(stderr);
						T97_ = (NimStringDesc*)0;
						T97_ = getSurroundingSrc_msgs_1106(conf, info);
						write_systemZio_205(stderr, T97_);
						write_systemZio_205(stderr, (*conf).unitSep);
						resetAttributes_pureZterminal_280(stderr);
						write_systemZio_205(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
					}
					goto LA93_;
					LA95_: ;
					{
						tyArray__yt5VDPNtUGx9cBkOVakHwdQ T99_;
						nimZeroMem((void*)T99_, sizeof(tyArray__yt5VDPNtUGx9cBkOVakHwdQ));
						T99_[0] = copyString(loc);
						T99_[1] = copyString(title);
						T99_[2] = copyString(s);
						T99_[3] = copyString(kindmsg);
						T99_[4] = getSurroundingSrc_msgs_1106(conf, info);
						T99_[5] = copyString((*conf).unitSep);
						writeLine_msgs_432(stderr, T99_, 6);
					}
					LA93_: ;
				}
				goto LA76_;
				LA91_: ;
				LA76_: ;
				{
					if (!(((*conf).mainPackageNotes[(NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) 101)- 16))>>3] &(1U<<((NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) 101)- 16))&7U)))!=0)) goto LA102_;
					{
						tyArray__sMpvt1sOxOJ3LFGulnbeMQ T108_;
						NimStringDesc* T109_;
						if (!!(((*conf).writelnHook.ClP_0 == 0))) goto LA106_;
						nimZeroMem((void*)T108_, sizeof(tyArray__sMpvt1sOxOJ3LFGulnbeMQ));
						T108_[0] = toFileLineCol_msgs_615(info2);
						T108_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_25));
						T108_[2] = nsuFormatSingleElem(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_18), ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_26));
						T108_[3] = copyString((*conf).unitSep);
						T109_ = (NimStringDesc*)0;
						T109_ = concat_msgs_405(T108_, 4);
						(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(T109_, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_27)((*conf).writelnHook.ClP_0))(T109_);
					}
					goto LA104_;
					LA106_: ;
					{
						if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 24))&63U)))!=0)) goto LA111_;
						{
							tyArray__sMpvt1sOxOJ3LFGulnbeMQ T117_;
							if (!(((*conf).m.errorOutputs &((NU8)1<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 0))&7U)))!=0)) goto LA115_;
							flushDot_msgs_17(conf);
							nimZeroMem((void*)T117_, sizeof(tyArray__sMpvt1sOxOJ3LFGulnbeMQ));
							T117_[0] = toFileLineCol_msgs_615(info2);
							T117_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_25));
							T117_[2] = nsuFormatSingleElem(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_18), ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_26));
							T117_[3] = copyString((*conf).unitSep);
							writeLine_msgs_432(stdout, T117_, 4);
							flushFile_systemZio_226(stdout);
						}
						LA115_: ;
					}
					goto LA104_;
					LA111_: ;
					{
						if (!(((*conf).m.errorOutputs &((NU8)1<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 1))&7U)))!=0)) goto LA119_;
						flushDot_msgs_17(conf);
						{
							NimStringDesc* T125_;
							NimStringDesc* T126_;
							if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 22))&63U)))!=0)) goto LA123_;
							setStyle_pureZterminal_313(stderr, 1);
							T125_ = (NimStringDesc*)0;
							T125_ = toFileLineCol_msgs_615(info2);
							write_systemZio_205(stderr, T125_);
							resetAttributes_pureZterminal_280(stderr);
							write_systemZio_205(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_25));
							setForegroundColor_pureZterminal_387(stderr, ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 36), NIM_FALSE);
							T126_ = (NimStringDesc*)0;
							T126_ = nsuFormatSingleElem(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_18), ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_26));
							write_systemZio_205(stderr, T126_);
							resetAttributes_pureZterminal_280(stderr);
							write_systemZio_205(stderr, (*conf).unitSep);
							resetAttributes_pureZterminal_280(stderr);
							write_systemZio_205(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
						}
						goto LA121_;
						LA123_: ;
						{
							tyArray__sMpvt1sOxOJ3LFGulnbeMQ T128_;
							nimZeroMem((void*)T128_, sizeof(tyArray__sMpvt1sOxOJ3LFGulnbeMQ));
							T128_[0] = toFileLineCol_msgs_615(info2);
							T128_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_25));
							T128_[2] = nsuFormatSingleElem(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_18), ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_26));
							T128_[3] = copyString((*conf).unitSep);
							writeLine_msgs_432(stderr, T128_, 4);
						}
						LA121_: ;
					}
					goto LA104_;
					LA119_: ;
					LA104_: ;
				}
				LA102_: ;
			}
			LA69_: ;
		}
		LA67_: ;
	}
	LA44_: ;
	handleError_msgs_870(conf, msg, eh, s);
	{
		if (!(msg >= ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 0) && msg <= ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 2))) goto LA131_;
		(*conf).m.errorOutputs = errorOutputsOld;
	}
	LA131_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, msgWriteln_msgs_647)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* s, tySet_tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ flags) {
	NimStringDesc* sep;
	{
		if (!!(((flags &((NU8)1<<((NU)(((tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ) 2))&7U)))!=0))) goto LA3_;
		sep = (*conf).unitSep;
	}
	goto LA1_;
	LA3_: ;
	{
		sep = ((NimStringDesc*) NIM_NIL);
	}
	LA1_: ;
	{
		NIM_BOOL T8_;
		NimStringDesc* T12_;
		T8_ = (NIM_BOOL)0;
		T8_ = !(((*conf).writelnHook.ClP_0 == 0));
		if (!(T8_)) goto LA9_;
		T8_ = !(((flags &((NU8)1<<((NU)(((tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ) 1))&7U)))!=0));
		LA9_: ;
		if (!T8_) goto LA10_;
		T12_ = (NimStringDesc*)0;
		T12_ = rawNewString((s ? s->Sup.len : 0) + (sep ? sep->Sup.len : 0) + 0);
appendString(T12_, s);
appendString(T12_, sep);
		(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(T12_, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_34)((*conf).writelnHook.ClP_0))(T12_);
	}
	goto LA6_;
	LA10_: ;
	{
		NIM_BOOL T14_;
		T14_ = (NIM_BOOL)0;
		T14_ = (((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 24))&63U)))!=0);
		if (T14_) goto LA15_;
		T14_ = ((flags &((NU8)1<<((NU)(((tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ) 0))&7U)))!=0);
		LA15_: ;
		if (!T14_) goto LA16_;
		{
			tyArray__nHXaesL0DJZHyVS07ARPRA T22_;
			if (!(((*conf).m.errorOutputs &((NU8)1<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 0))&7U)))!=0)) goto LA20_;
			flushDot_msgs_17(conf);
			write_systemZio_205(stdout, s);
			nimZeroMem((void*)T22_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
			T22_[0] = copyString(sep);
			writeLine_msgs_432(stdout, T22_, 1);
			flushFile_systemZio_226(stdout);
		}
		LA20_: ;
	}
	goto LA6_;
	LA16_: ;
	{
		{
			tyArray__nHXaesL0DJZHyVS07ARPRA T28_;
			if (!(((*conf).m.errorOutputs &((NU8)1<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 1))&7U)))!=0)) goto LA26_;
			flushDot_msgs_17(conf);
			write_systemZio_205(stderr, s);
			nimZeroMem((void*)T28_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
			T28_[0] = copyString(sep);
			writeLine_msgs_432(stderr, T28_, 1);
		}
		LA26_: ;
	}
	LA6_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, listWarnings_msgs_1476)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf) {
	msgWriteln_msgs_647(conf, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_35), 4);
	{
		tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w aX60gensym129_;
		NI res;
		aX60gensym129_ = (tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w)0;
		res = ((NI) 16);
		{
			while (1) {
				tyArray__Re75IspeoxXy2oCZHwcRrA T4_;
				NimStringDesc* T10_;
				if (!(res <= ((NI) 67))) goto LA3;
				aX60gensym129_ = ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) (res));
				nimZeroMem((void*)T4_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
				{
					if (!(((*conf).notes[(NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (aX60gensym129_))- 16))>>3] &(1U<<((NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (aX60gensym129_))- 16))&7U)))!=0)) goto LA7_;
					T4_[0] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_37));
				}
				goto LA5_;
				LA7_: ;
				{
					T4_[0] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
				}
				LA5_: ;
				T4_[1] = reprEnum((NI)aX60gensym129_, (&NTItmsgkind__29cbg2fC1z5iM1PAI28kR5w_));
				T10_ = (NimStringDesc*)0;
				T10_ = nsuFormatOpenArray(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_36), T4_, 2);
				msgWriteln_msgs_647(conf, T10_, 4);
				res += ((NI) 1);
			} LA3: ;
		}
	}
}
N_LIB_PRIVATE N_NIMCALL(void, listHints_msgs_1497)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf) {
	msgWriteln_msgs_647(conf, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_38), 4);
	{
		tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w aX60gensym131_;
		NI res;
		aX60gensym131_ = (tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w)0;
		res = ((NI) 68);
		{
			while (1) {
				tyArray__Re75IspeoxXy2oCZHwcRrA T4_;
				NimStringDesc* T10_;
				if (!(res <= ((NI) 102))) goto LA3;
				aX60gensym131_ = ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) (res));
				nimZeroMem((void*)T4_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
				{
					if (!(((*conf).notes[(NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (aX60gensym131_))- 16))>>3] &(1U<<((NU)((((tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug) (aX60gensym131_))- 16))&7U)))!=0)) goto LA7_;
					T4_[0] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_37));
				}
				goto LA5_;
				LA7_: ;
				{
					T4_[0] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
				}
				LA5_: ;
				T4_[1] = reprEnum((NI)aX60gensym131_, (&NTItmsgkind__29cbg2fC1z5iM1PAI28kR5w_));
				T10_ = (NimStringDesc*)0;
				T10_ = nsuFormatOpenArray(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_36), T4_, 2);
				msgWriteln_msgs_647(conf, T10_, 4);
				res += ((NI) 1);
			} LA3: ;
		}
	}
}
N_LIB_PRIVATE N_NIMCALL(void, msgQuit_msgs_442)(NI8 x) {
	exit(((NI) (x)));
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q, newLineInfo_msgs_381)(NI32 fileInfoIdx, NI line, NI col) {
	tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q result;
	nimZeroMem((void*)(&result), sizeof(tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q));
	result.fileIndex = fileInfoIdx;
	{
		if (!(line < ((NI) 65535))) goto LA3_;
		result.line = ((NU16) (line));
	}
	goto LA1_;
	LA3_: ;
	{
		result.line = ((NU16) 65535);
	}
	LA1_: ;
	{
		if (!(col < ((NI) 32767))) goto LA8_;
		result.col = ((NI16) (col));
	}
	goto LA6_;
	LA8_: ;
	{
		result.col = ((NI16) -1);
	}
	LA6_: ;
	return result;
}
static N_INLINE(void, shallow_system_7434)(NimStringDesc** s) {
	TGenericSeq* s_2;
	s_2 = ((TGenericSeq*) ((*s)));
	{
		NimStringDesc* T5_;
		if (!(s_2 == ((TGenericSeq*) NIM_NIL))) goto LA3_;
		T5_ = (NimStringDesc*)0;
		T5_ = mnewString(((NI) 0));
		s_2 = ((TGenericSeq*) (T5_));
	}
	LA3_: ;
	{
		if (!((NI)((*s_2).reserved & ((NI) IL64(4611686018427387904))) == ((NI) 0))) goto LA8_;
		(*s_2).reserved = (NI)((*s_2).reserved | ((NI) (IL64(-9223372036854775807) - IL64(1))));
	}
	LA8_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, canonicalCase_msgs_67)(NimStringDesc** path) {
}
static N_INLINE(NIM_BOOL, isFilled_pureZcollectionsZtables_31)(NI hcode) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = !((hcode == ((NI) 0)));
	return result;
}
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) {
	int result;
	result = (int)0;
	result = memcmp(a, b, ((size_t) (size)));
	return result;
}
static N_INLINE(NIM_BOOL, equalMem_system_1735)(void* a, void* b, NI size) {
	NIM_BOOL result;
	int T1_;
	result = (NIM_BOOL)0;
	T1_ = (int)0;
	T1_ = nimCmpMem(a, b, size);
	result = (T1_ == ((NI32) 0));
	return result;
}
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	NI alen;
	NI blen;
{	result = (NIM_BOOL)0;
	alen = (a ? a->Sup.len : 0);
	blen = (b ? b->Sup.len : 0);
	{
		if (!(alen == blen)) goto LA3_;
		{
			if (!(alen == ((NI) 0))) goto LA7_;
			result = NIM_TRUE;
			goto BeforeRet_;
		}
		LA7_: ;
		result = equalMem_system_1735(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen)));
		goto BeforeRet_;
	}
	LA3_: ;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NI, nextTry_pureZcollectionsZtables_34)(NI h, NI maxHash) {
	NI result;
	result = (NI)0;
	result = (NI)((NI)(h + ((NI) 1)) & maxHash);
	return result;
}
static N_INLINE(NI, rawGet_lineinfos_448)(tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA t, NimStringDesc* key, NI* hc) {
	NI result;
	NI h;
	NI T10_;
{	result = (NI)0;
	(*hc) = hash_pureZhashes_279(key);
	{
		if (!((*hc) == ((NI) 0))) goto LA3_;
		(*hc) = ((NI) 314159265);
	}
	LA3_: ;
	{
		NI T7_;
		T7_ = (t.data ? t.data->Sup.len : 0);
		if (!(T7_ == ((NI) 0))) goto LA8_;
		result = ((NI) -1);
		goto BeforeRet_;
	}
	LA8_: ;
	T10_ = ((t.data ? t.data->Sup.len : 0)-1);
	h = (NI)((*hc) & T10_);
	{
		while (1) {
			NIM_BOOL T13_;
			NI T20_;
			T13_ = (NIM_BOOL)0;
			T13_ = isFilled_pureZcollectionsZtables_31(t.data->data[h].Field0);
			if (!T13_) goto LA12;
			{
				NIM_BOOL T16_;
				T16_ = (NIM_BOOL)0;
				T16_ = (t.data->data[h].Field0 == (*hc));
				if (!(T16_)) goto LA17_;
				T16_ = eqStrings(t.data->data[h].Field1, key);
				LA17_: ;
				if (!T16_) goto LA18_;
				result = h;
				goto BeforeRet_;
			}
			LA18_: ;
			T20_ = ((t.data ? t.data->Sup.len : 0)-1);
			h = nextTry_pureZcollectionsZtables_34(h, T20_);
		} LA12: ;
	}
	result = (NI)(((NI) -1) - h);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasKey_msgs_114)(tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA t, NimStringDesc* key) {
	NIM_BOOL result;
	NI hc;
	NI T1_;
	result = (NIM_BOOL)0;
	hc = (NI)0;
	T1_ = (NI)0;
	T1_ = rawGet_lineinfos_448(t, key, (&hc));
	result = (((NI) 0) <= T1_);
	return result;
}
N_LIB_PRIVATE N_NOINLINE(void, raiseKeyError_msgs_300)(NimStringDesc* key) {
	tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag* T1_;
	NimStringDesc* T2_;
	T1_ = (tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag*)0;
	T1_ = (tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag*) newObj((&NTIrefkeyerror__8SzoIAgLw9ci2v0yafHj9b6Q_), sizeof(tyObject_KeyError__t7nhKLvXTQS9cS8ByJU9bIag));
	(*T1_).Sup.Sup.Sup.Sup.m_type = (&NTIkeyerror__t7nhKLvXTQS9cS8ByJU9bIag_);
	(*T1_).Sup.Sup.Sup.name = "KeyError";
	T2_ = (NimStringDesc*)0;
	T2_ = rawNewString((key ? key->Sup.len : 0) + 15);
appendString(T2_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_40));
appendString(T2_, key);
	asgnRef((void**) (&(*T1_).Sup.Sup.Sup.message), T2_);
	asgnRef((void**) (&(*T1_).Sup.Sup.Sup.parent), ((Exception*) NIM_NIL));
	raiseExceptionEx((Exception*)T1_, "KeyError", "raiseKeyError", "tables.nim", 234);
}
N_LIB_PRIVATE N_NIMCALL(NI32*, X5BX5D__msgs_233)(tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA* t, NimStringDesc* key) {
	NI32* result;
	NI hcX60gensym22_;
	NI indexX60gensym22_;
	result = (NI32*)0;
	hcX60gensym22_ = (NI)0;
	indexX60gensym22_ = rawGet_lineinfos_448((*t), key, (&hcX60gensym22_));
	{
		if (!(((NI) 0) <= indexX60gensym22_)) goto LA3_;
		result = (&(*t).data->data[indexX60gensym22_].Field2);
	}
	goto LA1_;
	LA3_: ;
	{
		raiseKeyError_msgs_300(key);
	}
	LA1_: ;
	return result;
}
static N_INLINE(NF, toFloat_system_1702)(NI i) {
	NF result;
	result = (NF)0;
	result = ((NF) (i));
	return result;
}
static N_INLINE(void, toCChar_msgs_47)(NIM_CHAR c, NimStringDesc** result) {
	switch (((NU8)(c))) {
	case 0 ... 31:
	case 127 ... 255:
	{
		NimStringDesc* T2_;
		unsureAsgnRef((void**) (&(*result)), addChar((*result), 92));
		T2_ = (NimStringDesc*)0;
		T2_ = nsuToOctal(c);
		unsureAsgnRef((void**) (&(*result)), resizeString((*result), (T2_ ? T2_->Sup.len : 0) + 0));
appendString((*result), T2_);
	}
	break;
	case 39:
	case 34:
	case 92:
	case 63:
	{
		unsureAsgnRef((void**) (&(*result)), addChar((*result), 92));
		unsureAsgnRef((void**) (&(*result)), addChar((*result), c));
	}
	break;
	default:
	{
		unsureAsgnRef((void**) (&(*result)), addChar((*result), c));
	}
	break;
	}
}
N_LIB_PRIVATE N_NIMCALL(tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*, makeCString_msgs_50)(NimStringDesc* s) {
	tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* result;
	NimStringDesc* res;
	NF T1_;
	tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* T5_;
	result = (tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*)0;
	result = ((tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*) NIM_NIL);
	T1_ = (NF)0;
	T1_ = toFloat_system_1702((s ? s->Sup.len : 0));
	res = rawNewString(((NI) ((NI)(((NI) (((NF)(T1_) * (NF)(1.1)))) + ((NI) 1)))));
	res = resizeString(res, 1);
appendString(res, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_41));
	{
		NI i;
		NI colontmp_;
		NI i_2;
		i = (NI)0;
		colontmp_ = (NI)0;
		colontmp_ = (s ? s->Sup.len : 0);
		i_2 = ((NI) 0);
		{
			while (1) {
				if (!(i_2 < colontmp_)) goto LA4;
				i = i_2;
				toCChar_msgs_47(s->data[i], (&res));
				i_2 += ((NI) 1);
			} LA4: ;
		}
	}
	res = addChar(res, 34);
	T5_ = (tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*)0;
	T5_ = rope_ropes_109(res);
	add_ropes_159(&result, T5_);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, newFileInfo_msgs_59)(NimStringDesc* fullPath, NimStringDesc* projPath, tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw* Result) {
	unsureAsgnRef((void**)&(*Result).fullPath, NIM_NIL);
	unsureAsgnRef((void**)&(*Result).projPath, NIM_NIL);
	unsureAsgnRef((void**)&(*Result).shortName, NIM_NIL);
	unsureAsgnRef((void**)&(*Result).quotedName, NIM_NIL);
	unsureAsgnRef((void**)&(*Result).quotedFullName, NIM_NIL);
	unsureAsgnRef((void**)&(*Result).lines, NIM_NIL);
	unsureAsgnRef((void**)&(*Result).dirtyFile, NIM_NIL);
	unsureAsgnRef((void**)&(*Result).hash, NIM_NIL);
	(*Result).dirty = 0;
	unsureAsgnRef((void**) (&(*Result).fullPath), copyString(fullPath));
	unsureAsgnRef((void**) (&(*Result).projPath), copyString(projPath));
	unsureAsgnRef((void**) (&(*Result).shortName), nosextractFilename(fullPath));
	unsureAsgnRef((void**) (&(*Result).quotedName), makeCString_msgs_50((*Result).shortName));
	unsureAsgnRef((void**) (&(*Result).quotedFullName), makeCString_msgs_50(fullPath));
	unsureAsgnRef((void**) (&(*Result).lines), NIM_NIL);
}
N_LIB_PRIVATE N_NIMCALL(NI32, fileInfoIdx_msgs_127)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* filename, NIM_BOOL* isKnownFile) {
	NI32 result;
	NimStringDesc* volatile canon;
	NIM_BOOL pseudoPath;
	TSafePoint TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_39;
	NimStringDesc* canon2;
	result = (NI32)0;
	canon = (NimStringDesc*)0;
	pseudoPath = NIM_FALSE;
	pushSafePoint(&TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_39);
	TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_39.status = setjmp(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_39.context);
	if (TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_39.status == 0) {
	canon = canonicalizePath_options_4082(conf, filename);
	shallow_system_7434((&canon));
	popSafePoint();
	}
	else {
		popSafePoint();
		if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTIoserror__BeJgrOdDsczOwEWOZbRfKA_))) {
			TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_39.status = 0;
			canon = copyString(filename);
			pseudoPath = NIM_TRUE;
			popCurrentException();
		}
	}
	if (TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_39.status != 0) reraiseException();
	canon2 = (NimStringDesc*)0;
	forceCopy_strutils50_10((&canon2), canon);
	canonicalCase_msgs_67((&canon2));
	{
		NIM_BOOL T5_;
		NI32* T8_;
		T5_ = (NIM_BOOL)0;
		T5_ = hasKey_msgs_114((*conf).m.filenameToIndexTbl, canon2);
		if (!T5_) goto LA6_;
		(*isKnownFile) = NIM_TRUE;
		T8_ = (NI32*)0;
		T8_ = X5BX5D__msgs_233((&(*conf).m.filenameToIndexTbl), canon2);
		result = (*T8_);
	}
	goto LA3_;
	LA6_: ;
	{
		NI T10_;
		NimStringDesc* T11_;
		tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw T17_;
		NI T18_;
		(*isKnownFile) = NIM_FALSE;
		T10_ = ((*conf).m.fileInfos ? (*conf).m.fileInfos->Sup.len : 0);
		result = ((NI32) (T10_));
		T11_ = (NimStringDesc*)0;
		{
			if (!pseudoPath) goto LA14_;
			T11_ = copyString(filename);
		}
		goto LA12_;
		LA14_: ;
		{
			T11_ = relativeTo_pathutils_132(canon, (*conf).projectPath, 47);
		}
		LA12_: ;
		nimZeroMem((void*)(&T17_), sizeof(tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw));
		newFileInfo_msgs_59(canon, T11_, (&T17_));
		asgnRef((void**) (&(*conf).m.fileInfos), (tySequence__Zi9cGbCWofbtABoHJ5RbLNQ*) incrSeqV3((TGenericSeq*)((*conf).m.fileInfos), (&NTIseqLtfileinfoT__Zi9cGbCWofbtABoHJ5RbLNQ_)));
		T18_ = (*conf).m.fileInfos->Sup.len++;
		genericAssign((void*)(&(*conf).m.fileInfos->data[T18_]), (void*)(&T17_), (&NTItfileinfo__GE3hAakXKOEpch4ap3zXAw_));
		X5BX5Deq__lineinfos_387((&(*conf).m.filenameToIndexTbl), canon2, result);
	}
	LA3_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI32, fileInfoIdx_msgs_376)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* filename) {
	NI32 result;
	NIM_BOOL dummy;
	result = (NI32)0;
	dummy = (NIM_BOOL)0;
	result = fileInfoIdx_msgs_127(conf, filename, (&dummy));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, setDirtyFile_msgs_546)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx, NimStringDesc* filename) {
	NimStringDesc* T1_;
	T1_ = (NimStringDesc*)0;
	T1_ = (*conf).m.fileInfos->data[fileIdx].dirtyFile; (*conf).m.fileInfos->data[fileIdx].dirtyFile = copyStringRC1(filename);
	if (T1_) nimGCunrefNoCycle(T1_);
	asgnRef((void**) (&(*conf).m.fileInfos->data[fileIdx].lines), (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) setLengthSeqV2(&((*conf).m.fileInfos->data[fileIdx].lines)->Sup, (&NTIseqLstringT__sM4lkSb7zS6F7OVMvW9cffQ_), ((NI) 0)));
}
N_LIB_PRIVATE N_NIMCALL(void, internalErrorImpl_msgs_1431)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* errMsg, tyTuple__kN8up2W6YKc5YA9avn5mV5w info2) {
{	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = ((*conf).cmd == ((tyEnum_Command__0zjcIQ623TIRGPdtjLwTFA) 11));
		if (!(T3_)) goto LA4_;
		T3_ = ((*conf).structuredErrorHook.ClP_0 == 0);
		LA4_: ;
		if (!T3_) goto LA5_;
		goto BeforeRet_;
	}
	LA5_: ;
	writeContext_msgs_1001(conf, info);
	liMessage_msgs_1118(conf, info, ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 2), errMsg, ((tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw) 1), info2, NIM_FALSE);
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar__msgs_624)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = toFileLineCol_msgs_619(conf, info);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getHash_msgs_564)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = (*conf).m.fileInfos->data[fileIdx].hash;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, setHash_msgs_557)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx, NimStringDesc* hash) {
	asgnRef((void**) (&(*conf).m.fileInfos->data[fileIdx].hash), hash);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, uniqueModuleName_msgs_1512)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fid) {
	NimStringDesc* result;
	NimStringDesc* path;
	NimStringDesc* rel;
	NI trunc_1;
	result = (NimStringDesc*)0;
	path = toFullPath_msgs_538(conf, fid);
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = nsuStartsWith(path, (*conf).libpath);
		if (!T3_) goto LA4_;
		rel = relativeTo_pathutils_132(path, (*conf).libpath, 47);
	}
	goto LA1_;
	LA4_: ;
	{
		rel = relativeTo_pathutils_132(path, (*conf).projectPath, 47);
	}
	LA1_: ;
	{
		NIM_BOOL T9_;
		T9_ = (NIM_BOOL)0;
		T9_ = nsuEndsWith(rel, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_42));
		if (!T9_) goto LA10_;
		trunc_1 = (NI)((rel ? rel->Sup.len : 0) - ((NI) 4));
	}
	goto LA7_;
	LA10_: ;
	{
		trunc_1 = (rel ? rel->Sup.len : 0);
	}
	LA7_: ;
	result = rawNewString(((NI) (trunc_1)));
	{
		NI i;
		NI i_2;
		i = (NI)0;
		i_2 = ((NI) 0);
		{
			while (1) {
				NIM_CHAR c;
				if (!(i_2 < trunc_1)) goto LA15;
				i = i_2;
				c = rel->data[i];
				switch (((NU8)(c))) {
				case 97 ... 122:
				{
					result = addChar(result, c);
				}
				break;
				case 47:
				{
					result = addChar(result, 90);
				}
				break;
				case 46:
				{
					result = addChar(result, 79);
				}
				break;
				default:
				{
					addInt_stdZprivateZdigitsutils_189((&result), ((NU8)(c)));
				}
				break;
				}
				i_2 += ((NI) 1);
			} LA15: ;
		}
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, pushInfoContext_msgs_490)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* detail) {
	tyTuple__z822nu9bFF1AlQnLrHjdwpA T1_;
	NI T2_;
	NimStringDesc* T3_;
	nimZeroMem((void*)(&T1_), sizeof(tyTuple__z822nu9bFF1AlQnLrHjdwpA));
	T1_.Field0 = info;
	T1_.Field1 = copyString(detail);
	asgnRef((void**) (&(*conf).m.msgContext), (tySequence__tNFrR3kRuS1FSwuiLGoSSA*) incrSeqV3((TGenericSeq*)((*conf).m.msgContext), (&NTIseqLtupleLinfo58tlineinfo_detail58stringTT__tNFrR3kRuS1FSwuiLGoSSA_)));
	T2_ = (*conf).m.msgContext->Sup.len++;
	(*conf).m.msgContext->data[T2_].Field0 = T1_.Field0;
	T3_ = (NimStringDesc*)0;
	T3_ = (*conf).m.msgContext->data[T2_].Field1; (*conf).m.msgContext->data[T2_].Field1 = copyStringRC1(T1_.Field1);
	if (T3_) nimGCunrefNoCycle(T3_);
}
N_LIB_PRIVATE N_NIMCALL(void, popInfoContext_msgs_507)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf) {
	NI T1_;
	T1_ = ((*conf).m.msgContext ? (*conf).m.msgContext->Sup.len : 0);
	asgnRef((void**) (&(*conf).m.msgContext), (tySequence__tNFrR3kRuS1FSwuiLGoSSA*) setLengthSeqV2(&((*conf).m.msgContext)->Sup, (&NTIseqLtupleLinfo58tlineinfo_detail58stringTT__tNFrR3kRuS1FSwuiLGoSSA_), ((NI) ((NI)(T1_ - ((NI) 1))))));
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, exactEquals_msgs_997)(tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q a, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q b) {
	NIM_BOOL result;
	NIM_BOOL T1_;
	NIM_BOOL T2_;
	result = (NIM_BOOL)0;
	T1_ = (NIM_BOOL)0;
	T2_ = (NIM_BOOL)0;
	T2_ = (a.fileIndex == b.fileIndex);
	if (!(T2_)) goto LA3_;
	T2_ = (a.line == b.line);
	LA3_: ;
	T1_ = T2_;
	if (!(T1_)) goto LA4_;
	T1_ = (a.col == b.col);
	LA4_: ;
	result = T1_;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, suggestWriteln_msgs_421)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* s) {
	{
		if (!(((*conf).m.errorOutputs &((NU8)1<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 0))&7U)))!=0)) goto LA3_;
		{
			tyArray__nHXaesL0DJZHyVS07ARPRA T9_;
			if (!((*conf).writelnHook.ClP_0 == 0)) goto LA7_;
			nimZeroMem((void*)T9_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
			T9_[0] = copyString(s);
			writeLine_msgs_432(stdout, T9_, 1);
			flushFile_systemZio_226(stdout);
		}
		goto LA5_;
		LA7_: ;
		{
			(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(s, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_43)((*conf).writelnHook.ClP_0))(s);
		}
		LA5_: ;
	}
	LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, suggestQuit_msgs_446)(void) {
	tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ* T1_;
	NimStringDesc* T2_;
	T1_ = (tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ*)0;
	T1_ = (tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ*) newObj((&NTIrefesuggestdone__q2mvqo4oBiq6VrjsaIw7rg_), sizeof(tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ));
	(*T1_).Sup.Sup.Sup.Sup.m_type = (&NTIesuggestdone__cDtWY9cE7zf8BAC5QcEZZkQ_);
	(*T1_).Sup.Sup.Sup.name = "ESuggestDone";
	T2_ = (NimStringDesc*)0;
	T2_ = (*T1_).Sup.Sup.Sup.message; (*T1_).Sup.Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_44));
	if (T2_) nimGCunrefNoCycle(T2_);
	asgnRef((void**) (&(*T1_).Sup.Sup.Sup.parent), ((Exception*) NIM_NIL));
	raiseExceptionEx((Exception*)T1_, "ESuggestDone", "suggestQuit", "msgs.nim", 160);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, formatMsg_msgs_1111)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, NimStringDesc* arg) {
	NimStringDesc* result;
	NimStringDesc* title;
	NimStringDesc* T4_;
	NimStringDesc* T5_;
	NimStringDesc* T6_;
	result = (NimStringDesc*)0;
	switch (msg) {
	case ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 16) ... ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 67):
	{
		title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_16));
	}
	break;
	case ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 68) ... ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 102):
	{
		title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_17));
	}
	break;
	default:
	{
		title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_15));
	}
	break;
	}
	T4_ = (NimStringDesc*)0;
	T5_ = (NimStringDesc*)0;
	T5_ = toFileLineCol_msgs_619(conf, info);
	T6_ = (NimStringDesc*)0;
	T6_ = getMessageStr_msgs_775(msg, arg);
	T4_ = rawNewString((T5_ ? T5_->Sup.len : 0) + (title ? title->Sup.len : 0) + (T6_ ? T6_->Sup.len : 0) + 1);
appendString(T4_, T5_);
appendString(T4_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
appendString(T4_, title);
appendString(T4_, T6_);
	result = T4_;
	return result;
}
static N_INLINE(NIM_BOOL, lteqpercent__system_985)(NI x, NI y) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = ((NU64)(((NU) (x))) <= (NU64)(((NU) (y))));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q, getInfoContext_msgs_516)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI index) {
	tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q result;
	NI i;
	nimZeroMem((void*)(&result), sizeof(tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q));
	{
		NI T5_;
		if (!(index < ((NI) 0))) goto LA3_;
		T5_ = ((*conf).m.msgContext ? (*conf).m.msgContext->Sup.len : 0);
		i = (NI)(T5_ + index);
	}
	goto LA1_;
	LA3_: ;
	{
		i = index;
	}
	LA1_: ;
	{
		NI T9_;
		NIM_BOOL T10_;
		T9_ = ((*conf).m.msgContext ? (*conf).m.msgContext->Sup.len : 0);
		T10_ = (NIM_BOOL)0;
		T10_ = lteqpercent__system_985(T9_, i);
		if (!T10_) goto LA11_;
		result = unknownLineInfo_lineinfos_280;
	}
	goto LA7_;
	LA11_: ;
	{
		result = (*conf).m.msgContext->data[i].Field0;
	}
	LA7_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, getInfoContextLen_msgs_476)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf) {
	NI result;
	NI T1_;
{	result = (NI)0;
	T1_ = ((*conf).m.msgContext ? (*conf).m.msgContext->Sup.len : 0);
	result = T1_;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, setInfoContextLen_msgs_483)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI L) {
	asgnRef((void**) (&(*conf).m.msgContext), (tySequence__tNFrR3kRuS1FSwuiLGoSSA*) setLengthSeqV2(&((*conf).m.msgContext)->Sup, (&NTIseqLtupleLinfo58tlineinfo_detail58stringTT__tNFrR3kRuS1FSwuiLGoSSA_), ((NI) (L))));
}
N_LIB_PRIVATE N_NIMCALL(tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*, quotedFilename_msgs_1464)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q i) {
	tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* result;
	result = (tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*)0;
	{
		if (!(i.fileIndex < ((NI32) 0))) goto LA3_;
		result = makeCString_msgs_50(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_7));
	}
	goto LA1_;
	LA3_: ;
	{
		if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 31))&63U)))!=0)) goto LA6_;
		result = (*conf).m.fileInfos->data[i.fileIndex].quotedFullName;
	}
	goto LA1_;
	LA6_: ;
	{
		result = (*conf).m.fileInfos->data[i.fileIndex].quotedName;
	}
	LA1_: ;
	return result;
}
static N_INLINE(NIM_BOOL, isEmpty_options_4047)(NimStringDesc* x) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = ((x ? x->Sup.len : 0) == ((NI) 0));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, genSuccessX_msgs_1528)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf) {
	NimStringDesc* mem;
	NimStringDesc* T1_;
	NI T2_;
	NimStringDesc* T3_;
	NimStringDesc* loc;
	NimStringDesc* build;
	NimStringDesc* flags;
	NimStringDesc* sec;
	NF T50_;
	NimStringDesc* project;
	NimStringDesc* output;
	NimStringDesc* argX60gensym143_;
	NimStringDesc* T73_;
	tyArray__ucDUDWdKfioXQrN9bCbG29bg T74_;
	T1_ = (NimStringDesc*)0;
	T2_ = (NI)0;
	T2_ = getMaxMem_system_5243();
	T3_ = (NimStringDesc*)0;
	T3_ = formatSize_pureZstrutils_1971(((NI64) (T2_)), 46, ((tyEnum_BinaryPrefixMode__nDtrM19b3byM8T9ab2m7BwvA) 0), NIM_FALSE);
	T1_ = rawNewString((T3_ ? T3_->Sup.len : 0) + 8);
appendString(T1_, T3_);
appendString(T1_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_45));
	mem = T1_;
	loc = dollar__systemZdollars_3((*conf).linesCompiled);
	build = ((NimStringDesc*) NIM_NIL);
	flags = ((NimStringDesc*) NIM_NIL);
	{
		if (!((124 &((NU32)1<<((NU)((*conf).cmd)&31U)))!=0)) goto LA6_;
		{
			NimStringDesc* T12_;
			if (!!(((*conf).backend == ((tyEnum_TBackend__4OBsgZ9cscH2JLUE5Wcz01g) 3)))) goto LA10_;
			T12_ = (NimStringDesc*)0;
			T12_ = nsuFormatSingleElem(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_46), reprEnum((NI)(*conf).selectedGC, (&NTItgcmode__tkz389aDYNd8ykeZszCuBSw_)));
			build = resizeString(build, (T12_ ? T12_->Sup.len : 0) + 0);
appendString(build, T12_);
			{
				if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 23))&63U)))!=0)) goto LA15_;
				build = resizeString(build, 13);
appendString(build, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_47));
			}
			LA15_: ;
			build = resizeString(build, 5);
appendString(build, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_48));
			{
				if (!(((*conf).options &((NU32)1<<((NU)(((tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg) 15))&31U)))!=0)) goto LA19_;
				build = resizeString(build, 5);
appendString(build, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_49));
			}
			goto LA17_;
			LA19_: ;
			{
				if (!(((*conf).options &((NU32)1<<((NU)(((tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg) 16))&31U)))!=0)) goto LA22_;
				build = resizeString(build, 4);
appendString(build, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_50));
			}
			goto LA17_;
			LA22_: ;
			{
				build = resizeString(build, 54);
appendString(build, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_51));
			}
			LA17_: ;
			{
				NIM_BOOL T27_;
				T27_ = (NIM_BOOL)0;
				T27_ = isDefined_options_2277(conf, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_52));
				if (!T27_) goto LA28_;
				flags = resizeString(flags, 10);
appendString(flags, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_53));
			}
			goto LA25_;
			LA28_: ;
			{
				NIM_BOOL T31_;
				T31_ = (NIM_BOOL)0;
				T31_ = isDefined_options_2277(conf, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_54));
				if (!T31_) goto LA32_;
				flags = resizeString(flags, 11);
appendString(flags, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_55));
			}
			goto LA25_;
			LA32_: ;
			LA25_: ;
		}
		goto LA8_;
		LA10_: ;
		{
			build = resizeString(build, 5);
appendString(build, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_48));
			{
				NIM_BOOL T37_;
				T37_ = (NIM_BOOL)0;
				T37_ = isDefined_options_2277(conf, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_52));
				if (!T37_) goto LA38_;
				build = resizeString(build, 5);
appendString(build, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_49));
				flags = resizeString(flags, 10);
appendString(flags, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_53));
			}
			goto LA35_;
			LA38_: ;
			{
				NIM_BOOL T41_;
				T41_ = (NIM_BOOL)0;
				T41_ = isDefined_options_2277(conf, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_54));
				if (!T41_) goto LA42_;
				build = resizeString(build, 5);
appendString(build, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_49));
				flags = resizeString(flags, 11);
appendString(flags, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_55));
			}
			goto LA35_;
			LA42_: ;
			{
				build = resizeString(build, 54);
appendString(build, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_51));
			}
			LA35_: ;
		}
		LA8_: ;
		{
			NimStringDesc* T49_;
			if (!(((NI) 0) < (flags ? flags->Sup.len : 0))) goto LA47_;
			T49_ = (NimStringDesc*)0;
			T49_ = rawNewString((flags ? flags->Sup.len : 0) + 10);
appendString(T49_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_56));
appendString(T49_, flags);
			build = resizeString(build, (T49_ ? T49_->Sup.len : 0) + 0);
appendString(build, T49_);
		}
		LA47_: ;
	}
	LA6_: ;
	T50_ = (NF)0;
	T50_ = epochTime_pureZtimes_3599();
	sec = nsuformatFloat(((NF)(T50_) - (NF)((*conf).lastCmdTime)), ((tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ) 1), ((NI) 3), 46);
	{
		if (!((*conf).filenameOption == ((tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ) 0))) goto LA53_;
		project = dollar__options_4371((*conf).projectFull);
	}
	goto LA51_;
	LA53_: ;
	{
		project = (*conf).projectName;
	}
	LA51_: ;
	output = (NimStringDesc*)0;
	{
		NIM_BOOL T58_;
		T58_ = (NIM_BOOL)0;
		T58_ = (((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 4))&63U)))!=0);
		if (!(T58_)) goto LA59_;
		T58_ = !(((*conf).cmd == ((tyEnum_Command__0zjcIQ623TIRGPdtjLwTFA) 26)));
		LA59_: ;
		if (!T58_) goto LA60_;
		output = dollar__options_4371((*conf).jsonBuildFile);
	}
	goto LA56_;
	LA60_: ;
	{
		NIM_BOOL T63_;
		T63_ = (NIM_BOOL)0;
		T63_ = isEmpty_options_4047((*conf).outFile);
		if (!(T63_)) goto LA64_;
		T63_ = !(((71098492 &((NU32)1<<((NU)((*conf).cmd)&31U)))!=0));
		LA64_: ;
		if (!T63_) goto LA65_;
		output = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_57));
	}
	goto LA56_;
	LA65_: ;
	{
		NimStringDesc* T68_;
		T68_ = (NimStringDesc*)0;
		T68_ = absOutFile_options_4036(conf);
		output = dollar__options_4371(T68_);
	}
	LA56_: ;
	{
		if (!!(((*conf).filenameOption == ((tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ) 0)))) goto LA71_;
		output = nosextractFilename(output);
	}
	LA71_: ;
	T73_ = (NimStringDesc*)0;
	T73_ = msgKindToString_msgs_772(((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 69));
	nimZeroMem((void*)T74_, sizeof(tyArray__ucDUDWdKfioXQrN9bCbG29bg));
	T74_[0] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_58));
	T74_[1] = copyString(build);
	T74_[2] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_59));
	T74_[3] = copyString(loc);
	T74_[4] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_60));
	T74_[5] = copyString(sec);
	T74_[6] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_61));
	T74_[7] = copyString(mem);
	T74_[8] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_62));
	T74_[9] = copyString(project);
	T74_[10] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_63));
	T74_[11] = copyString(output);
	argX60gensym143_ = nsuFormatOpenArray(T73_, T74_, 12);
	liMessage_msgs_1118(conf, unknownLineInfo_lineinfos_280, ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 69), argX60gensym143_, ((tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw) 1), TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_64, NIM_TRUE);
}
