/* Generated by Nim Compiler v1.3.5 */
/*   (c) 2020 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64

/* section: NIM_merge_HEADERS */

#include "nimbase.h"
#include <string.h>
#include <stdio.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

/* section: NIM_merge_FRAME_DEFINES */
#define nimfr_(x, y)
#define nimln_(x, y)

/* section: NIM_merge_FORWARD_TYPES */
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw;
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 tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q;
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 tySequence__pK3qSsBZwdXd6qyUMkd5Jw tySequence__pK3qSsBZwdXd6qyUMkd5Jw;
typedef struct tyObject_SuggestcolonObjectType___bkMuTTb2G70XfpzAiyNrnQ tyObject_SuggestcolonObjectType___bkMuTTb2G70XfpzAiyNrnQ;
typedef struct tyObject_ProfileDatacolonObjectType___rPBBfFL4X0b9cQ6rfMNPXig tyObject_ProfileDatacolonObjectType___rPBBfFL4X0b9cQ6rfMNPXig;
typedef struct tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw;
typedef struct tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA;
typedef struct tyTuple__kN8up2W6YKc5YA9avn5mV5w tyTuple__kN8up2W6YKc5YA9avn5mV5w;
typedef struct tyTuple__z822nu9bFF1AlQnLrHjdwpA tyTuple__z822nu9bFF1AlQnLrHjdwpA;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Exception Exception;
typedef struct RootObj RootObj;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
typedef struct tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg;
typedef struct tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ;
typedef struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
typedef struct tyTuple__xYhUhS7X82rKTqbT9bRfCnw tyTuple__xYhUhS7X82rKTqbT9bRfCnw;
typedef struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw tyTuple__QeWl6B6ffS4pU6WWrtcrDw;
typedef struct tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;

/* section: NIM_merge_TYPES */
struct TGenericSeq {
NI len;
NI reserved;
};
struct NimStringDesc {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
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_TLineInfo__WGx4rAexNXnczy1Avn646Q {
NU16 line;
NI16 col;
NI32 fileIndex;
};
typedef NU8 tySet_tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA;
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_TCommands__VH3ghgQVwLSg3krOAoXigw;
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 NU16 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__2KKSM6ZBSQgjWsy4q169bgA[9];
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 NU8 tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA;
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;
NI evalTemplateCounter;
NI evalMacroCounter;
NI8 exitcode;
tyEnum_TCommands__VH3ghgQVwLSg3krOAoXigw cmd;
tyEnum_TGCMode__tkz389aDYNd8ykeZszCuBSw selectedGC;
tyEnum_ExceptionSystem__1mkAogyaDAT7g9cQjzsgKLQ exc;
NI verbosity;
NI numberOfProcessors;
NimStringDesc* evalExpr;
NF lastCmdTime;
tyEnum_SymbolFilesOption__gBES9bqm1ru9ape8SeMRAFgQ symbolFiles;
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__2KKSM6ZBSQgjWsy4q169bgA modifiedyNotes;
tySet_tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA cmdlineNotes;
tySet_tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA foreignPackageNotes;
tySet_tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA notes;
tySet_tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA warningAsErrors;
tySet_tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA mainPackageNotes;
NI mainPackageId;
NI errorCounter;
NI hintCounter;
NI warnCounter;
NI errorMax;
NI maxLoopIterationsVM;
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;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* dllOverrides;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* moduleOverrides;
tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* cfileSpecificOptions;
NimStringDesc* projectName;
NimStringDesc* projectPath;
NimStringDesc* projectFull;
NIM_BOOL projectIsStdin;
NIM_BOOL 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* 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_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_TMsgKind__29cbg2fC1z5iM1PAI28kR5w;
typedef NU8 tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw;
struct tyTuple__kN8up2W6YKc5YA9avn5mV5w {
NimStringDesc* Field0;
NI Field1;
NI Field2;
};
typedef NU8 tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg;
struct tyTuple__z822nu9bFF1AlQnLrHjdwpA {
tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q Field0;
NimStringDesc* Field1;
};
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_6) (tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* msg, tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA severity);
typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1];
typedef NimStringDesc* tyArray__24KAM9afIUgUaqBaEBB6r9bg[3];
typedef NU8 tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org;
typedef NU8 tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw;
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_13) (NimStringDesc* output);
typedef NU8 tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA;
typedef NU16 tySet_tyEnum_Style__NXKayqTLMsAibFwNceBlpA;
typedef NU8 tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA;
typedef NimStringDesc* tyArray__z9cqFgHiS9ahHOXLmNWEBvBg[83];
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_20) (tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* msg, tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA severity);
typedef NimStringDesc* tyArray__sMpvt1sOxOJ3LFGulnbeMQ[4];
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_22) (NimStringDesc* output);
typedef NU8 tySet_tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ;
typedef NU8 tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ;
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_23) (NimStringDesc* output);
typedef NU8 tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg;
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 RootObj {
TNimType* m_type;
};
struct Exception {
  RootObj Sup;
Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
Exception* up;
};
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_26) (NimStringDesc* output);
typedef NimStringDesc* tyArray__Re75IspeoxXy2oCZHwcRrA[2];
typedef N_CLOSURE_PTR(void, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_30) (NimStringDesc* output);
struct tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg {
tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w a;
tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w b;
};
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_33) (NimStringDesc* output);
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA {
  Exception Sup;
};
struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw {
  tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
};
struct tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ {
  tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw Sup;
};
struct tyTuple__xYhUhS7X82rKTqbT9bRfCnw {
NI Field0;
NimStringDesc* Field1;
NI32 Field2;
};
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;
};
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {
NCSTRING procname;
NI line;
NCSTRING filename;
};

/* section: NIM_merge_SEQ_TYPES */
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];
};

