Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define NIM_INTBITS 64
- #include "nimbase.h"
- #include <stdio.h>
- typedef struct NimStringDesc NimStringDesc;
- typedef struct TGenericSeq TGenericSeq;
- struct TGenericSeq {
- NI len;
- NI reserved;
- };
- typedef NIM_CHAR TY611[100000001];
- struct NimStringDesc {
- TGenericSeq Sup;
- TY611 data;
- };
- N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
- static N_INLINE(NI, addInt)(NI a, NI b);
- N_NOINLINE(void, raiseOverflow)(void);
- static N_INLINE(void, initStackBottom)(void);
- N_NOINLINE(void, setStackBottom)(void* thestackbottom);
- static N_INLINE(void, nimFrame)(TFrame* s);
- static N_INLINE(void, popFrame)(void);
- N_NOINLINE(void, systemInit)(void);
- N_NOINLINE(void, systemDatInit)(void);
- N_NOINLINE(void, fileInit)(void);
- N_NOINLINE(void, fileDatInit)(void);
- NI i_77011;
- extern TFrame* frameptr_11825;
- static N_INLINE(NI, addInt)(NI a, NI b) {
- NI result;
- result = 0;
- result = (NI)((NU64)(a) + (NU64)(b));
- {
- NIM_BOOL LOC3;
- LOC3 = 0;
- LOC3 = (0 <= (NI)(result ^ a));
- if (LOC3) goto LA4;
- LOC3 = (0 <= (NI)(result ^ b));
- LA4: ;
- if (!LOC3) goto LA5;
- goto BeforeRet;
- } LA5: ;
- raiseOverflow(); BeforeRet: ; return result;
- }
- static N_INLINE(void, initStackBottom)(void) {
- void* volatile locals;
- locals = 0;
- locals = ((void*) (&locals));
- setStackBottom(locals);}int cmdCount;
- char** cmdLine;
- char** gEnv;
- N_CDECL(void, NimMain)(void) {
- systemDatInit();
- fileDatInit();
- initStackBottom();
- systemInit();
- fileInit();
- }
- int main(int argc, char** args, char** env) {
- cmdLine = args;
- cmdCount = argc;
- gEnv = env;
- NimMain();
- return nim_program_result;
- }
- static N_INLINE(void, nimFrame)(TFrame* s) {
- (*s).prev = frameptr_11825;
- frameptr_11825 = s;
- }
- static N_INLINE(void, popFrame)(void) {
- frameptr_11825 = (*frameptr_11825).prev;
- }N_NOINLINE(void, fileInit)(void) {
- NI res_77013;
- nimfr("file", "file.nim")
- nimln(1304, "system.nim");
- res_77013 = 1;
- nimln(1305, "system.nim");
- while (1) {
- NimStringDesc* LOC2;
- nimln(1305, "system.nim");
- if (!(res_77013 <= 10)) goto LA1;
- nimln(1304, "system.nim");
- i_77011 = res_77013;
- nimln(2, "file.nim");
- nimln(2, "file.nim");
- LOC2 = 0;
- LOC2 = nimIntToStr(i_77011);
- printf("%s\012", (LOC2)->data);
- nimln(1307, "system.nim");
- res_77013 = addInt(res_77013, 1);
- } LA1: ;
- popFrame();
- }
- N_NOINLINE(void, fileDatInit)(void) {
- }
Add Comment
Please, Sign In to add comment