interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / src / cudapp_om_dnn_activations.c

420 lines · 32431 bytes Raw Blame History
1#if defined(__GNUC__)
2#pragma GCC diagnostic push
3#pragma GCC diagnostic ignored "-Wunused-function"
4#pragma GCC diagnostic ignored "-Wunused-parameter"
5#pragma GCC diagnostic ignored "-Wmisleading-indentation"
6#endif
7/* Emitted by Omega Bridge. GNU C11, POSIX. Scalars use canonical 64-bit bits. */
8#include <stdint.h>
9#include <stddef.h>
10#include <unistd.h>
11#include <errno.h>
12#include <setjmp.h>
13static _Thread_local jmp_buf o_jmp;
14static _Thread_local int o_busy;
15static __attribute__((noreturn)) void o_trap(int c){if(o_busy)longjmp(o_jmp,c);_exit(100+c);}
16static _Thread_local unsigned o_depth;
17static void o_enter(void){if(++o_depth>128)o_trap(6);}
18static uint64_t o_leave(uint64_t v){--o_depth;return v;}
19static unsigned o_width(unsigned t){static const unsigned w[]={0,1,8,16,32,64,8,16,32,64};return w[t];}
20static __int128 o_value(unsigned t,uint64_t v){return t>=6 && v>>63 ? (__int128)v-(((__int128)1)<<64):(__int128)v;}
21static uint64_t o_norm(unsigned t,__int128 v,int code){unsigned w=o_width(t);if(t>=6){__int128 m=((__int128)1)<<(w-1);if(v< -m||v>=m)o_trap(code);}else {if(v<0||(__uint128_t)v>=(((__uint128_t)1)<<w))o_trap(code);}return (uint64_t)v;}
22static uint64_t o_cast(unsigned t,unsigned s,uint64_t a){return o_norm(t,o_value(s,a),5);}
23static uint64_t o_op(unsigned op,unsigned t,uint64_t a,uint64_t b){
24 __int128 x=o_value(t,a),y=o_value(t,b),z=0;unsigned w=o_width(t);uint64_t mask=w==64?UINT64_MAX:(((uint64_t)1<<w)-1);
25 if(op>=6&&op<=11){switch(op){case 6:return x==y;case 7:return x!=y;case 8:return x<y;case 9:return x<=y;case 10:return x>y;default:return x>=y;}}
26 if(op==12)return a&b;if(op==13)return a|b;if(op==14)return a^b;
27 if(op==15||op==16){if(b>=w)o_trap(7);if(op==15)return t>=6?o_norm(t,x*(((__int128)1)<<b),1):(a<<b)&mask;if(t<6)return a>>b;if(!b)return a;return (a>>b)|((a>>63)?(UINT64_MAX<<(64-b)):0);}
28 if(op==17){if(t<6)return (0-a)&mask;return o_norm(t,-x,1);}if(op==18)return t==1?!a:(t>=6?~a:(~a)&mask);
29 if(op==4||op==5){if(!b)o_trap(2);z=op==4?x/y:x%y;return t>=6?o_norm(t,z,1):(uint64_t)z;}
30 if(t<6){if(op==1)return (a+b)&mask;if(op==2)return (a-b)&mask;return (a*b)&mask;}
31 if(op==1)z=x+y;if(op==2)z=x-y;if(op==3)z=x*y;return o_norm(t,z,1);
32}
33static uint64_t o_get(const void *p,uint64_t n,uint64_t i,unsigned t){if(i>=n)o_trap(3);unsigned w=t==11?32:t==12?64:o_width(t);const uint8_t *b=(const uint8_t*)p+i*(w/8);uint64_t v=0;if(w==8)v=b[0];else if(w==16){uint16_t x;__builtin_memcpy(&x,b,2);v=x;}else if(w==32){uint32_t x;__builtin_memcpy(&x,b,4);v=x;}else if(w==64)__builtin_memcpy(&v,b,8);if(t>=6&&t<=9&&w<64&&(v>> (w-1)))v|=UINT64_MAX<<w;return v;}
34static void o_put(void *p,uint64_t n,uint64_t i,uint64_t v,unsigned t){if(i>=n)o_trap(3);unsigned w=t==11?32:t==12?64:o_width(t);if(t<11)o_norm(t,o_value(t,v),5);uint8_t *b=(uint8_t*)p+i*(w/8);if(w==8)b[0]=(uint8_t)v;else if(w==16){uint16_t x=(uint16_t)v;__builtin_memcpy(b,&x,2);}else if(w==32){uint32_t x=(uint32_t)v;__builtin_memcpy(b,&x,4);}else if(w==64)__builtin_memcpy(b,&v,8);}
35static void o_fill(void *p,uint64_t n,uint64_t v,unsigned t){for(uint64_t i=0;i<n;i++)o_put(p,n,i,v,t);}
36static uint64_t o_io(unsigned op,uint64_t fd,const void *p,uint64_t n,uint64_t off,uint64_t len){if(off>n||len>n-off)o_trap(3);int f=(int)o_value(8,fd);ssize_t r=op==1?read(f,(uint8_t*)p+off,(size_t)len):write(f,(const uint8_t*)p+off,(size_t)len);return r<0?(uint64_t)(-(int64_t)errno):(uint64_t)r;}
37static int o_valid(unsigned t,uint64_t v){unsigned w=o_width(t);__int128 x=o_value(t,v);__int128 m=((__int128)1)<<(t>=6?w-1:w);return t>=6?x>=-m&&x<m:x>=0&&x<m;}
38static int o_buf(const void *p,uint64_t n,uint64_t want,unsigned t){uintptr_t a=(uintptr_t)p;uint64_t z=t==11?4:t==12?8:o_width(t)/8;return p&&n==want&&a%z==0&&n<=UINTPTR_MAX/z&&a<=UINTPTR_MAX-n*z;}
39static int o_overlap(const void *a,uint64_t an,const void *b,uint64_t bn){uintptr_t x=(uintptr_t)a,y=(uintptr_t)b;return x<y+bn&&y<x+an;}
40#if !defined(__BYTE_ORDER__) || __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__
41#error seeded C profile requires little-endian storage
42#endif
43#include <float.h>
44#include <fenv.h>
45#if FLT_RADIX != 2 || FLT_MANT_DIG != 24 || FLT_MAX_EXP != 128 || DBL_MANT_DIG != 53 || DBL_MAX_EXP != 1024 || FLT_EVAL_METHOD != 0
46#error unsupported binary32 or binary64 environment
47#endif
48#if defined(__FAST_MATH__)
49#error fast math is not a supported Omega environment
50#endif
51static int o_fnan(unsigned t,uint64_t a){return t==11?((a>>23&255)==255&&(a&UINT64_C(0x7fffff))!=0):((a>>52&2047)==2047&&(a&UINT64_C(0xfffffffffffff))!=0);}
52static uint64_t o_fpn(unsigned t,uint64_t a,uint64_t b,uint64_t r){uint64_t q=t==11?UINT64_C(0x400000):UINT64_C(0x8000000000000);if(!o_fnan(t,r))return r;if(o_fnan(t,a)&&!(a&q))return a|q;if(o_fnan(t,b)&&!(b&q))return b|q;if(o_fnan(t,a))return a;if(o_fnan(t,b))return b;return t==11?UINT64_C(0x7fc00000):UINT64_C(0x7ff8000000000000);}
53static float o_sqrt32(float a){float r;
54#if defined(__aarch64__)
55__asm__("fsqrt %s0, %s1":"=w"(r):"w"(a));
56#elif defined(__x86_64__)
57__asm__("sqrtss %1, %0":"=x"(r):"x"(a));
58#else
59#error unsupported seeded float sqrt target
60#endif
61return r;}
62static double o_sqrt64(double a){double r;
63#if defined(__aarch64__)
64__asm__("fsqrt %d0, %d1":"=w"(r):"w"(a));
65#elif defined(__x86_64__)
66__asm__("sqrtsd %1, %0":"=x"(r):"x"(a));
67#else
68#error unsupported seeded float sqrt target
69#endif
70return r;}
71static uint64_t o_fp(unsigned op,unsigned t,uint64_t a,uint64_t b){if(t==11){uint32_t ua=(uint32_t)a,ub=(uint32_t)b,ur;float x,y;volatile float z;__builtin_memcpy(&x,&ua,4);__builtin_memcpy(&y,&ub,4);switch(op){case 1:z=x+y;break;case 2:z=x-y;break;case 3:z=x*y;break;case 4:z=x/y;break;case 6:return x==y;case 7:return x!=y;case 8:return x<y;case 9:return x<=y;case 10:return x>y;case 11:return x>=y;case 17:return ua^UINT32_C(0x80000000);case 19:return ua&UINT32_C(0x7fffffff);case 20:z=o_sqrt32(x);break;default:__builtin_trap();}__builtin_memcpy(&ur,(const void*)&z,4);return o_fpn(11,ua,ub,ur);}uint64_t ur;double x,y;volatile double z;__builtin_memcpy(&x,&a,8);__builtin_memcpy(&y,&b,8);switch(op){case 1:z=x+y;break;case 2:z=x-y;break;case 3:z=x*y;break;case 4:z=x/y;break;case 6:return x==y;case 7:return x!=y;case 8:return x<y;case 9:return x<=y;case 10:return x>y;case 11:return x>=y;case 17:return a^UINT64_C(0x8000000000000000);case 19:return a&UINT64_C(0x7fffffffffffffff);case 20:z=o_sqrt64(x);break;default:__builtin_trap();}__builtin_memcpy(&ur,(const void*)&z,8);return o_fpn(12,a,b,ur);}
72static uint64_t o_fcv(unsigned t,unsigned s,uint64_t a){uint32_t u=(uint32_t)a;float f;double x;if(s==t)return a;if(s<11){if(t==11){volatile float z=s>=6?(float)(int64_t)a:(float)a;__builtin_memcpy(&u,(const void*)&z,4);return u;}volatile double z=s>=6?(double)(int64_t)a:(double)a;__builtin_memcpy(&a,(const void*)&z,8);return a;}if(t==12){if(o_fnan(11,a))return (uint64_t)(u>>31)<<63|UINT64_C(0x7ff8000000000000)|(uint64_t)(u&UINT32_C(0x7fffff))<<29;__builtin_memcpy(&f,&u,4);volatile double z=f;__builtin_memcpy(&a,(const void*)&z,8);return a;}if(t==11){if(o_fnan(12,a))return (a>>63)<<31|UINT64_C(0x7fc00000)|(a>>29&UINT64_C(0x3fffff));__builtin_memcpy(&x,&a,8);volatile float z=(float)x;__builtin_memcpy(&u,(const void*)&z,4);return u;}if(s==11){__builtin_memcpy(&f,&u,4);x=f;}else __builtin_memcpy(&x,&a,8);if(x!=x)return 0;unsigned w=o_width(t);if(t>=6){double m=(double)((uint64_t)1<<(w-1));if(x>=m)return ((uint64_t)1<<(w-1))-1;if(x<-m)return (uint64_t)0-((uint64_t)1<<(w-1));return (uint64_t)(int64_t)x;}if(x<1.0)return 0;if(x>=(w==64?18446744073709551616.0:(double)((uint64_t)1<<w)))return w==64?UINT64_MAX:((uint64_t)1<<w)-1;return (uint64_t)x;}
73#include <string.h>
74static uint64_t o_arg32(float v){uint32_t b;memcpy(&b,&v,4);return b;}
75static uint64_t o_arg64(double v){uint64_t b;memcpy(&b,&v,8);return b;}
76static uint64_t f0(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3);
77static uint64_t f1(uint64_t v0);
78static uint64_t f2(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3);
79static uint64_t f3(void *v0, uint64_t v0_n, uint64_t v1);
80static uint64_t f4(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4, uint64_t v5);
81static uint64_t f5(void *v0, uint64_t v0_n, uint64_t v1);
82static uint64_t f6(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3);
83static uint64_t f7(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4, uint64_t v5);
84static uint64_t f8(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4, uint64_t v5);
85static uint64_t f9(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4, uint64_t v5);
86static uint64_t f10(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4, uint64_t v5);
87static uint64_t f11(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3);
88static uint64_t f12(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3);
89static uint64_t f13(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2);
90static uint64_t f14(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3);
91static uint64_t f15(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4);
92static uint64_t f16(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4);
93static uint64_t f17(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2);
94static uint64_t f18(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n);
95static uint64_t f19(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n);
96static uint64_t f20(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2);
97static uint64_t f21(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2);
98static uint64_t f22(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3, void *v4, uint64_t v4_n, void *v5, uint64_t v5_n);
99static uint64_t f0(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3){
100o_enter();
101return o_leave(({uint64_t _a=({uint64_t _a=v0;uint64_t _b=({uint64_t _a=v1;uint64_t _b=16ULL;o_op(15, 5, _a,_b);});o_op(13, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=v2;uint64_t _b=32ULL;o_op(15, 5, _a,_b);});uint64_t _b=({uint64_t _a=v3;uint64_t _b=48ULL;o_op(15, 5, _a,_b);});o_op(13, 5, _a,_b);});o_op(13, 5, _a,_b);}));
102}
103static uint64_t f1(uint64_t v0){
104o_enter();
105if(({uint64_t _a=v0;uint64_t _b=65535ULL;o_op(6, 5, _a,_b);})){
106return o_leave(18446744073709551615ULL);
107}
108return o_leave(v0);
109}
110static uint64_t f2(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3){
111o_enter();
112return o_leave(({uint64_t _a=({uint64_t _a=({uint64_t _a=v0;uint64_t _b=9ULL;o_op(15, 5, _a,_b);});uint64_t _b=({uint64_t _a=v1;uint64_t _b=14ULL;o_op(15, 5, _a,_b);});o_op(13, 5, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=v2;uint64_t _b=17ULL;o_op(15, 5, _a,_b);});uint64_t _b=({uint64_t _a=v3;uint64_t _b=20ULL;o_op(15, 5, _a,_b);});o_op(13, 5, _a,_b);});o_op(13, 5, _a,_b);}));
113}
114static uint64_t f3(void *v0, uint64_t v0_n, uint64_t v1){
115o_enter();
116uint64_t __attribute__((unused)) v2=o_get(v0, v0_n, 3ULL, 5);
117uint64_t __attribute__((unused)) v3=({uint64_t p0=6ULL;uint64_t p1=7ULL;uint64_t p2=7ULL;uint64_t p3=v2;f2(p0, p1, p2, p3);});
118uint64_t __attribute__((unused)) v4=0ULL;
119uint64_t __attribute__((unused)) v5=({uint64_t _a=v1;uint64_t _b=255ULL;o_op(12, 5, _a,_b);});
120if(({uint64_t _a=v5;uint64_t _b=1ULL;o_op(6, 5, _a,_b);})){
121v3=({uint64_t p0=14ULL;uint64_t p1=7ULL;uint64_t p2=7ULL;uint64_t p3=v2;f2(p0, p1, p2, p3);});
122}
123if(({uint64_t _a=v5;uint64_t _b=2ULL;o_op(6, 5, _a,_b);})){
124v3=({uint64_t _a=({uint64_t p0=4ULL;uint64_t p1=0ULL;uint64_t p2=1ULL;uint64_t p3=v2;f2(p0, p1, p2, p3);});uint64_t _b=8192ULL;o_op(13, 5, _a,_b);});
125v4=3ULL;
126}
127if(({uint64_t _a=v5;uint64_t _b=3ULL;o_op(6, 5, _a,_b);})){
128v3=({uint64_t _a=({uint64_t p0=4ULL;uint64_t p1=7ULL;uint64_t p2=1ULL;uint64_t p3=v2;f2(p0, p1, p2, p3);});uint64_t _b=8192ULL;o_op(13, 5, _a,_b);});
129v4=2ULL;
130}
131if(({uint64_t _a=v5;uint64_t _b=4ULL;o_op(6, 5, _a,_b);})){
132v3=({uint64_t _a=({uint64_t p0=4ULL;uint64_t p1=2ULL;uint64_t p2=7ULL;uint64_t p3=v2;f2(p0, p1, p2, p3);});uint64_t _b=8192ULL;o_op(13, 5, _a,_b);});
133v4=4ULL;
134}
135if(({uint64_t _a=v5;uint64_t _b=5ULL;o_op(6, 5, _a,_b);})){
136v3=({uint64_t p0=5ULL;uint64_t p1=7ULL;uint64_t p2=7ULL;uint64_t p3=v2;f2(p0, p1, p2, p3);});
137if(({uint64_t _a=({uint64_t _a=v1;uint64_t _b=8ULL;o_op(16, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
138v4=v2;
139}
140}
141{uint64_t _i=3ULL;uint64_t _v=v4;o_put(v0, v0_n, _i,_v,5);}
142return o_leave(v3);
143}
144static uint64_t f4(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4, uint64_t v5){
145o_enter();
146uint64_t __attribute__((unused)) v6=o_get(v1, v1_n, 0ULL, 5);
147if(({uint64_t _a=v6;uint64_t _b=1024ULL;o_op(11, 5, _a,_b);})){
148{uint64_t _i=4ULL;uint64_t _v=1ULL;o_put(v1, v1_n, _i,_v,5);}
149return o_leave(0);
150}
151uint64_t __attribute__((unused)) v7=({uint64_t _a=v6;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});
152{uint64_t _i=v7;uint64_t _v=v2;o_put(v0, v0_n, _i,_v,5);}
153{uint64_t _i=({uint64_t _a=v7;uint64_t _b=1ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t p0=({uint64_t _a=v3;uint64_t _b=65535ULL;o_op(12, 5, _a,_b);});f1(p0);});o_put(v0, v0_n, _i,_v,5);}
154{uint64_t _i=({uint64_t _a=v7;uint64_t _b=2ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t p0=({uint64_t _a=({uint64_t _a=v3;uint64_t _b=16ULL;o_op(16, 5, _a,_b);});uint64_t _b=65535ULL;o_op(12, 5, _a,_b);});f1(p0);});o_put(v0, v0_n, _i,_v,5);}
155{uint64_t _i=({uint64_t _a=v7;uint64_t _b=3ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t p0=({uint64_t _a=({uint64_t _a=v3;uint64_t _b=32ULL;o_op(16, 5, _a,_b);});uint64_t _b=65535ULL;o_op(12, 5, _a,_b);});f1(p0);});o_put(v0, v0_n, _i,_v,5);}
156{uint64_t _i=({uint64_t _a=v7;uint64_t _b=4ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t p0=({uint64_t _a=v3;uint64_t _b=48ULL;o_op(16, 5, _a,_b);});f1(p0);});o_put(v0, v0_n, _i,_v,5);}
157{uint64_t _i=({uint64_t _a=v7;uint64_t _b=5ULL;o_op(1, 5, _a,_b);});uint64_t _v=18446744073709551615ULL;o_put(v0, v0_n, _i,_v,5);}
158if(({uint64_t _a=({uint64_t _a=({uint64_t _a=v2;uint64_t _b=11ULL;o_op(6, 5, _a,_b);});uint64_t _b=({uint64_t _a=v2;uint64_t _b=19ULL;o_op(6, 5, _a,_b);});o_op(13, 1, _a,_b);});uint64_t _b=({uint64_t _a=v2;uint64_t _b=12ULL;o_op(6, 5, _a,_b);});o_op(13, 1, _a,_b);})){
159{uint64_t _i=({uint64_t _a=v7;uint64_t _b=5ULL;o_op(1, 5, _a,_b);});uint64_t _v=0ULL;o_put(v0, v0_n, _i,_v,5);}
160}
161{uint64_t _i=({uint64_t _a=v7;uint64_t _b=7ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t _a=v5;uint64_t _b=8ULL;o_op(16, 5, _a,_b);});o_put(v0, v0_n, _i,_v,5);}
162uint64_t __attribute__((unused)) v8=({uint64_t p1=v5;f3(v1, v1_n, p1);});
163{uint64_t _i=({uint64_t _a=v7;uint64_t _b=6ULL;o_op(1, 5, _a,_b);});uint64_t _v=({uint64_t _a=({uint64_t _a=v4;uint64_t _b=4294967295ULL;o_op(12, 5, _a,_b);});uint64_t _b=({uint64_t _a=v8;uint64_t _b=32ULL;o_op(15, 5, _a,_b);});o_op(13, 5, _a,_b);});o_put(v0, v0_n, _i,_v,5);}
164{uint64_t _i=0ULL;uint64_t _v=({uint64_t _a=v6;uint64_t _b=1ULL;o_op(1, 5, _a,_b);});o_put(v1, v1_n, _i,_v,5);}
165return o_leave(0);
166}
167static uint64_t f5(void *v0, uint64_t v0_n, uint64_t v1){
168o_enter();
169uint64_t __attribute__((unused)) v2=o_get(v0, v0_n, 1ULL, 5);
170if(({uint64_t _a=v2;uint64_t _b=256ULL;o_op(11, 5, _a,_b);})){
171{uint64_t _i=4ULL;uint64_t _v=2ULL;o_put(v0, v0_n, _i,_v,5);}
172return o_leave(0ULL);
173}
174{uint64_t _i=({uint64_t _a=64ULL;uint64_t _b=v2;o_op(1, 5, _a,_b);});uint64_t _v=v1;o_put(v0, v0_n, _i,_v,5);}
175{uint64_t _i=1ULL;uint64_t _v=({uint64_t _a=v2;uint64_t _b=1ULL;o_op(1, 5, _a,_b);});o_put(v0, v0_n, _i,_v,5);}
176return o_leave(v2);
177}
178static uint64_t f6(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3){
179o_enter();
180({uint64_t p2=2ULL;uint64_t p3=({uint64_t p0=v2;uint64_t p1=65535ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=v3;uint64_t p5=0ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
181return o_leave(0);
182}
183static uint64_t f7(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4, uint64_t v5){
184o_enter();
185({uint64_t p2=v2;uint64_t p3=({uint64_t p0=v3;uint64_t p1=v4;uint64_t p2=v5;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=0ULL;uint64_t p5=0ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
186return o_leave(0);
187}
188static uint64_t f8(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4, uint64_t v5){
189o_enter();
190({uint64_t p2=8ULL;uint64_t p3=({uint64_t p0=v2;uint64_t p1=v3;uint64_t p2=65535ULL;uint64_t p3=v5;f0(p0, p1, p2, p3);});uint64_t p4=v4;uint64_t p5=0ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
191return o_leave(0);
192}
193static uint64_t f9(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4, uint64_t v5){
194o_enter();
195({uint64_t p2=9ULL;uint64_t p3=({uint64_t p0=v2;uint64_t p1=v3;uint64_t p2=65535ULL;uint64_t p3=v5;f0(p0, p1, p2, p3);});uint64_t p4=v4;uint64_t p5=0ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
196return o_leave(0);
197}
198static uint64_t f10(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4, uint64_t v5){
199o_enter();
200uint64_t __attribute__((unused)) v6=11ULL;
201if(({uint64_t _a=({uint64_t _a=v5;uint64_t _b=255ULL;o_op(12, 5, _a,_b);});uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
202v6=19ULL;
203if(({uint64_t _a=v4;uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
204uint64_t __attribute__((unused)) v7=({uint64_t p1=2ULL;f5(v1, v1_n, p1);});
205uint64_t __attribute__((unused)) v8=({uint64_t p1=1ULL;f5(v1, v1_n, p1);});
206({uint64_t p2=v8;uint64_t p3=v4;f6(v0, v0_n, v1, v1_n, p2, p3);});
207({uint64_t p2=v7;uint64_t p3=v8;uint64_t p4=1ULL;uint64_t p5=v3;f9(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
208v3=v7;
209v4=0ULL;
210}
211}
212({uint64_t p2=v6;uint64_t p3=({uint64_t p0=v2;uint64_t p1=v3;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=v4;uint64_t p5=({uint64_t _a=2ULL;uint64_t _b=({uint64_t _a=v5;uint64_t _b=65280ULL;o_op(12, 5, _a,_b);});o_op(13, 5, _a,_b);});f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
213if(({uint64_t _a=({uint64_t _a=v5;uint64_t _b=255ULL;o_op(12, 5, _a,_b);});uint64_t _b=1ULL;o_op(6, 5, _a,_b);})){
214({uint64_t p2=v2;uint64_t p3=v2;uint64_t p4=65536ULL;uint64_t p5=65535ULL;f8(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
215}
216if(({uint64_t _a=({uint64_t _a=v5;uint64_t _b=255ULL;o_op(12, 5, _a,_b);});uint64_t _b=2ULL;o_op(6, 5, _a,_b);})){
217({uint64_t p2=67ULL;uint64_t p3=({uint64_t p0=v2;uint64_t p1=v2;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=0ULL;uint64_t p5=0ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
218}
219return o_leave(0);
220}
221static uint64_t f11(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3){
222o_enter();
223({uint64_t p2=28ULL;uint64_t p3=({uint64_t p0=65535ULL;uint64_t p1=v2;uint64_t p2=v3;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=0ULL;uint64_t p5=1ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
224return o_leave(0);
225}
226static uint64_t f12(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3){
227o_enter();
228({uint64_t p2=46ULL;uint64_t p3=({uint64_t p0=65535ULL;uint64_t p1=65535ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=v2;uint64_t p5=({uint64_t _a=5ULL;uint64_t _b=({uint64_t _a=v3;uint64_t _b=8ULL;o_op(15, 5, _a,_b);});o_op(13, 5, _a,_b);});f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
229return o_leave(0);
230}
231static uint64_t f13(void *v0, uint64_t v0_n, const void *v1, uint64_t v1_n, uint64_t v2){
232o_enter();
233uint64_t __attribute__((unused)) v3=({uint64_t _a=o_get(v1, v1_n, 0ULL, 5);uint64_t _b=1ULL;o_op(2, 5, _a,_b);});
234{uint64_t _i=({uint64_t _a=({uint64_t _a=v3;uint64_t _b=8ULL;o_op(3, 5, _a,_b);});uint64_t _b=7ULL;o_op(1, 5, _a,_b);});uint64_t _v=v2;o_put(v0, v0_n, _i,_v,5);}
235return o_leave(0);
236}
237static uint64_t f14(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3){
238o_enter();
239({uint64_t p2=v2;uint64_t p3=v3;uint64_t p4=1ULL;uint64_t p5=65535ULL;f8(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
240return o_leave(0);
241}
242static uint64_t f15(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4){
243o_enter();
244({uint64_t p2=13ULL;uint64_t p3=o_cast(5, 4, v4);f6(v0, v0_n, v1, v1_n, p2, p3);});
245({uint64_t p2=32ULL;uint64_t p3=v2;uint64_t p4=v3;uint64_t p5=13ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
246return o_leave(0);
247}
248static uint64_t f16(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2, uint64_t v3, uint64_t v4){
249o_enter();
250({uint64_t p2=13ULL;uint64_t p3=o_cast(5, 4, v4);f6(v0, v0_n, v1, v1_n, p2, p3);});
251({uint64_t p2=30ULL;uint64_t p3=v2;uint64_t p4=v3;uint64_t p5=13ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
252return o_leave(0);
253}
254static uint64_t f17(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2){
255o_enter();
256({uint64_t p2=32ULL;uint64_t p3=15ULL;uint64_t p4=15ULL;uint64_t p5=10ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
257({uint64_t p2=15ULL;uint64_t p3=15ULL;uint64_t p4=v2;f16(v0, v0_n, v1, v1_n, p2, p3, p4);});
258return o_leave(0);
259}
260static uint64_t f18(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n){
261o_enter();
262({uint64_t p2=32ULL;uint64_t p3=11ULL;uint64_t p4=11ULL;uint64_t p5=18ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
263({uint64_t p2=47ULL;uint64_t p3=({uint64_t p0=11ULL;uint64_t p1=11ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=0ULL;uint64_t p5=2ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
264return o_leave(0);
265}
266static uint64_t f19(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n){
267o_enter();
268({uint64_t p2=9ULL;uint64_t p3=9ULL;uint64_t p4=1060439283ULL;f15(v0, v0_n, v1, v1_n, p2, p3, p4);});
269({uint64_t p2=10ULL;uint64_t p3=9ULL;uint64_t p4=1051179525ULL;f15(v0, v0_n, v1, v1_n, p2, p3, p4);});
270({uint64_t p2=30ULL;uint64_t p3=10ULL;uint64_t p4=10ULL;uint64_t p5=16ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
271({uint64_t p2=40ULL;uint64_t p3=({uint64_t p0=10ULL;uint64_t p1=10ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=0ULL;uint64_t p5=2ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
272({uint64_t p2=32ULL;uint64_t p3=11ULL;uint64_t p4=9ULL;uint64_t p5=9ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
273({uint64_t p2=11ULL;uint64_t p3=11ULL;uint64_t p4=3212836864ULL;f15(v0, v0_n, v1, v1_n, p2, p3, p4);});
274({f18(v0, v0_n, v1, v1_n);});
275({uint64_t p2=13ULL;uint64_t p3=o_cast(5, 4, 1092616192ULL);f6(v0, v0_n, v1, v1_n, p2, p3);});
276({uint64_t p2=19ULL;uint64_t p3=13ULL;f11(v0, v0_n, v1, v1_n, p2, p3);});
277({uint64_t p2=11ULL;uint64_t p3=0ULL;f6(v0, v0_n, v1, v1_n, p2, p3);});
278({uint64_t p2=2ULL;f13(v0, v0_n, v1, v1_n, p2);});
279({uint64_t p2=15ULL;uint64_t p3=o_cast(5, 4, 1065868322ULL);f6(v0, v0_n, v1, v1_n, p2, p3);});
280({uint64_t p2=3216638179ULL;f17(v0, v0_n, v1, v1_n, p2);});
281({uint64_t p2=1068888291ULL;f17(v0, v0_n, v1, v1_n, p2);});
282({uint64_t p2=3197217166ULL;f17(v0, v0_n, v1, v1_n, p2);});
283({uint64_t p2=1048738054ULL;f17(v0, v0_n, v1, v1_n, p2);});
284({uint64_t p2=32ULL;uint64_t p3=15ULL;uint64_t p4=15ULL;uint64_t p5=10ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
285({uint64_t p2=32ULL;uint64_t p3=15ULL;uint64_t p4=15ULL;uint64_t p5=11ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
286({uint64_t p2=15ULL;uint64_t p3=15ULL;uint64_t p4=1056964608ULL;f15(v0, v0_n, v1, v1_n, p2, p3, p4);});
287({uint64_t p2=31ULL;uint64_t p3=14ULL;uint64_t p4=16ULL;uint64_t p5=15ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
288({uint64_t p2=32ULL;uint64_t p3=12ULL;uint64_t p4=8ULL;uint64_t p5=14ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
289({uint64_t p2=13ULL;uint64_t p3=2147483648ULL;f6(v0, v0_n, v1, v1_n, p2, p3);});
290({uint64_t p2=8ULL;uint64_t p3=13ULL;f11(v0, v0_n, v1, v1_n, p2, p3);});
291({uint64_t p2=32ULL;uint64_t p3=12ULL;uint64_t p4=8ULL;uint64_t p5=15ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
292({uint64_t p2=2ULL;f13(v0, v0_n, v1, v1_n, p2);});
293return o_leave(0);
294}
295static uint64_t f20(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2){
296o_enter();
297if(({uint64_t _a=v2;uint64_t _b=2ULL;o_op(6, 5, _a,_b);})){
298({uint64_t p2=32ULL;uint64_t p3=11ULL;uint64_t p4=9ULL;uint64_t p5=9ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
299({uint64_t p2=11ULL;uint64_t p3=11ULL;uint64_t p4=1027024659ULL;f15(v0, v0_n, v1, v1_n, p2, p3, p4);});
300({uint64_t p2=30ULL;uint64_t p3=11ULL;uint64_t p4=11ULL;uint64_t p5=16ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
301({uint64_t p2=32ULL;uint64_t p3=11ULL;uint64_t p4=11ULL;uint64_t p5=9ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
302({uint64_t p2=11ULL;uint64_t p3=11ULL;uint64_t p4=3217834538ULL;f15(v0, v0_n, v1, v1_n, p2, p3, p4);});
303}else{
304({uint64_t p2=11ULL;uint64_t p3=9ULL;uint64_t p4=3212836864ULL;f15(v0, v0_n, v1, v1_n, p2, p3, p4);});
305}
306({f18(v0, v0_n, v1, v1_n);});
307uint64_t __attribute__((unused)) v3=1117782016ULL;
308if(({uint64_t _a=v2;uint64_t _b=2ULL;o_op(6, 5, _a,_b);})){
309v3=1092616192ULL;
310}
311({uint64_t p2=13ULL;uint64_t p3=o_cast(5, 4, v3);f6(v0, v0_n, v1, v1_n, p2, p3);});
312({uint64_t p2=19ULL;uint64_t p3=13ULL;f11(v0, v0_n, v1, v1_n, p2, p3);});
313({uint64_t p2=11ULL;uint64_t p3=0ULL;f6(v0, v0_n, v1, v1_n, p2, p3);});
314({uint64_t p2=2ULL;f13(v0, v0_n, v1, v1_n, p2);});
315({uint64_t p2=30ULL;uint64_t p3=10ULL;uint64_t p4=16ULL;uint64_t p5=11ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
316({uint64_t p2=40ULL;uint64_t p3=({uint64_t p0=10ULL;uint64_t p1=10ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=0ULL;uint64_t p5=2ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
317({uint64_t p2=32ULL;uint64_t p3=12ULL;uint64_t p4=8ULL;uint64_t p5=10ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
318({uint64_t p2=32ULL;uint64_t p3=14ULL;uint64_t p4=11ULL;uint64_t p5=10ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
319({uint64_t p2=13ULL;uint64_t p3=2147483648ULL;f6(v0, v0_n, v1, v1_n, p2, p3);});
320({uint64_t p2=8ULL;uint64_t p3=13ULL;f11(v0, v0_n, v1, v1_n, p2, p3);});
321({uint64_t p2=32ULL;uint64_t p3=12ULL;uint64_t p4=8ULL;uint64_t p5=14ULL;f7(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
322({uint64_t p2=2ULL;f13(v0, v0_n, v1, v1_n, p2);});
323return o_leave(0);
324}
325static uint64_t f21(void *v0, uint64_t v0_n, void *v1, uint64_t v1_n, uint64_t v2){
326o_enter();
327{
328uint64_t v3=0;
329uint64_t k1=20ULL;
330for(;o_op(8,5, v3, k1);v3=o_op(1,5, v3,1)){
331uint64_t __attribute__((unused)) v4=1ULL;
332if(({uint64_t _a=({uint64_t _a=v3;uint64_t _b=2ULL;o_op(11, 5, _a,_b);});uint64_t _b=({uint64_t _a=v3;uint64_t _b=5ULL;o_op(9, 5, _a,_b);});o_op(12, 1, _a,_b);})){
333v4=2ULL;
334}
335uint64_t __attribute__((unused)) v5=({uint64_t p1=v4;f5(v1, v1_n, p1);});
336}
337}
338{uint64_t _i=2ULL;uint64_t _v=1ULL;o_put(v1, v1_n, _i,_v,5);}
339{uint64_t _i=320ULL;uint64_t _v=2ULL;o_put(v1, v1_n, _i,_v,5);}
340({uint64_t p2=7ULL;uint64_t p3=({uint64_t p0=0ULL;uint64_t p1=65535ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=856ULL;uint64_t p5=260ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
341({uint64_t p2=3ULL;uint64_t p3=({uint64_t p0=0ULL;uint64_t p1=65535ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=33ULL;uint64_t p5=2ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
342({uint64_t p2=3ULL;uint64_t p3=({uint64_t p0=1ULL;uint64_t p1=65535ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=37ULL;uint64_t p5=2ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
343({uint64_t p2=5ULL;uint64_t p3=({uint64_t p0=2ULL;uint64_t p1=65535ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=896ULL;uint64_t p5=2ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
344({uint64_t p2=5ULL;uint64_t p3=({uint64_t p0=3ULL;uint64_t p1=65535ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=904ULL;uint64_t p5=2ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
345({uint64_t p2=4ULL;uint64_t p3=({uint64_t p0=6ULL;uint64_t p1=65535ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=912ULL;uint64_t p5=2ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
346({uint64_t p2=7ULL;uint64_t p3=1ULL;uint64_t p4=32ULL;uint64_t p5=0ULL;f8(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
347({uint64_t p2=7ULL;uint64_t p3=6ULL;f11(v0, v0_n, v1, v1_n, p2, p3);});
348({uint64_t p2=45ULL;uint64_t p3=({uint64_t p0=65535ULL;uint64_t p1=65535ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=0ULL;uint64_t p5=5ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
349({uint64_t p2=2ULL;f13(v0, v0_n, v1, v1_n, p2);});
350uint64_t __attribute__((unused)) v3=4ULL;
351if(({uint64_t _a=v2;uint64_t _b=0ULL;o_op(7, 5, _a,_b);})){
352v3=2ULL;
353}
354({uint64_t p2=4ULL;uint64_t p3=7ULL;uint64_t p4=v3;uint64_t p5=2ULL;f9(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
355({uint64_t p2=5ULL;uint64_t p3=7ULL;uint64_t p4=4ULL;uint64_t p5=3ULL;f9(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
356({uint64_t p2=8ULL;uint64_t p3=4ULL;uint64_t p4=0ULL;uint64_t p5=v2;f10(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
357({uint64_t p2=16ULL;uint64_t p3=o_cast(5, 4, 1065353216ULL);f6(v0, v0_n, v1, v1_n, p2, p3);});
358({uint64_t p2=17ULL;uint64_t p3=0ULL;f6(v0, v0_n, v1, v1_n, p2, p3);});
359({uint64_t p2=18ULL;uint64_t p3=o_cast(5, 4, 1069066811ULL);f6(v0, v0_n, v1, v1_n, p2, p3);});
360({uint64_t p2=18ULL;uint64_t p3=({uint64_t p0=19ULL;uint64_t p1=8ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=2147483647ULL;uint64_t p5=0ULL;f4(v0, v0_n, v1, v1_n, p2, p3, p4, p5);});
361return o_leave(0);
362}
363static uint64_t f22(uint64_t v0, uint64_t v1, uint64_t v2, uint64_t v3, void *v4, uint64_t v4_n, void *v5, uint64_t v5_n){
364o_enter();
365{
366uint64_t v6=0;
367uint64_t k1=512ULL;
368for(;o_op(8,5, v6, k1);v6=o_op(1,5, v6,1)){
369{uint64_t _i=v6;uint64_t _v=0ULL;o_put(v5, v5_n, _i,_v,5);}
370}
371}
372if(({uint64_t _a=({uint64_t _a=({uint64_t _a=v0;uint64_t _b=3ULL;o_op(10, 5, _a,_b);});uint64_t _b=({uint64_t _a=v1;uint64_t _b=2ULL;o_op(10, 5, _a,_b);});o_op(13, 1, _a,_b);});uint64_t _b=({uint64_t _a=({uint64_t _a=v2;uint64_t _b=0ULL;o_op(7, 5, _a,_b);});uint64_t _b=({uint64_t _a=v3;uint64_t _b=0ULL;o_op(7, 5, _a,_b);});o_op(13, 1, _a,_b);});o_op(13, 1, _a,_b);})){
373return o_leave(1ULL);
374}
375({uint64_t p2=v1;f21(v4, v4_n, v5, v5_n, p2);});
376if(({uint64_t _a=v0;uint64_t _b=0ULL;o_op(6, 5, _a,_b);})){
377({uint64_t p2=12ULL;uint64_t p3=8ULL;f14(v4, v4_n, v5, v5_n, p2, p3);});
378({uint64_t p2=13ULL;uint64_t p3=2147483648ULL;f6(v4, v4_n, v5, v5_n, p2, p3);});
379({uint64_t p2=8ULL;uint64_t p3=13ULL;f11(v4, v4_n, v5, v5_n, p2, p3);});
380({uint64_t p2=12ULL;uint64_t p3=0ULL;f6(v4, v4_n, v5, v5_n, p2, p3);});
381({uint64_t p2=2ULL;f13(v4, v4_n, v5, v5_n, p2);});
382({uint64_t p2=13ULL;uint64_t p3=1ULL;f6(v4, v4_n, v5, v5_n, p2, p3);});
383({uint64_t p2=19ULL;uint64_t p3=13ULL;f11(v4, v4_n, v5, v5_n, p2, p3);});
384({uint64_t p2=12ULL;uint64_t p3=8ULL;f14(v4, v4_n, v5, v5_n, p2, p3);});
385({uint64_t p2=6ULL;f13(v4, v4_n, v5, v5_n, p2);});
386}else{
387uint64_t __attribute__((unused)) v6=1117782016ULL;
388if(({uint64_t _a=v0;uint64_t _b=3ULL;o_op(7, 5, _a,_b);})){
389v6=1092616192ULL;
390}
391({uint64_t p2=13ULL;uint64_t p3=o_cast(5, 4, v6);f6(v4, v4_n, v5, v5_n, p2, p3);});
392({uint64_t p2=36ULL;uint64_t p3=9ULL;uint64_t p4=19ULL;uint64_t p5=13ULL;f7(v4, v4_n, v5, v5_n, p2, p3, p4, p5);});
393if(({uint64_t _a=v0;uint64_t _b=1ULL;o_op(6, 5, _a,_b);})){
394({f19(v4, v4_n, v5, v5_n);});
395}else{
396({uint64_t p2=v0;f20(v4, v4_n, v5, v5_n, p2);});
397}
398}
399({uint64_t p2=12ULL;uint64_t p3=({uint64_t p0=65535ULL;uint64_t p1=5ULL;uint64_t p2=12ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=0ULL;uint64_t p5=3ULL;f4(v4, v4_n, v5, v5_n, p2, p3, p4, p5);});
400({uint64_t p2=45ULL;uint64_t p3=({uint64_t p0=65535ULL;uint64_t p1=65535ULL;uint64_t p2=65535ULL;uint64_t p3=65535ULL;f0(p0, p1, p2, p3);});uint64_t p4=0ULL;uint64_t p5=5ULL;f4(v4, v4_n, v5, v5_n, p2, p3, p4, p5);});
401return o_leave(o_get(v5, v5_n, 4ULL, 5));
402}
403uint32_t omega_dnn_activations(uint64_t *result, volatile uint64_t p0, volatile uint64_t p1, volatile uint64_t p2, volatile uint64_t p3, void *p4, uint64_t p4_n, void *p5, uint64_t p5_n){
404 if(!o_buf(result,1,1,5))return 32;
405if(!o_valid(5, p0))return 32;
406if(!o_valid(5, p1))return 32;
407if(!o_valid(5, p2))return 32;
408if(!o_valid(5, p3))return 32;
409if(!o_buf(p4, p4_n,8192, 5))return 32;
410 if(o_overlap(result,8,p4, p4_n*8))return 32;
411if(!o_buf(p5, p5_n,512, 5))return 32;
412 if(o_overlap(result,8,p5, p5_n*8))return 32;
413if(o_overlap(p5, p5_n*8, p4, p4_n*8))return 32;
414 if(o_busy)return 33;
415 o_busy=1;o_depth=0;int code=setjmp(o_jmp);if(!code){uint64_t _result=f22(p0, p1, p2, p3, p4, p4_n, p5, p5_n);o_put(result,1,0,_result,5);}
416 o_busy=0;return (uint32_t)code;
417}
418#if defined(__GNUC__)
419#pragma GCC diagnostic pop
420#endif