/* section: NIM_merge_PROC_HEADERS */
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
static N_INLINE(NIM_BOOL, isEmpty__kPpSxL0H5sJ9a6ujvdQ0QVQpathutils)(NimStringDesc* x);
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, msgToStr__HYN9bJ2S4KlempiktmTpVKA)(tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg);
N_LIB_PRIVATE N_NIMCALL(void, writeContext__qseR1pyA8fYS6Wwflt2zAQ)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q lastinfo);
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___59bygf5b7AsTVb9a1lVM66oA)(tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q a, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q b);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatVarargs)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, concat__9brDhFFC9aYh4TjJmoPfzOdw)(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__i80o3k0SgEI5gTRCzYdyWAsystem)(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__WM0LdwjY884aJ9cup7BS2vwmsgs)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toMsgFilename__eX9aCxa5NfPq9alDDS1zYbvw)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 info);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFilenameOption__hCtp6lwFVPBOAIlYyXBiuA)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx, tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org opt);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFullPath__VW1RaR1l9c9bPnJxr1KuvIrg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toProjPath__VW1RaR1l9c9bPnJxr1KuvIrg_2)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx);
N_LIB_PRIVATE N_NIMCALL(NI, nsuCountString)(NimStringDesc* s, NimStringDesc* sub, NIM_BOOL overlapping);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, noslastPathPart)(NimStringDesc* path);
N_LIB_PRIVATE N_NIMCALL(void, addInt__mftMOxbyu0h4yByfs3sqjA)(NimStringDesc** result, NI64 x);
N_LIB_PRIVATE N_NIMCALL(void, write__PArlm09bKklm2BLsCg6YtaA)(FILE* f, NimStringDesc* s);
static N_INLINE(void, writeLine__45Em82MGXqv9biomV0DEbSgio)(FILE* f, NimStringDesc** x, NI xLen_0);
N_LIB_PRIVATE N_NIMCALL(void, flushFile__fU6ZlJAtQ9bre04EDZLdGsA)(FILE* f);
N_LIB_PRIVATE N_NIMCALL(void, setStyle__y8lW2LrW2n5ZHaxH9bAf4WA)(FILE* f, tySet_tyEnum_Style__NXKayqTLMsAibFwNceBlpA style);
N_LIB_PRIVATE N_NIMCALL(void, resetAttributes__6J8xlU57R8cS9bLzTS89aM5g)(FILE* f);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasWarn__6vRFaWMeJsly8QVCeazPQA)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA note);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasHint__6vRFaWMeJsly8QVCeazPQA_2)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA note);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getMessageStr__bApVJwLsexHv26MjGbKUvQ)(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__pY9bbQrdTPzM2HGfayOe6eQ)(tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w kind);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, ignoreMsgBecauseOfIdeTools__wvc4V6zIgESu6cpPmGz9abA)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg);
N_LIB_PRIVATE N_NIMCALL(void, msgWrite__NefEsy9c5k5U9cqqVIWMbpKg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(void, setForegroundColor__vJutklhcnQq9akCXxcuSHAg)(FILE* f, tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg fg, NIM_BOOL bright);
N_LIB_PRIVATE N_NIMCALL(void, writeSurroundingSrc__9aRUSlnze6Qb3IwHkkQ9bv6g)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info);
N_LIB_PRIVATE N_NIMCALL(void, msgWriteln__PO49anyWCbe63GYNOs9cVuvg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* s, tySet_tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ flags);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, sourceLine__b49bYNvmBdG6RP9cHaZGFhvQ)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q i);
N_LIB_PRIVATE N_NIMCALL(NI, numLines__x9aqxDAtGd57HztdSIhXLtQ)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFullPathConsiderDirty__fr10i3QiqDDNG5EqWBCesA)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx);
N_LIB_PRIVATE N_NIMCALL(FILE*, open__cb1k9citqyT9a9brBSJAz8pkg)(NimStringDesc* filename, tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg mode, NI bufSize);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, readLine__FbqDHP9bu7nqCh9c04dnSOxw)(FILE* f, NimStringDesc** line);
N_LIB_PRIVATE N_NIMCALL(void, addSourceLine__9cPswkSBuJ0YLnDEBw6Iieg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx, NimStringDesc* line);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(void, close__fU6ZlJAtQ9bre04EDZLdGsA_2)(FILE* f);
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__rssDy7zs9cDeoYTeCoIy0Wgstrutils)(NI n);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuRepeatChar)(NIM_CHAR c, NI count);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
static N_INLINE(NimStringDesc*, toFileLineCol__fTQr4TRmeNwYlKvcPy3kYAmsgs)(tyTuple__kN8up2W6YKc5YA9avn5mV5w info);
N_LIB_PRIVATE N_NIMCALL(void, handleError__T2cS0vBHloueESngIcrNPg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw eh, NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(void, log__tRbCZ4fGDe9a36bXIedwnwQ)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, open__gq12VLhVO0NBzUTnGgz4nw)(FILE** f, NimStringDesc* filename, tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg mode, NI bufSize);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, slash___gEyhbzZ1UcxyenWRLJRXNQ)(NimStringDesc* head, NimStringDesc* tail);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosgetHomeDir)(void);
N_LIB_PRIVATE N_NIMCALL(void, quit__Fedq6hIgzK5Ezo80jU9aqAg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, stackTraceAvailable__xiAaEKYdoaDLIIbJ78BqmQ)(void);
N_LIB_PRIVATE N_NIMCALL(void, writeStackTrace__amVlU9ajqZ06ujoesRBHcDg_2)(void);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, createDocLink__pWiLD3R2s41obcTDlPhj9cA)(NimStringDesc* urlSuffix);
static N_INLINE(NIM_BOOL, contains__C6zknI9aj0qzb4XAbwM6y9cQsystem)(tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg s, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w value);
static N_INLINE(tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg, dotdot___N3IU9cJ5UjABfbcVFvMuhrQsystem)(tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w a, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w b);
N_LIB_PRIVATE N_NOINLINE(void, raiseRecoverableError__5jd5IdwI3N06CaI2zjEQsQ)(NimStringDesc* msg);
N_LIB_PRIVATE N_NOINLINE(void, liMessage__Q6JNH4uRwLyZrj0dJakHew)(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(NI32, fileInfoIdx__Eu6qwnWjBAlxk5Kd4AsfYg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* filename, NIM_BOOL* isKnownFile);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, canonicalizePath__9bhgFqdEZM7DoX7p3U69bQEg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* path);
static N_INLINE(void, shallow__cnzwaZQQIa73ryXE31wijQsystem)(NimStringDesc** s);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
N_LIB_PRIVATE N_NIMCALL(void, forceCopy__9aS5wD8MwJoemnVo59bh54Sg)(NimStringDesc** result, NimStringDesc* a);
N_LIB_PRIVATE N_NIMCALL(void, canonicalCase__ieSCOeB9alirM2uC0jUt1Dg)(NimStringDesc** path);
N_LIB_PRIVATE N_NIMCALL(void, toLowerAscii__I234FTAl36mfiUP0mS9cMVg)(NimStringDesc** a);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasKey__V2bna9aem30Wfb1MT9bSnPzQ)(tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA t, NimStringDesc* key);
N_LIB_PRIVATE N_NIMCALL(NI32*, X5BX5D___cYD9bwEY2FvxLm9bWq5KUhtA)(tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA* t, NimStringDesc* key);
N_LIB_PRIVATE N_NIMCALL(void, newFileInfo__H9aV055mSUDR4HgT7SX79aqA)(NimStringDesc* fullPath, NimStringDesc* projPath, tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw* Result);
static N_INLINE(void, unsureAsgnRef)(void** dest, void* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nosextractFilename)(NimStringDesc* path);
N_LIB_PRIVATE N_NIMCALL(tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*, makeCString__vQJydtKy4Nf6bXPYtbmjtg)(NimStringDesc* s);
static N_INLINE(NF, toFloat__y1Fm9aHmxw9bS2jir137Fu5gsystem)(NI i);
N_LIB_PRIVATE N_NIMCALL(void, toCChar__JTr4d3QfIoJwmoCY9bN9adqQ)(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__IM4kcMNkkOLJtqdEqSxR8A)(tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA** a, tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* b);
N_LIB_PRIVATE N_NIMCALL(tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*, rope__yShmEg9cffWxI7s5XzEKBow)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, relativeTo__zjjWvxBunys9bbBJHoqyLyQ)(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___anizD9c0GXTQTVVON49cli6g)(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_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
static N_INLINE(NIM_BOOL, lteqpercent___hPljn3JCDQ00ua1R07X9bxQ_2system)(NI x, NI y);

/* section: NIM_merge_DATA */
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_2, "command line", 12);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_3, "\?\?\?", 3);
static NIM_CONST tyProc__oL9coyIA2VDTGdUcur9aL9bew TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_4 = {NIM_NIL,NIM_NIL};
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_5, "template/generic instantiation from here", 40);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_7, "template/generic instantiation of `$1` from here", 48);
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);
static NIM_CONST tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_16 = {((NU16) 0), ((NI16) -1), ((NI32) -1)}
;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_17, "Warning: ", 9);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_18, "Hint: ", 6);
extern NIM_CONST tyArray__z9cqFgHiS9ahHOXLmNWEBvBg MsgKindToStr__toc2ERobyllo49aZhx0umtQ;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_19, " [$1]", 5);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_21, ".", 1);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_24, "  ", 2);
extern TNimType NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
extern TNimType NTI__iLZrPn9anoh9ad1MmO0RczFw_;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_25, " compiler msg initiated here", 28);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_27, "nimsuggest.log", 14);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_28, "No stack traceback available\012To create a stacktrace, rerun comp"
"ilation with \'./koch temp $1 <file>\', see $2 for details", 119);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_29, "intern.html#debugging-the-compiler", 34);
extern TNimType NTI__BeJgrOdDsczOwEWOZbRfKA_;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_31, "\"", 1);
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_32, "\"\012\"", 3);
extern TNimType NTI__Zi9cGbCWofbtABoHJ5RbLNQ_;
extern TNimType NTI__GE3hAakXKOEpch4ap3zXAw_;
extern TNimType NTI__tNFrR3kRuS1FSwuiLGoSSA_;
extern TNimType NTI__q2mvqo4oBiq6VrjsaIw7rg_;
extern TNimType NTI__cDtWY9cE7zf8BAC5QcEZZkQ_;
STRING_LITERAL(TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_34, "suggest done", 12);

/* section: NIM_merge_VARS */
extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA;
extern Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
extern Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
extern Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;

/* section: NIM_merge_PROCS */
static N_INLINE(NIM_BOOL, isEmpty__kPpSxL0H5sJ9a6ujvdQ0QVQpathutils)(NimStringDesc* x) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = ((x ? x->Sup.len : 0) == ((NI) 0));
	return result;
}
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) {
	NIM_BOOL* result;
	result = (NIM_BOOL*)0;
	result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFullPathConsiderDirty__fr10i3QiqDDNG5EqWBCesA)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx) {
	NimStringDesc* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	{
		if (!(fileIdx < ((NI32) 0))) goto LA3_;
		{
			if (!(fileIdx == ((NI32) -3))) goto LA7_;
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_2));
		}
		goto LA5_;
		LA7_: ;
		{
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_3));
		}
		LA5_: ;
	}
	goto LA1_;
	LA3_: ;
	{
		NIM_BOOL T11_;
		T11_ = (NIM_BOOL)0;
		T11_ = isEmpty__kPpSxL0H5sJ9a6ujvdQ0QVQpathutils((*conf).m.fileInfos->data[fileIdx].dirtyFile);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!!(T11_)) goto LA12_;
		result = copyString((*conf).m.fileInfos->data[fileIdx].dirtyFile);
	}
	goto LA1_;
	LA12_: ;
	{
		result = copyString((*conf).m.fileInfos->data[fileIdx].fullPath);
	}
	LA1_: ;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(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) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___59bygf5b7AsTVb9a1lVM66oA)(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__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
	nimCopyMem(dest, source, size);
}
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	{
		void* T5_;
		void* T6_;
		if (!!((src == NIM_NIL))) goto LA3_;
		T5_ = (void*)0;
		T5_ = ((void*) ((&(*dest).data[(*dest).Sup.len])));
		T6_ = (void*)0;
		T6_ = ((void*) ((*src).data));
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T5_, T6_, ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
		(*dest).Sup.len += (*src).Sup.len;
	}
	LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, concat__9brDhFFC9aYh4TjJmoPfzOdw)(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__VW1RaR1l9c9bPnJxr1KuvIrg)(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 == NIM_NIL);
		LA4_: ;
		if (!T3_) goto LA5_;
		{
			if (!(fileIdx == ((NI32) -3))) goto LA9_;
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_2));
		}
		goto LA7_;
		LA9_: ;
		{
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_3));
		}
		LA7_: ;
	}
	goto LA1_;
	LA5_: ;
	{
		result = copyString((*conf).m.fileInfos->data[fileIdx].fullPath);
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toProjPath__VW1RaR1l9c9bPnJxr1KuvIrg_2)(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 == NIM_NIL);
		LA4_: ;
		if (!T3_) goto LA5_;
		{
			if (!(fileIdx == ((NI32) -3))) goto LA9_;
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_2));
		}
		goto LA7_;
		LA9_: ;
		{
			result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_3));
		}
		LA7_: ;
	}
	goto LA1_;
	LA5_: ;
	{
		result = copyString((*conf).m.fileInfos->data[fileIdx].projPath);
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toFilenameOption__hCtp6lwFVPBOAIlYyXBiuA)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx, tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org opt) {
	NimStringDesc* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	switch (opt) {
	case ((tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org) 0):
	{
		result = toFullPath__VW1RaR1l9c9bPnJxr1KuvIrg(conf, fileIdx);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	break;
	case ((tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org) 1):
	{
		result = toProjPath__VW1RaR1l9c9bPnJxr1KuvIrg_2(conf, fileIdx);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	break;
	case ((tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org) 2):
	{
		NimStringDesc* absPath;
		NimStringDesc* relPath;
		absPath = toFullPath__VW1RaR1l9c9bPnJxr1KuvIrg(conf, fileIdx);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		relPath = toProjPath__VW1RaR1l9c9bPnJxr1KuvIrg_2(conf, fileIdx);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		{
			NIM_BOOL T6_;
			NIM_BOOL T7_;
			NI T10_;
			T6_ = (NIM_BOOL)0;
			T7_ = (NIM_BOOL)0;
			T7_ = (((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 36))&63U)))!=0);
			if (T7_) goto LA8_;
			T7_ = ((absPath ? absPath->Sup.len : 0) < (relPath ? relPath->Sup.len : 0));
			LA8_: ;
			T6_ = T7_;
			if (T6_) goto LA9_;
			T10_ = (NI)0;
			T10_ = nsuCountString(relPath, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_8), NIM_FALSE);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			T6_ = (((NI) 2) < T10_);
			LA9_: ;
			if (!T6_) goto LA11_;
			result = copyString(absPath);
		}
		goto LA4_;
		LA11_: ;
		{
			result = copyString(relPath);
		}
		LA4_: ;
	}
	break;
	case ((tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org) 3):
	{
		NimStringDesc* T15_;
		T15_ = (NimStringDesc*)0;
		T15_ = toProjPath__VW1RaR1l9c9bPnJxr1KuvIrg_2(conf, fileIdx);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		result = noslastPathPart(T15_);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	break;
	case ((tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org) 4):
	{
		{
			NIM_BOOL T19_;
			T19_ = (NIM_BOOL)0;
			T19_ = (fileIdx < ((NI32) 0));
			if (T19_) goto LA20_;
			T19_ = (conf == NIM_NIL);
			LA20_: ;
			if (!T19_) goto LA21_;
			{
				if (!(fileIdx == ((NI32) -3))) goto LA25_;
				result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_2));
			}
			goto LA23_;
			LA25_: ;
			{
				result = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_3));
			}
			LA23_: ;
		}
		goto LA17_;
		LA21_: ;
		{
			result = copyString((*conf).m.fileInfos->data[fileIdx].shortName);
		}
		LA17_: ;
	}
	break;
	case ((tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org) 5):
	{
		{
			if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 31))&63U)))!=0)) goto LA32_;
			result = toFilenameOption__hCtp6lwFVPBOAIlYyXBiuA(conf, fileIdx, ((tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org) 0));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		goto LA30_;
		LA32_: ;
		{
			result = toFilenameOption__hCtp6lwFVPBOAIlYyXBiuA(conf, fileIdx, ((tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org) 3));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA30_: ;
	}
	break;
	}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toMsgFilename__eX9aCxa5NfPq9alDDS1zYbvw)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 info) {
	NimStringDesc* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	result = toFilenameOption__hCtp6lwFVPBOAIlYyXBiuA(conf, info, ((tyEnum_FilenameOption__PR85MOw9bZL5JFJQSb26org) 2));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NimStringDesc*, toFileLineCol__WM0LdwjY884aJ9cup7BS2vwmsgs)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info) {
	NimStringDesc* result;
	NimStringDesc* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	T1_ = (NimStringDesc*)0;
	T1_ = toMsgFilename__eX9aCxa5NfPq9alDDS1zYbvw(conf, info.fileIndex);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	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__mftMOxbyu0h4yByfs3sqjA((&result), ((NI64) (((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__mftMOxbyu0h4yByfs3sqjA((&result), ((NI64) ((NI)(((NI) (info.col)) + ((NI) 1)))));
		}
		LA8_: ;
		result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_11));
	}
	LA4_: ;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(void, writeLine__45Em82MGXqv9biomV0DEbSgio)(FILE* f, NimStringDesc** x, NI xLen_0) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		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__PArlm09bKklm2BLsCg6YtaA(f, (*i));
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				i_2 += ((NI) 1);
			} LA3: ;
		}
	}
	write__PArlm09bKklm2BLsCg6YtaA(f, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, writeContext__qseR1pyA8fYS6Wwflt2zAQ)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q lastinfo) {
	tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	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___59bygf5b7AsTVb9a1lVM66oA(context.Field0, lastinfo);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					T7_ = !(T8_);
					if (!(T7_)) goto LA9_;
					T10_ = (NIM_BOOL)0;
					T10_ = eqeq___59bygf5b7AsTVb9a1lVM66oA(context.Field0, info);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					T7_ = !(T10_);
					LA9_: ;
					if (!T7_) goto LA11_;
					{
						if (!!(((*conf).structuredErrorHook.ClP_0 == TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_4.ClP_0 && (*conf).structuredErrorHook.ClE_0 == TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_4.ClE_0))) goto LA15_;
						(*conf).structuredErrorHook.ClE_0? (*conf).structuredErrorHook.ClP_0(conf, context.Field0, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_5), ((tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA) 0), (*conf).structuredErrorHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_6)((*conf).structuredErrorHook.ClP_0))(conf, context.Field0, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_5), ((tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA) 0));
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
					goto LA13_;
					LA15_: ;
					{
						NimStringDesc* message;
						{
							if (!((context.Field1 ? context.Field1->Sup.len : 0) == 0)) goto LA20_;
							message = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_5));
						}
						goto LA18_;
						LA20_: ;
						{
							tyArray__nHXaesL0DJZHyVS07ARPRA T23_;
							nimZeroMem((void*)T23_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
							T23_[0] = copyString(context.Field1);
							message = nsuFormatVarargs(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_7), T23_, 1);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						}
						LA18_: ;
						{
							tyArray__24KAM9afIUgUaqBaEBB6r9bg T28_;
							NimStringDesc* T29_;
							NimStringDesc* T30_;
							if (!!(((*conf).writelnHook.ClP_0 == 0))) goto LA26_;
							nimZeroMem((void*)T28_, sizeof(tyArray__24KAM9afIUgUaqBaEBB6r9bg));
							T29_ = (NimStringDesc*)0;
							T29_ = toFileLineCol__WM0LdwjY884aJ9cup7BS2vwmsgs(conf, context.Field0);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							T28_[0] = T29_;
							T28_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
							T28_[2] = copyString(message);
							T30_ = (NimStringDesc*)0;
							T30_ = concat__9brDhFFC9aYh4TjJmoPfzOdw(T28_, 3);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(T30_, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_13)((*conf).writelnHook.ClP_0))(T30_);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						}
						goto LA24_;
						LA26_: ;
						{
							if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 23))&63U)))!=0)) goto LA32_;
							{
								tyArray__24KAM9afIUgUaqBaEBB6r9bg T42_;
								NimStringDesc* T43_;
								if (!(((*conf).m.errorOutputs &(1U<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 0))&7U)))!=0)) goto LA36_;
								{
									if (!(*conf).lastMsgWasDot) goto LA40_;
									(*conf).lastMsgWasDot = NIM_FALSE;
									write__PArlm09bKklm2BLsCg6YtaA(stdout, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
									if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
								}
								LA40_: ;
								nimZeroMem((void*)T42_, sizeof(tyArray__24KAM9afIUgUaqBaEBB6r9bg));
								T43_ = (NimStringDesc*)0;
								T43_ = toFileLineCol__WM0LdwjY884aJ9cup7BS2vwmsgs(conf, context.Field0);
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
								T42_[0] = T43_;
								T42_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
								T42_[2] = copyString(message);
								writeLine__45Em82MGXqv9biomV0DEbSgio(stdout, T42_, 3);
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
								flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stdout);
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							}
							LA36_: ;
						}
						goto LA24_;
						LA32_: ;
						{
							if (!(((*conf).m.errorOutputs &(1U<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 1))&7U)))!=0)) goto LA45_;
							{
								if (!(*conf).lastMsgWasDot) goto LA49_;
								(*conf).lastMsgWasDot = NIM_FALSE;
								write__PArlm09bKklm2BLsCg6YtaA(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							}
							LA49_: ;
							{
								NimStringDesc* T55_;
								if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 21))&63U)))!=0)) goto LA53_;
								setStyle__y8lW2LrW2n5ZHaxH9bAf4WA(stderr, 1);
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
								T55_ = (NimStringDesc*)0;
								T55_ = toFileLineCol__WM0LdwjY884aJ9cup7BS2vwmsgs(conf, context.Field0);
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
								write__PArlm09bKklm2BLsCg6YtaA(stderr, T55_);
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
								write__PArlm09bKklm2BLsCg6YtaA(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
								resetAttributes__6J8xlU57R8cS9bLzTS89aM5g(stderr);
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
								write__PArlm09bKklm2BLsCg6YtaA(stderr, message);
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
								resetAttributes__6J8xlU57R8cS9bLzTS89aM5g(stderr);
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
								write__PArlm09bKklm2BLsCg6YtaA(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							}
							goto LA51_;
							LA53_: ;
							{
								tyArray__24KAM9afIUgUaqBaEBB6r9bg T57_;
								NimStringDesc* T58_;
								nimZeroMem((void*)T57_, sizeof(tyArray__24KAM9afIUgUaqBaEBB6r9bg));
								T58_ = (NimStringDesc*)0;
								T58_ = toFileLineCol__WM0LdwjY884aJ9cup7BS2vwmsgs(conf, context.Field0);
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
								T57_[0] = T58_;
								T57_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
								T57_[2] = copyString(message);
								writeLine__45Em82MGXqv9biomV0DEbSgio(stderr, T57_, 3);
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							}
							LA51_: ;
							flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stderr);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						}
						goto LA24_;
						LA45_: ;
						LA24_: ;
					}
					LA13_: ;
				}
				LA11_: ;
				info = context.Field0;
				i_2 += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, msgKindToString__pY9bbQrdTPzM2HGfayOe6eQ)(tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w kind) {
	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = copyString(MsgKindToStr__toc2ERobyllo49aZhx0umtQ[(kind)- 0]);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getMessageStr__bApVJwLsexHv26MjGbKUvQ)(tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, NimStringDesc* arg) {
	NimStringDesc* result;
	NimStringDesc* T1_;
	tyArray__nHXaesL0DJZHyVS07ARPRA T2_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	T1_ = (NimStringDesc*)0;
	T1_ = msgKindToString__pY9bbQrdTPzM2HGfayOe6eQ(msg);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	nimZeroMem((void*)T2_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
	T2_[0] = copyString(arg);
	result = nsuFormatOpenArray(T1_, T2_, 1);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, ignoreMsgBecauseOfIdeTools__wvc4V6zIgESu6cpPmGz9abA)(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) 10) <= msg);
	if (!(T2_)) goto LA3_;
	T2_ = ((*conf).cmd == ((tyEnum_TCommands__VH3ghgQVwLSg3krOAoXigw) 14));
	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__NefEsy9c5k5U9cqqVIWMbpKg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* s) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		FILE* stdOrr;
		if (!!(((*conf).m.errorOutputs == 0))) goto LA3_;
		{
			if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 23))&63U)))!=0)) goto LA7_;
			stdOrr = stdout;
		}
		goto LA5_;
		LA7_: ;
		{
			stdOrr = stderr;
		}
		LA5_: ;
		write__PArlm09bKklm2BLsCg6YtaA(stdOrr, s);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stdOrr);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		(*conf).lastMsgWasDot = NIM_TRUE;
	}
	LA3_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, msgWriteln__PO49anyWCbe63GYNOs9cVuvg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* s, tySet_tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ flags) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = !(((*conf).writelnHook.ClP_0 == 0));
		if (!(T3_)) goto LA4_;
		T3_ = !(((flags &(1U<<((NU)(((tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ) 1))&7U)))!=0));
		LA4_: ;
		if (!T3_) goto LA5_;
		(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(s, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_23)((*conf).writelnHook.ClP_0))(s);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	goto LA1_;
	LA5_: ;
	{
		NIM_BOOL T8_;
		T8_ = (NIM_BOOL)0;
		T8_ = (((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 23))&63U)))!=0);
		if (T8_) goto LA9_;
		T8_ = ((flags &(1U<<((NU)(((tyEnum_MsgFlag__BzRTaQ6LrPDZKEKt9bswkOQ) 0))&7U)))!=0);
		LA9_: ;
		if (!T8_) goto LA10_;
		{
			tyArray__nHXaesL0DJZHyVS07ARPRA T20_;
			if (!(((*conf).m.errorOutputs &(1U<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 0))&7U)))!=0)) goto LA14_;
			{
				if (!(*conf).lastMsgWasDot) goto LA18_;
				(*conf).lastMsgWasDot = NIM_FALSE;
				write__PArlm09bKklm2BLsCg6YtaA(stdout, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			}
			LA18_: ;
			nimZeroMem((void*)T20_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
			T20_[0] = copyString(s);
			writeLine__45Em82MGXqv9biomV0DEbSgio(stdout, T20_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stdout);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA14_: ;
	}
	goto LA1_;
	LA10_: ;
	{
		{
			tyArray__nHXaesL0DJZHyVS07ARPRA T30_;
			if (!(((*conf).m.errorOutputs &(1U<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 1))&7U)))!=0)) goto LA24_;
			{
				if (!(*conf).lastMsgWasDot) goto LA28_;
				(*conf).lastMsgWasDot = NIM_FALSE;
				write__PArlm09bKklm2BLsCg6YtaA(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			}
			LA28_: ;
			nimZeroMem((void*)T30_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
			T30_[0] = copyString(s);
			writeLine__45Em82MGXqv9biomV0DEbSgio(stderr, T30_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stderr);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA24_: ;
	}
	LA1_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, addSourceLine__9cPswkSBuJ0YLnDEBw6Iieg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx, NimStringDesc* line) {
	NI T1_;
	(*conf).m.fileInfos->data[fileIdx].lines = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)((*conf).m.fileInfos->data[fileIdx].lines), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_));
	T1_ = (*conf).m.fileInfos->data[fileIdx].lines->Sup.len++;
	(*conf).m.fileInfos->data[fileIdx].lines->data[T1_] = copyString(line);
}
static N_INLINE(Exception*, nimBorrowCurrentException)(void) {
	Exception* result;
	result = (Exception*)0;
	result = currException__9bVPeDJlYTi9bQApZpfH8wjg;
	return result;
}
static N_INLINE(void, popCurrentException)(void) {
	currException__9bVPeDJlYTi9bQApZpfH8wjg = (*currException__9bVPeDJlYTi9bQApZpfH8wjg).up;
}
N_LIB_PRIVATE N_NIMCALL(NI, numLines__x9aqxDAtGd57HztdSIhXLtQ)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx) {
	NI result;
	NI T1_;
NIM_BOOL oldNimErrFin10_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	T1_ = ((*conf).m.fileInfos->data[fileIdx].lines ? (*conf).m.fileInfos->data[fileIdx].lines->Sup.len : 0);
	result = T1_;
	{
		NI T19_;
		if (!(result == ((NI) 0))) goto LA4_;
		{
			NimStringDesc* line;
			NimStringDesc* colontmp_;
			NimStringDesc* T8_;
			FILE* f;
			FILE* T9_;
			NimStringDesc* res;
			line = (NimStringDesc*)0;
			colontmp_ = (NimStringDesc*)0;
			T8_ = (NimStringDesc*)0;
			T8_ = toFullPathConsiderDirty__fr10i3QiqDDNG5EqWBCesA(conf, fileIdx);
			if (NIM_UNLIKELY(*nimErr_)) goto LA6_;
			colontmp_ = T8_;
			T9_ = (FILE*)0;
			T9_ = open__cb1k9citqyT9a9brBSJAz8pkg(colontmp_, ((tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg) 0), ((NI) 8000));
			if (NIM_UNLIKELY(*nimErr_)) goto LA6_;
			f = T9_;
			res = rawNewString(((NI) 80));
			{
				while (1) {
					NIM_BOOL T13_;
					T13_ = (NIM_BOOL)0;
					T13_ = readLine__FbqDHP9bu7nqCh9c04dnSOxw(f, (&res));
					if (NIM_UNLIKELY(*nimErr_)) goto LA10_;
					if (!T13_) goto LA12;
					line = res;
					addSourceLine__9cPswkSBuJ0YLnDEBw6Iieg(conf, fileIdx, line);
					if (NIM_UNLIKELY(*nimErr_)) goto LA10_;
				} LA12: ;
			}
			{
				LA10_:;
			}
			{
				oldNimErrFin10_ = *nimErr_; *nimErr_ = NIM_FALSE;
				close__fU6ZlJAtQ9bre04EDZLdGsA_2(f);
				if (NIM_UNLIKELY(*nimErr_)) goto LA6_;
				*nimErr_ = oldNimErrFin10_;
			}
			if (NIM_UNLIKELY(*nimErr_)) goto LA6_;
		}
		if (NIM_UNLIKELY(*nimErr_)) {
			LA6_:;
			if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__iLZrPn9anoh9ad1MmO0RczFw_))) {
				*nimErr_ = NIM_FALSE;
				popCurrentException();
				LA17_:;
			}
		}
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T19_ = ((*conf).m.fileInfos->data[fileIdx].lines ? (*conf).m.fileInfos->data[fileIdx].lines->Sup.len : 0);
		result = T19_;
	}
	LA4_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, sourceLine__b49bYNvmBdG6RP9cHaZGFhvQ)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q i) {
	NimStringDesc* result;
	NI num;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	{
		if (!(i.fileIndex < ((NI32) 0))) goto LA3_;
		result = ((NimStringDesc*) NIM_NIL);
		goto BeforeRet_;
	}
	LA3_: ;
	num = numLines__x9aqxDAtGd57HztdSIhXLtQ(conf, i.fileIndex);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		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__rssDy7zs9cDeoYTeCoIy0Wgstrutils)(NI n) {
	NimStringDesc* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	result = nsuRepeatChar(32, n);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	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(void, writeSurroundingSrc__9aRUSlnze6Qb3IwHkkQ9bv6g)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info) {
	tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* T1_;
	NimStringDesc* T2_;
	NimStringDesc* T3_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	T1_ = (tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw*)0;
	T1_ = conf;
	T2_ = (NimStringDesc*)0;
	T3_ = (NimStringDesc*)0;
	T3_ = sourceLine__b49bYNvmBdG6RP9cHaZGFhvQ(conf, info);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	T2_ = rawNewString((T3_ ? T3_->Sup.len : 0) + 2);
appendString(T2_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_24));
appendString(T2_, T3_);
	msgWriteln__PO49anyWCbe63GYNOs9cVuvg(T1_, T2_, 0);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		NimStringDesc* T8_;
		NimStringDesc* T9_;
		if (!(((NI16) 0) <= info.col)) goto LA6_;
		T8_ = (NimStringDesc*)0;
		T9_ = (NimStringDesc*)0;
		T9_ = spaces__rssDy7zs9cDeoYTeCoIy0Wgstrutils(((NI) (info.col)));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T8_ = rawNewString((T9_ ? T9_->Sup.len : 0) + 3);
appendString(T8_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_24));
appendString(T8_, T9_);
appendChar(T8_, 94);
		msgWriteln__PO49anyWCbe63GYNOs9cVuvg(conf, T8_, 0);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA6_: ;
	}BeforeRet_: ;
}
static N_INLINE(NimStringDesc*, toFileLineCol__fTQr4TRmeNwYlKvcPy3kYAmsgs)(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__mftMOxbyu0h4yByfs3sqjA((&result), ((NI64) (info.Field1)));
		{
			if (!(((NI) 0) < (NI)(info.Field2 + ((NI) 1)))) goto LA7_;
			result = resizeString(result, 2);
appendString(result, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_10));
			addInt__mftMOxbyu0h4yByfs3sqjA((&result), ((NI64) ((NI)(info.Field2 + ((NI) 1)))));
		}
		LA7_: ;
		result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_11));
	}
	LA3_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, log__tRbCZ4fGDe9a36bXIedwnwQ)(NimStringDesc* s) {
	FILE* f;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	f = (FILE*)0;
	{
		NimStringDesc* T3_;
		NimStringDesc* T4_;
		NIM_BOOL T5_;
		tyArray__nHXaesL0DJZHyVS07ARPRA T8_;
		T3_ = (NimStringDesc*)0;
		T3_ = nosgetHomeDir();
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T4_ = (NimStringDesc*)0;
		T4_ = slash___gEyhbzZ1UcxyenWRLJRXNQ(T3_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_27));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T5_ = (NIM_BOOL)0;
		T5_ = open__gq12VLhVO0NBzUTnGgz4nw(&f, T4_, ((tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg) 4), ((NI) -1));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!T5_) goto LA6_;
		nimZeroMem((void*)T8_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
		T8_[0] = copyString(s);
		writeLine__45Em82MGXqv9biomV0DEbSgio(f, T8_, 1);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		close__fU6ZlJAtQ9bre04EDZLdGsA_2(f);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA6_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, quit__Fedq6hIgzK5Ezo80jU9aqAg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		NIM_BOOL T3_;
		NIM_BOOL T4_;
		T3_ = (NIM_BOOL)0;
		T4_ = (NIM_BOOL)0;
		T4_ = NIM_FALSE;
		if (T4_) goto LA5_;
		T4_ = (msg == ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 1));
		LA5_: ;
		T3_ = T4_;
		if (T3_) goto LA6_;
		T3_ = hasHint__6vRFaWMeJsly8QVCeazPQA_2(conf, ((tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA) 75));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		LA6_: ;
		if (!T3_) goto LA7_;
		{
			NIM_BOOL T11_;
			T11_ = (NIM_BOOL)0;
			T11_ = stackTraceAvailable__xiAaEKYdoaDLIIbJ78BqmQ();
			if (!(T11_)) goto LA12_;
			T11_ = ((*conf).writelnHook.ClP_0 == 0);
			LA12_: ;
			if (!T11_) goto LA13_;
			writeStackTrace__amVlU9ajqZ06ujoesRBHcDg_2();
		}
		goto LA9_;
		LA13_: ;
		{
			{
				tyArray__nHXaesL0DJZHyVS07ARPRA T20_;
				tyArray__Re75IspeoxXy2oCZHwcRrA T21_;
				NimStringDesc* T22_;
				NimStringDesc* T23_;
				NimStringDesc* T24_;
				if (!!(((*conf).writelnHook.ClP_0 == 0))) goto LA18_;
				nimZeroMem((void*)T20_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
				nimZeroMem((void*)T21_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
				T21_[0] = copyString((*conf).command);
				T22_ = (NimStringDesc*)0;
				T22_ = createDocLink__pWiLD3R2s41obcTDlPhj9cA(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_29));
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				T21_[1] = T22_;
				T23_ = (NimStringDesc*)0;
				T23_ = nsuFormatOpenArray(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_28), T21_, 2);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				T20_[0] = T23_;
				T24_ = (NimStringDesc*)0;
				T24_ = concat__9brDhFFC9aYh4TjJmoPfzOdw(T20_, 1);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(T24_, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_30)((*conf).writelnHook.ClP_0))(T24_);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			}
			goto LA16_;
			LA18_: ;
			{
				if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 23))&63U)))!=0)) goto LA26_;
				{
					tyArray__nHXaesL0DJZHyVS07ARPRA T36_;
					tyArray__Re75IspeoxXy2oCZHwcRrA T37_;
					NimStringDesc* T38_;
					NimStringDesc* T39_;
					if (!(((*conf).m.errorOutputs &(1U<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 0))&7U)))!=0)) goto LA30_;
					{
						if (!(*conf).lastMsgWasDot) goto LA34_;
						(*conf).lastMsgWasDot = NIM_FALSE;
						write__PArlm09bKklm2BLsCg6YtaA(stdout, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
					LA34_: ;
					nimZeroMem((void*)T36_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
					nimZeroMem((void*)T37_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
					T37_[0] = copyString((*conf).command);
					T38_ = (NimStringDesc*)0;
					T38_ = createDocLink__pWiLD3R2s41obcTDlPhj9cA(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_29));
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					T37_[1] = T38_;
					T39_ = (NimStringDesc*)0;
					T39_ = nsuFormatOpenArray(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_28), T37_, 2);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					T36_[0] = T39_;
					writeLine__45Em82MGXqv9biomV0DEbSgio(stdout, T36_, 1);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stdout);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				LA30_: ;
			}
			goto LA16_;
			LA26_: ;
			{
				if (!(((*conf).m.errorOutputs &(1U<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 1))&7U)))!=0)) goto LA41_;
				{
					if (!(*conf).lastMsgWasDot) goto LA45_;
					(*conf).lastMsgWasDot = NIM_FALSE;
					write__PArlm09bKklm2BLsCg6YtaA(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				LA45_: ;
				{
					tyArray__Re75IspeoxXy2oCZHwcRrA T51_;
					NimStringDesc* T52_;
					NimStringDesc* T53_;
					if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 21))&63U)))!=0)) goto LA49_;
					setForegroundColor__vJutklhcnQq9akCXxcuSHAg(stderr, ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 31), NIM_FALSE);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					nimZeroMem((void*)T51_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
					T51_[0] = copyString((*conf).command);
					T52_ = (NimStringDesc*)0;
					T52_ = createDocLink__pWiLD3R2s41obcTDlPhj9cA(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_29));
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					T51_[1] = T52_;
					T53_ = (NimStringDesc*)0;
					T53_ = nsuFormatOpenArray(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_28), T51_, 2);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					write__PArlm09bKklm2BLsCg6YtaA(stderr, T53_);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					resetAttributes__6J8xlU57R8cS9bLzTS89aM5g(stderr);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					write__PArlm09bKklm2BLsCg6YtaA(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				goto LA47_;
				LA49_: ;
				{
					tyArray__nHXaesL0DJZHyVS07ARPRA T55_;
					tyArray__Re75IspeoxXy2oCZHwcRrA T56_;
					NimStringDesc* T57_;
					NimStringDesc* T58_;
					nimZeroMem((void*)T55_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
					nimZeroMem((void*)T56_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
					T56_[0] = copyString((*conf).command);
					T57_ = (NimStringDesc*)0;
					T57_ = createDocLink__pWiLD3R2s41obcTDlPhj9cA(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_29));
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					T56_[1] = T57_;
					T58_ = (NimStringDesc*)0;
					T58_ = nsuFormatOpenArray(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_28), T56_, 2);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					T55_[0] = T58_;
					writeLine__45Em82MGXqv9biomV0DEbSgio(stderr, T55_, 1);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				LA47_: ;
				flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stderr);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			}
			goto LA16_;
			LA41_: ;
			LA16_: ;
		}
		LA9_: ;
	}
	LA7_: ;
	exit(((NI) 1));
	}BeforeRet_: ;
}
static N_INLINE(NIM_BOOL, contains__C6zknI9aj0qzb4XAbwM6y9cQsystem)(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(tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg, dotdot___N3IU9cJ5UjABfbcVFvMuhrQsystem)(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(void, handleError__T2cS0vBHloueESngIcrNPg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw eh, NimStringDesc* s) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 0) <= msg);
		if (!(T3_)) goto LA4_;
		T3_ = (msg <= ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 1));
		LA4_: ;
		if (!T3_) goto LA5_;
		{
			if (!((*conf).cmd == ((tyEnum_TCommands__VH3ghgQVwLSg3krOAoXigw) 14))) goto LA9_;
			log__tRbCZ4fGDe9a36bXIedwnwQ(s);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA9_: ;
		quit__Fedq6hIgzK5Ezo80jU9aqAg(conf, msg);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA5_: ;
	{
		NIM_BOOL T13_;
		NIM_BOOL T14_;
		NIM_BOOL T17_;
		tyObject_HSlice__9a7LZzxhxaoaVRy8OcVBd9cg T18_;
		T13_ = (NIM_BOOL)0;
		T14_ = (NIM_BOOL)0;
		T14_ = (((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 0) <= msg);
		if (!(T14_)) goto LA15_;
		T14_ = (msg <= ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 11));
		LA15_: ;
		T13_ = T14_;
		if (T13_) goto LA16_;
		T17_ = (NIM_BOOL)0;
		T18_ = dotdot___N3IU9cJ5UjABfbcVFvMuhrQsystem(((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 12), ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 51));
		T17_ = contains__C6zknI9aj0qzb4XAbwM6y9cQsystem(T18_, msg);
		if (!(T17_)) goto LA19_;
		T17_ = (((*conf).warningAsErrors[(NU)((((tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA) (msg))- 12))>>3] &(1U<<((NU)((((tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA) (msg))- 12))&7U)))!=0);
		LA19_: ;
		T13_ = T17_;
		LA16_: ;
		if (!T13_) goto LA20_;
		(*conf).errorCounter += ((NI) 1);
		(*conf).exitcode = ((NI8) 1);
		{
			if (!((*conf).errorMax <= (*conf).errorCounter)) goto LA24_;
			quit__Fedq6hIgzK5Ezo80jU9aqAg(conf, msg);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		goto LA22_;
		LA24_: ;
		{
			NIM_BOOL T27_;
			T27_ = (NIM_BOOL)0;
			T27_ = (eh == ((tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw) 1));
			if (!(T27_)) goto LA28_;
			T27_ = !(((*conf).cmd == ((tyEnum_TCommands__VH3ghgQVwLSg3krOAoXigw) 14)));
			LA28_: ;
			if (!T27_) goto LA29_;
			quit__Fedq6hIgzK5Ezo80jU9aqAg(conf, msg);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		goto LA22_;
		LA29_: ;
		{
			if (!(eh == ((tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw) 2))) goto LA32_;
			raiseRecoverableError__5jd5IdwI3N06CaI2zjEQsQ(s);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		goto LA22_;
		LA32_: ;
		LA22_: ;
	}
	LA20_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NOINLINE(void, liMessage__Q6JNH4uRwLyZrj0dJakHew)(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;
	NimStringDesc* kind;
	NimStringDesc* s;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	title = (NimStringDesc*)0;
	color = (tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg)0;
	ignoreMsg = NIM_FALSE;
	sev = (tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA)0;
	{
		if (!!((msg == ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 80)))) goto LA3_;
		kind = msgToStr__HYN9bJ2S4KlempiktmTpVKA(msg);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	goto LA1_;
	LA3_: ;
	{
		kind = ((NimStringDesc*) NIM_NIL);
	}
	LA1_: ;
	switch (msg) {
	case ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 0) ... ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 11):
	{
		sev = ((tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA) 2);
		writeContext__qseR1pyA8fYS6Wwflt2zAQ(conf, info);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_15));
		color = ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 31);
		{
			NIM_BOOL T9_;
			T9_ = (NIM_BOOL)0;
			T9_ = eqeq___59bygf5b7AsTVb9a1lVM66oA(info, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_16);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			if (!!(T9_)) goto LA10_;
			(*conf).m.lastError = info;
		}
		LA10_: ;
	}
	break;
	case ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 12) ... ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 51):
	{
		NIM_BOOL T13_;
		sev = ((tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA) 1);
		T13_ = (NIM_BOOL)0;
		T13_ = hasWarn__6vRFaWMeJsly8QVCeazPQA(conf, ((tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA) (msg)));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		ignoreMsg = !(T13_);
		{
			if (!(((*conf).warningAsErrors[(NU)((((tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA) (msg))- 12))>>3] &(1U<<((NU)((((tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA) (msg))- 12))&7U)))!=0)) goto LA16_;
			ignoreMsg = NIM_FALSE;
			title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_15));
		}
		goto LA14_;
		LA16_: ;
		{
			title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_17));
		}
		LA14_: ;
		{
			if (!!(ignoreMsg)) goto LA21_;
			writeContext__qseR1pyA8fYS6Wwflt2zAQ(conf, info);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA21_: ;
		color = ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 33);
		(*conf).warnCounter += ((NI) 1);
	}
	break;
	case ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 52) ... ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 82):
	{
		NIM_BOOL T24_;
		sev = ((tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA) 0);
		T24_ = (NIM_BOOL)0;
		T24_ = hasHint__6vRFaWMeJsly8QVCeazPQA_2(conf, ((tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA) (msg)));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		ignoreMsg = !(T24_);
		title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_18));
		color = ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 32);
		(*conf).hintCounter += ((NI) 1);
	}
	break;
	}
	{
		if (!isRaw) goto LA27_;
		s = arg;
	}
	goto LA25_;
	LA27_: ;
	{
		s = getMessageStr__bApVJwLsexHv26MjGbKUvQ(msg, arg);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA25_: ;
	{
		NimStringDesc* loc;
		NimStringDesc* kindmsg;
		if (!!(ignoreMsg)) goto LA32_;
		{
			NIM_BOOL T36_;
			NimStringDesc* T39_;
			NimStringDesc* T40_;
			T36_ = (NIM_BOOL)0;
			T36_ = eqeq___59bygf5b7AsTVb9a1lVM66oA(info, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_16);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			if (!!(T36_)) goto LA37_;
			T39_ = (NimStringDesc*)0;
			T40_ = (NimStringDesc*)0;
			T40_ = toFileLineCol__WM0LdwjY884aJ9cup7BS2vwmsgs(conf, info);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			T39_ = rawNewString((T40_ ? T40_->Sup.len : 0) + 1);
appendString(T39_, T40_);
appendString(T39_, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_12));
			loc = T39_;
		}
		goto LA34_;
		LA37_: ;
		{
			loc = ((NimStringDesc*) NIM_NIL);
		}
		LA34_: ;
		{
			if (!(((NI) 0) < (kind ? kind->Sup.len : 0))) goto LA44_;
			kindmsg = nsuFormatSingleElem(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_19), kind);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		goto LA42_;
		LA44_: ;
		{
			kindmsg = ((NimStringDesc*) NIM_NIL);
		}
		LA42_: ;
		{
			NimStringDesc* T51_;
			if (!!(((*conf).structuredErrorHook.ClP_0 == TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_4.ClP_0 && (*conf).structuredErrorHook.ClE_0 == TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_4.ClE_0))) goto LA49_;
			T51_ = (NimStringDesc*)0;
			T51_ = rawNewString((s ? s->Sup.len : 0) + (kindmsg ? kindmsg->Sup.len : 0) + 0);
appendString(T51_, s);
appendString(T51_, kindmsg);
			(*conf).structuredErrorHook.ClE_0? (*conf).structuredErrorHook.ClP_0(conf, info, T51_, sev, (*conf).structuredErrorHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_20)((*conf).structuredErrorHook.ClP_0))(conf, info, T51_, sev);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA49_: ;
		{
			NIM_BOOL T54_;
			T54_ = (NIM_BOOL)0;
			T54_ = ignoreMsgBecauseOfIdeTools__wvc4V6zIgESu6cpPmGz9abA(conf, msg);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			if (!!(T54_)) goto LA55_;
			{
				if (!(msg == ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 61))) goto LA59_;
				msgWrite__NefEsy9c5k5U9cqqVIWMbpKg(conf, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_21));
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			}
			goto LA57_;
			LA59_: ;
			{
				{
					tyArray__sMpvt1sOxOJ3LFGulnbeMQ T66_;
					NimStringDesc* T67_;
					if (!!(((*conf).writelnHook.ClP_0 == 0))) goto LA64_;
					nimZeroMem((void*)T66_, sizeof(tyArray__sMpvt1sOxOJ3LFGulnbeMQ));
					T66_[0] = copyString(loc);
					T66_[1] = copyString(title);
					T66_[2] = copyString(s);
					T66_[3] = copyString(kindmsg);
					T67_ = (NimStringDesc*)0;
					T67_ = concat__9brDhFFC9aYh4TjJmoPfzOdw(T66_, 4);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(T67_, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_22)((*conf).writelnHook.ClP_0))(T67_);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				goto LA62_;
				LA64_: ;
				{
					if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 23))&63U)))!=0)) goto LA69_;
					{
						tyArray__sMpvt1sOxOJ3LFGulnbeMQ T79_;
						if (!(((*conf).m.errorOutputs &(1U<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 0))&7U)))!=0)) goto LA73_;
						{
							if (!(*conf).lastMsgWasDot) goto LA77_;
							(*conf).lastMsgWasDot = NIM_FALSE;
							write__PArlm09bKklm2BLsCg6YtaA(stdout, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						}
						LA77_: ;
						nimZeroMem((void*)T79_, sizeof(tyArray__sMpvt1sOxOJ3LFGulnbeMQ));
						T79_[0] = copyString(loc);
						T79_[1] = copyString(title);
						T79_[2] = copyString(s);
						T79_[3] = copyString(kindmsg);
						writeLine__45Em82MGXqv9biomV0DEbSgio(stdout, T79_, 4);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stdout);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
					LA73_: ;
				}
				goto LA62_;
				LA69_: ;
				{
					if (!(((*conf).m.errorOutputs &(1U<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 1))&7U)))!=0)) goto LA81_;
					{
						if (!(*conf).lastMsgWasDot) goto LA85_;
						(*conf).lastMsgWasDot = NIM_FALSE;
						write__PArlm09bKklm2BLsCg6YtaA(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
					LA85_: ;
					{
						if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 21))&63U)))!=0)) goto LA89_;
						setStyle__y8lW2LrW2n5ZHaxH9bAf4WA(stderr, 1);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						write__PArlm09bKklm2BLsCg6YtaA(stderr, loc);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						resetAttributes__6J8xlU57R8cS9bLzTS89aM5g(stderr);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						setForegroundColor__vJutklhcnQq9akCXxcuSHAg(stderr, color, NIM_FALSE);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						write__PArlm09bKklm2BLsCg6YtaA(stderr, title);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						resetAttributes__6J8xlU57R8cS9bLzTS89aM5g(stderr);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						write__PArlm09bKklm2BLsCg6YtaA(stderr, s);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						setForegroundColor__vJutklhcnQq9akCXxcuSHAg(stderr, ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 36), NIM_FALSE);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						write__PArlm09bKklm2BLsCg6YtaA(stderr, kindmsg);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						resetAttributes__6J8xlU57R8cS9bLzTS89aM5g(stderr);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						write__PArlm09bKklm2BLsCg6YtaA(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
					goto LA87_;
					LA89_: ;
					{
						tyArray__sMpvt1sOxOJ3LFGulnbeMQ T92_;
						nimZeroMem((void*)T92_, sizeof(tyArray__sMpvt1sOxOJ3LFGulnbeMQ));
						T92_[0] = copyString(loc);
						T92_[1] = copyString(title);
						T92_[2] = copyString(s);
						T92_[3] = copyString(kindmsg);
						writeLine__45Em82MGXqv9biomV0DEbSgio(stderr, T92_, 4);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
					LA87_: ;
					flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stderr);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				goto LA62_;
				LA81_: ;
				LA62_: ;
				{
					NIM_BOOL T95_;
					NIM_BOOL T97_;
					T95_ = (NIM_BOOL)0;
					T95_ = hasHint__6vRFaWMeJsly8QVCeazPQA_2(conf, ((tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA) 73));
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					if (!(T95_)) goto LA96_;
					T97_ = (NIM_BOOL)0;
					T97_ = eqeq___59bygf5b7AsTVb9a1lVM66oA(info, TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_16);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					T95_ = !(T97_);
					LA96_: ;
					if (!T95_) goto LA98_;
					writeSurroundingSrc__9aRUSlnze6Qb3IwHkkQ9bv6g(conf, info);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				LA98_: ;
				{
					if (!(((*conf).mainPackageNotes[(NU)((((tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA) 82)- 12))>>3] &(1U<<((NU)((((tyEnum_TMsgKind__2KKSM6ZBSQgjWsy4q169bgA) 82)- 12))&7U)))!=0)) goto LA102_;
					{
						tyArray__24KAM9afIUgUaqBaEBB6r9bg T108_;
						NimStringDesc* T109_;
						NimStringDesc* T110_;
						NimStringDesc* T111_;
						NimStringDesc* T112_;
						if (!!(((*conf).writelnHook.ClP_0 == 0))) goto LA106_;
						nimZeroMem((void*)T108_, sizeof(tyArray__24KAM9afIUgUaqBaEBB6r9bg));
						T109_ = (NimStringDesc*)0;
						T109_ = toFileLineCol__fTQr4TRmeNwYlKvcPy3kYAmsgs(info2);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						T108_[0] = T109_;
						T108_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_25));
						T110_ = (NimStringDesc*)0;
						T110_ = msgToStr__HYN9bJ2S4KlempiktmTpVKA(((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 82));
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						T111_ = (NimStringDesc*)0;
						T111_ = nsuFormatSingleElem(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_19), T110_);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						T108_[2] = T111_;
						T112_ = (NimStringDesc*)0;
						T112_ = concat__9brDhFFC9aYh4TjJmoPfzOdw(T108_, 3);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(T112_, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_26)((*conf).writelnHook.ClP_0))(T112_);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
					goto LA104_;
					LA106_: ;
					{
						if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 23))&63U)))!=0)) goto LA114_;
						{
							tyArray__24KAM9afIUgUaqBaEBB6r9bg T124_;
							NimStringDesc* T125_;
							NimStringDesc* T126_;
							NimStringDesc* T127_;
							if (!(((*conf).m.errorOutputs &(1U<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 0))&7U)))!=0)) goto LA118_;
							{
								if (!(*conf).lastMsgWasDot) goto LA122_;
								(*conf).lastMsgWasDot = NIM_FALSE;
								write__PArlm09bKklm2BLsCg6YtaA(stdout, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
								if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							}
							LA122_: ;
							nimZeroMem((void*)T124_, sizeof(tyArray__24KAM9afIUgUaqBaEBB6r9bg));
							T125_ = (NimStringDesc*)0;
							T125_ = toFileLineCol__fTQr4TRmeNwYlKvcPy3kYAmsgs(info2);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							T124_[0] = T125_;
							T124_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_25));
							T126_ = (NimStringDesc*)0;
							T126_ = msgToStr__HYN9bJ2S4KlempiktmTpVKA(((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 82));
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							T127_ = (NimStringDesc*)0;
							T127_ = nsuFormatSingleElem(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_19), T126_);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							T124_[2] = T127_;
							writeLine__45Em82MGXqv9biomV0DEbSgio(stdout, T124_, 3);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stdout);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						}
						LA118_: ;
					}
					goto LA104_;
					LA114_: ;
					{
						if (!(((*conf).m.errorOutputs &(1U<<((NU)(((tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA) 1))&7U)))!=0)) goto LA129_;
						{
							if (!(*conf).lastMsgWasDot) goto LA133_;
							(*conf).lastMsgWasDot = NIM_FALSE;
							write__PArlm09bKklm2BLsCg6YtaA(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						}
						LA133_: ;
						{
							NimStringDesc* T139_;
							NimStringDesc* T140_;
							NimStringDesc* T141_;
							if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 21))&63U)))!=0)) goto LA137_;
							setStyle__y8lW2LrW2n5ZHaxH9bAf4WA(stderr, 1);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							T139_ = (NimStringDesc*)0;
							T139_ = toFileLineCol__fTQr4TRmeNwYlKvcPy3kYAmsgs(info2);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							write__PArlm09bKklm2BLsCg6YtaA(stderr, T139_);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							resetAttributes__6J8xlU57R8cS9bLzTS89aM5g(stderr);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							write__PArlm09bKklm2BLsCg6YtaA(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_25));
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							setForegroundColor__vJutklhcnQq9akCXxcuSHAg(stderr, ((tyEnum_ForegroundColor__ez9ah4IgQc0AbdW68acioDg) 36), NIM_FALSE);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							T140_ = (NimStringDesc*)0;
							T140_ = msgToStr__HYN9bJ2S4KlempiktmTpVKA(((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 82));
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							T141_ = (NimStringDesc*)0;
							T141_ = nsuFormatSingleElem(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_19), T140_);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							write__PArlm09bKklm2BLsCg6YtaA(stderr, T141_);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							resetAttributes__6J8xlU57R8cS9bLzTS89aM5g(stderr);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							resetAttributes__6J8xlU57R8cS9bLzTS89aM5g(stderr);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							write__PArlm09bKklm2BLsCg6YtaA(stderr, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_14));
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						}
						goto LA135_;
						LA137_: ;
						{
							tyArray__24KAM9afIUgUaqBaEBB6r9bg T143_;
							NimStringDesc* T144_;
							NimStringDesc* T145_;
							NimStringDesc* T146_;
							nimZeroMem((void*)T143_, sizeof(tyArray__24KAM9afIUgUaqBaEBB6r9bg));
							T144_ = (NimStringDesc*)0;
							T144_ = toFileLineCol__fTQr4TRmeNwYlKvcPy3kYAmsgs(info2);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							T143_[0] = T144_;
							T143_[1] = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_25));
							T145_ = (NimStringDesc*)0;
							T145_ = msgToStr__HYN9bJ2S4KlempiktmTpVKA(((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 82));
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							T146_ = (NimStringDesc*)0;
							T146_ = nsuFormatSingleElem(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_19), T145_);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							T143_[2] = T146_;
							writeLine__45Em82MGXqv9biomV0DEbSgio(stderr, T143_, 3);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						}
						LA135_: ;
						flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stderr);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
					goto LA104_;
					LA129_: ;
					LA104_: ;
				}
				LA102_: ;
			}
			LA57_: ;
		}
		LA55_: ;
	}
	LA32_: ;
	handleError__T2cS0vBHloueESngIcrNPg(conf, msg, eh, s);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q, newLineInfo__NPagzbOMpGo9aqJmfnDrITg)(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;
}
N_LIB_PRIVATE N_NIMCALL(void, internalErrorImpl__PTSwZ6HM9bGBf7vF9cnDmwVw)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* errMsg, tyTuple__kN8up2W6YKc5YA9avn5mV5w info2) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = ((*conf).cmd == ((tyEnum_TCommands__VH3ghgQVwLSg3krOAoXigw) 14));
		if (!(T3_)) goto LA4_;
		T3_ = ((*conf).structuredErrorHook.ClP_0 == 0);
		LA4_: ;
		if (!T3_) goto LA5_;
		goto BeforeRet_;
	}
	LA5_: ;
	writeContext__qseR1pyA8fYS6Wwflt2zAQ(conf, info);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	liMessage__Q6JNH4uRwLyZrj0dJakHew(conf, info, ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 1), errMsg, ((tyEnum_TErrorHandling__q4fXoCN3Xdcm6SS9cUkWkWw) 1), info2, NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
static N_INLINE(void, shallow__cnzwaZQQIa73ryXE31wijQsystem)(NimStringDesc** s) {
	TGenericSeq* s_2;
	s_2 = ((TGenericSeq*) ((*s)));
	{
		NimStringDesc* T5_;
		if (!(s_2 == 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__ieSCOeB9alirM2uC0jUt1Dg)(NimStringDesc** path) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	toLowerAscii__I234FTAl36mfiUP0mS9cMVg(path);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
static N_INLINE(void, unsureAsgnRef)(void** dest, void* src) {
	(*dest) = src;
}
static N_INLINE(NF, toFloat__y1Fm9aHmxw9bS2jir137Fu5gsystem)(NI i) {
	NF result;
	result = (NF)0;
	result = ((NF) (i));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, toCChar__JTr4d3QfIoJwmoCY9bN9adqQ)(NIM_CHAR c, NimStringDesc** result) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	switch (((NU8)(c))) {
	case 0 ... 31:
	case 127 ... 255:
	{
		NimStringDesc* T2_;
		(*result) = addChar((*result), 92);
		T2_ = (NimStringDesc*)0;
		T2_ = nsuToOctal(c);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		(*result) = resizeString((*result), (T2_ ? T2_->Sup.len : 0) + 0);
appendString((*result), T2_);
	}
	break;
	case 39:
	case 34:
	case 92:
	case 63:
	{
		(*result) = addChar((*result), 92);
		(*result) = addChar((*result), c);
	}
	break;
	default:
	{
		(*result) = addChar((*result), c);
	}
	break;
	}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*, makeCString__vQJydtKy4Nf6bXPYtbmjtg)(NimStringDesc* s) {
	tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* result;
	NimStringDesc* res;
	NF T1_;
	tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* T9_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*)0;
	result = NIM_NIL;
	T1_ = (NF)0;
	T1_ = toFloat__y1Fm9aHmxw9bS2jir137Fu5gsystem((s ? s->Sup.len : 0));
	res = rawNewString(((NI) ((NI)(((NI) (((NF)(T1_) * (NF)(1.1000000000000001e+000)))) + ((NI) 1)))));
	res = resizeString(res, 1);
appendString(res, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_31));
	{
		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;
				{
					if (!((NI)((NI)(i + ((NI) 1)) % ((NI) 64)) == ((NI) 0))) goto LA7_;
					res = resizeString(res, 3);
appendString(res, ((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_32));
				}
				LA7_: ;
				toCChar__JTr4d3QfIoJwmoCY9bN9adqQ(s->data[i], (&res));
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				i_2 += ((NI) 1);
			} LA4: ;
		}
	}
	res = addChar(res, 34);
	T9_ = (tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*)0;
	T9_ = rope__yShmEg9cffWxI7s5XzEKBow(res);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	add__IM4kcMNkkOLJtqdEqSxR8A(&result, T9_);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, newFileInfo__H9aV055mSUDR4HgT7SX79aqA)(NimStringDesc* fullPath, NimStringDesc* projPath, tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw* Result) {
	NimStringDesc* T1_;
	tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* T2_;
	tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* T3_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	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;
	(*Result).fullPath = copyString(fullPath);
	(*Result).projPath = copyString(projPath);
	T1_ = (NimStringDesc*)0;
	T1_ = nosextractFilename(fullPath);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	(*Result).shortName = T1_;
	T2_ = (tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*)0;
	T2_ = makeCString__vQJydtKy4Nf6bXPYtbmjtg((*Result).shortName);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	(*Result).quotedName = T2_;
	T3_ = (tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA*)0;
	T3_ = makeCString__vQJydtKy4Nf6bXPYtbmjtg(fullPath);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	(*Result).quotedFullName = T3_;
	(*Result).lines = NIM_NIL;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NI32, fileInfoIdx__Eu6qwnWjBAlxk5Kd4AsfYg)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* filename, NIM_BOOL* isKnownFile) {
	NI32 result;
	NimStringDesc* canon;
	NIM_BOOL pseudoPath;
	NimStringDesc* T2_;
	NimStringDesc* canon2;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI32)0;
	canon = (NimStringDesc*)0;
	pseudoPath = NIM_FALSE;
	T2_ = (NimStringDesc*)0;
	T2_ = canonicalizePath__9bhgFqdEZM7DoX7p3U69bQEg(conf, filename);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	canon = T2_;
	shallow__cnzwaZQQIa73ryXE31wijQsystem((&canon));
	if (NIM_UNLIKELY(*nimErr_)) {
		LA1_:;
		if (isObj(nimBorrowCurrentException()->Sup.m_type, (&NTI__BeJgrOdDsczOwEWOZbRfKA_))) {
			*nimErr_ = NIM_FALSE;
			canon = copyString(filename);
			pseudoPath = NIM_TRUE;
			popCurrentException();
			LA4_:;
		}
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	canon2 = (NimStringDesc*)0;
	forceCopy__9aS5wD8MwJoemnVo59bh54Sg((&canon2), canon);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	canonicalCase__ieSCOeB9alirM2uC0jUt1Dg((&canon2));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		NIM_BOOL T8_;
		NI32* T11_;
		T8_ = (NIM_BOOL)0;
		T8_ = hasKey__V2bna9aem30Wfb1MT9bSnPzQ((*conf).m.filenameToIndexTbl, canon2);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!T8_) goto LA9_;
		(*isKnownFile) = NIM_TRUE;
		T11_ = (NI32*)0;
		T11_ = X5BX5D___cYD9bwEY2FvxLm9bWq5KUhtA((&(*conf).m.filenameToIndexTbl), canon2);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		result = (*T11_);
	}
	goto LA6_;
	LA9_: ;
	{
		NI T13_;
		NimStringDesc* T14_;
		NimStringDesc* T15_;
		tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw T21_;
		NI T22_;
		(*isKnownFile) = NIM_FALSE;
		T13_ = ((*conf).m.fileInfos ? (*conf).m.fileInfos->Sup.len : 0);
		result = ((NI32) (T13_));
		T14_ = (NimStringDesc*)0;
		T14_ = canon;
		T15_ = (NimStringDesc*)0;
		{
			if (!pseudoPath) goto LA18_;
			T15_ = copyString(filename);
		}
		goto LA16_;
		LA18_: ;
		{
			T15_ = relativeTo__zjjWvxBunys9bbBJHoqyLyQ(canon, (*conf).projectPath, 92);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA16_: ;
		nimZeroMem((void*)(&T21_), sizeof(tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw));
		newFileInfo__H9aV055mSUDR4HgT7SX79aqA(T14_, T15_, (&T21_));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		(*conf).m.fileInfos = (tySequence__Zi9cGbCWofbtABoHJ5RbLNQ*) incrSeqV3((TGenericSeq*)((*conf).m.fileInfos), (&NTI__Zi9cGbCWofbtABoHJ5RbLNQ_));
		T22_ = (*conf).m.fileInfos->Sup.len++;
		genericAssign((void*)(&(*conf).m.fileInfos->data[T22_]), (void*)(&T21_), (&NTI__GE3hAakXKOEpch4ap3zXAw_));
		X5BX5Deq___anizD9c0GXTQTVVON49cli6g((&(*conf).m.filenameToIndexTbl), canon2, result);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA6_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI32, fileInfoIdx__3HRSVgYDcnQTolSZGx1zjA)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* filename) {
	NI32 result;
	NIM_BOOL dummy;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI32)0;
	dummy = (NIM_BOOL)0;
	result = fileInfoIdx__Eu6qwnWjBAlxk5Kd4AsfYg(conf, filename, (&dummy));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, exactEquals__59bygf5b7AsTVb9a1lVM66oA_2)(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, pushInfoContext__uDLK9aoAOWwwFTev4NOwF7Q)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* detail) {
	tyTuple__z822nu9bFF1AlQnLrHjdwpA T1_;
	NI T2_;
	nimZeroMem((void*)(&T1_), sizeof(tyTuple__z822nu9bFF1AlQnLrHjdwpA));
	T1_.Field0 = info;
	T1_.Field1 = copyString(detail);
	(*conf).m.msgContext = (tySequence__tNFrR3kRuS1FSwuiLGoSSA*) incrSeqV3((TGenericSeq*)((*conf).m.msgContext), (&NTI__tNFrR3kRuS1FSwuiLGoSSA_));
	T2_ = (*conf).m.msgContext->Sup.len++;
	(*conf).m.msgContext->data[T2_].Field0 = T1_.Field0;
	(*conf).m.msgContext->data[T2_].Field1 = copyString(T1_.Field1);
}
N_LIB_PRIVATE N_NIMCALL(void, popInfoContext__O9arH9bYenXLOr27ZSmcQnEw)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf) {
	NI T1_;
	T1_ = ((*conf).m.msgContext ? (*conf).m.msgContext->Sup.len : 0);
	(*conf).m.msgContext = (tySequence__tNFrR3kRuS1FSwuiLGoSSA*) setLengthSeqV2(&((*conf).m.msgContext)->Sup, (&NTI__tNFrR3kRuS1FSwuiLGoSSA_), ((NI) ((NI)(T1_ - ((NI) 1)))));
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___aQsiZUvE4SFfnWyKx1JgKA)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info) {
	NimStringDesc* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	result = toFileLineCol__WM0LdwjY884aJ9cup7BS2vwmsgs(conf, info);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, suggestWriteln__NefEsy9c5k5U9cqqVIWMbpKg_2)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* s) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		if (!(((*conf).m.errorOutputs &(1U<<((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__45Em82MGXqv9biomV0DEbSgio(stdout, T9_, 1);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			flushFile__fU6ZlJAtQ9bre04EDZLdGsA(stdout);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		goto LA5_;
		LA7_: ;
		{
			(*conf).writelnHook.ClE_0? (*conf).writelnHook.ClP_0(s, (*conf).writelnHook.ClE_0):((TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_33)((*conf).writelnHook.ClP_0))(s);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA5_: ;
	}
	LA3_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, suggestQuit__5gyVlJxpO0KQGkItjZbJJg)(void) {
	tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ* T1_;
{	T1_ = (tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ*)0;
	T1_ = (tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ*) newObj((&NTI__q2mvqo4oBiq6VrjsaIw7rg_), sizeof(tyObject_ESuggestDone__cDtWY9cE7zf8BAC5QcEZZkQ));
	(*T1_).Sup.Sup.Sup.Sup.m_type = (&NTI__cDtWY9cE7zf8BAC5QcEZZkQ_);
	(*T1_).Sup.Sup.Sup.name = "ESuggestDone";
	(*T1_).Sup.Sup.Sup.message = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_34));
	(*T1_).Sup.Sup.Sup.parent = NIM_NIL;
	raiseExceptionEx((Exception*)T1_, "ESuggestDone", "suggestQuit", "msgs.nim", 152);
	goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, msgQuit__PlZXt6qHCDDk29c9ac4IuLGA)(NI8 x) {
	exit(((NI) (x)));
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, formatMsg__1JLtPXtBEOA0aYSS8UEJDw)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w msg, NimStringDesc* arg) {
	NimStringDesc* result;
	NimStringDesc* title;
	NimStringDesc* T4_;
	NimStringDesc* T5_;
	NimStringDesc* T6_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	switch (msg) {
	case ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 12) ... ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 51):
	{
		title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_17));
	}
	break;
	case ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 52) ... ((tyEnum_TMsgKind__29cbg2fC1z5iM1PAI28kR5w) 82):
	{
		title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_18));
	}
	break;
	default:
	{
		title = copyString(((NimStringDesc*) &TM__9bxt9c9cHMsIpkKKq9ca25JhvQ_15));
	}
	break;
	}
	T4_ = (NimStringDesc*)0;
	T5_ = (NimStringDesc*)0;
	T5_ = toFileLineCol__WM0LdwjY884aJ9cup7BS2vwmsgs(conf, info);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	T6_ = (NimStringDesc*)0;
	T6_ = getMessageStr__bApVJwLsexHv26MjGbKUvQ(msg, arg);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	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_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NIM_BOOL, lteqpercent___hPljn3JCDQ00ua1R07X9bxQ_2system)(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__TXxF2CG3kwLqptPWf0kC9aQ)(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___hPljn3JCDQ00ua1R07X9bxQ_2system(T9_, i);
		if (!T10_) goto LA11_;
		nimZeroMem((void*)(&result), sizeof(tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q));
		result.line = ((NU16) 0);
		result.col = ((NI16) -1);
		result.fileIndex = ((NI32) -1);
	}
	goto LA7_;
	LA11_: ;
	{
		result = (*conf).m.msgContext->data[i].Field0;
	}
	LA7_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, getInfoContextLen__QY5gXnIUBOUa79b5tGece0A)(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__JRH1QeGlTzlBOChAZ7bvoQ)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI L) {
	(*conf).m.msgContext = (tySequence__tNFrR3kRuS1FSwuiLGoSSA*) setLengthSeqV2(&((*conf).m.msgContext)->Sup, (&NTI__tNFrR3kRuS1FSwuiLGoSSA_), ((NI) (L)));
}
