void f8() { void *dummy0 = &f8(); // expected-error {{address expression must be an lvalue or a function designator}} extern void v; void *dummy1 = &(1 ? v : f8()); // expected-error {{address expression must be an lvalue or a function designator}} void *dummy2 = &(f8(), v); // expected-error {{address expression must be an lvalue or a function designator}} void *dummy3 = &({ ; }); // expected-error {{address expression must be an lvalue or a function designator}}
int main(void){ node n; n.i = 'r'; f1(); f2(); f3(); f4(); f5(); f6(); f7(); f8(); f9(); f10(); f11(); f12(); f13(); f14(); f15(); putchar(f16()); f17('g'); putchar(f18(&n)->i); putchar(f19(en1) + 'a'); putchar(f20(en4) + 'a'); putchar(f21(en4) + 'a'); return 0; }
int main(void) { f0(); f1(); f2(); f3(); f4(); f5(); f6(); f7(); f8(); f9(); f10(); f11(); f12(); f13(); f14(); f15(); f16(); f17(); f18(); f19(); f20(); f21(); f22(); f23(); f24(); f25(); f26(); f27(); f28(); f29(); return 0; }
void cs() { int ch; int f1(); int f2(); int f3(); int f4(); int f5(); int f6(); int f7(); int f8(); int f9(); swindex2:printf("-------------------\n"); printf("--which function?--\n"); printf("-------------------\nf"); scanf_s("%d", &ch); system("CLS"); printf("-----------------------------------------------\n"); //ch = ch - 48; switch (ch) { case 1:f1(); break; case 2:f2(); break; case 3:f3(); break; case 4:f4(); break; case 5:f5(); break; case 6:f6(); break; case 7:f7(); break; case 8:f8(); break; case 9:f9(); break; default:system("CLS"); printf("error\n"); goto swindex2; } printf("-----------------------------------------------\nf%dÔËÐнáÊø\n1 for again,2 for exit\n", ch); }
static void avx512f_test (void) { int i; for (i = 0; i < N; i++) { asm (""); f[i] = -256.0f + i; d[i] = -258.0 + i; k[i] = (i * 731) & (N - 1); q[i] = (i * 657) & (N - 1); t[i] = (i * 657) & (N - 1); l[i] = &f[(i * 239) & (N - 1)]; n[i] = &d[(i * 271) & (N - 1)]; r[i] = &t[(i * 323) & (N - 1)]; s[i] = &k[(i * 565) & (N - 1)]; m[i] = &s[(i * 13) & (N - 1)]; o[i] = &r[(i * 19) & (N - 1)]; } if (f1 () != 136448.0f || f2 (f) != 136448.0f || f3 () != 130304.0) abort (); if (f4 () != 261376 || f5 () != 135424.0 || f6 (d) != 135424.0) abort (); if (f7 () != 129280.0 || f8 () != 259840L || f9 () != 130816.0f) abort (); if (f10 (f) != 130816.0f || f11 () != 129792.0 || f12 (d) != 129792.0) abort (); }
int main(void) { f0(); f1(); f2(); f3(); f4(); f5(); f6(); f7(); f8(); f9(); f10(); f11(); f12(); f13(); f14(); f15(); f16(); f17(); f18(); f19(); return 0; }
/*void f7(int p,int g, int j, int l) { char r = (char)5; char d = (char)6; char s[] = {r,d}; char *arg[] = {"foo", "bar", "baz", "bletch"}; arg[2] = s; f8(5, arg); } void f6(char* gato) { f7(6,7,8,8); } void f5(double array) { f6("abcdefghijklmnopqrstuvwxyza"); } void f4(int i, float f, void* k) { f5(453e93); } void f3(int p, char g, char l) { int k = 5; void* j = &k; f4(5, 35.0,j); } void f2(void) { char j = (char)6; f3(6, 'f',j); } void f1(char ** array) { f2(); } */ int main() { char *arg[] = {"foo", "bar"}; f8(5,arg); return 0; }
int main(void) { f0(); f1(); f2(); f3(); f4(); f5(); f6(); f7(); f8(); f9(); f10(); f11(); f12(); f13(); f14(); f15(); f16(); f17(); f18(); f19(); f20(); f21(); f22(); f23(); f24(); f25(); f26(); f27(); f28(); f29(); f30(); f31(); f32(); f33(); f34(); f35(); f36(); f37(); f38(); f39(); f40(); f41(); f42(); f43(); f44(); f45(); f46(); f47(); f48(); f49(); f50(); f51(); f52(); return 0; }
int main() { f1(); f2(); f4(); f8(); f16(); return 0; }
qreal MyWidget::f(qreal x, qreal y, qreal z) { switch (variant) { case 5: return f5(x, y, z); case 8: return f8(x, y, z); } return 0; }
void bar () { f3 (foo); f4 (foo); f5 (foo); f6 (foo); N::f7 (foo); f8 (foo); }
void show_count( unsigned num ) { float wait; fputs( "\r\t\t\t\t\t\t\twait ", stdout ); printf( "%4.1f seconds \r ", (float)(num * 15.0) ); num *= 5; num %= 20; ++num; while( num-- ) { printf( "\r ^^^^ \r" ); for( wait = SIZE; wait > 0.0; wait = wait - 10 ) { f0(); f1(); f2(); f3(); f4(); f5(); f6(); f7(); f8(); f9(); f0(); f1(); f2(); f3(); f4(); f5(); f6(); f7(); f8(); f9(); f0(); f1(); f2(); f3(); f4(); f5(); f6(); f7(); f8(); f9(); continue; } printf( "\r vvvv \r" ); } }
void ControlPresencial::MonitorizaFicheros(QString str) { // ControlPresencial* mc = new ControlPresencial; qDebug() << "Monitoriza ficheros " << str; QFileSystemWatcher *watcher = new QFileSystemWatcher(this); if(str.contains("inicio")){ QFile f("/home/pi/Desktop/RFID-US/errorconexion.log"); f.open(QIODevice::ReadWrite); QFile f2("/home/pi/Desktop/RFID-US/erroraulas.log"); f2.open(QIODevice::ReadWrite); QFile f3("/home/pi/Desktop/RFID-US/errorlector.log"); f3.open(QIODevice::ReadWrite); QFile f4("/home/pi/Desktop/RFID-US/usuarioregistrado.log"); f4.open(QIODevice::ReadWrite); QFile f5("/home/pi/Desktop/RFID-US/registro.xml"); f5.open(QIODevice::ReadWrite); QFile f6("/home/pi/Desktop/RFID-US/oklector.log"); f6.open(QIODevice::ReadWrite); QFile f7("/home/pi/Desktop/RFID-US/okconexion.log"); f7.open(QIODevice::ReadWrite); QFile f8("/home/pi/Desktop/RFID-US/errorconexionregistro.log"); f8.open(QIODevice::ReadWrite); QFile f9("/home/pi/Desktop/RFID-US/errorrecibido.log"); f9.open(QIODevice::ReadWrite); QFile f10("/home/pi/Desktop/RFID-US/errordom2.log"); f10.open(QIODevice::ReadWrite); QFile f11("/home/pi/Desktop/RFID-US/erroreneldom.log"); f11.open(QIODevice::ReadWrite); QFile f12("/home/pi/Desktop/RFID-US/errorbbdd.log"); f12.open(QIODevice::ReadWrite); QFile f13("/home/pi/Desktop/RFID-US/reintentarlector.log"); f13.open(QIODevice::ReadWrite); QObject::connect(watcher, SIGNAL(fileChanged(QString)),this, SLOT(showModified(QString))); watcher->addPath("/home/pi/Desktop/RFID-US/errorconexion.log"); watcher->addPath("/home/pi/Desktop/RFID-US/erroraulas.log"); watcher->addPath("/home/pi/Desktop/RFID-US/errorlector.log"); watcher->addPath("/home/pi/Desktop/RFID-US/usuarioregistrado.log"); watcher->addPath("/home/pi/Desktop/RFID-US/registro.xml"); watcher->addPath("/home/pi/Desktop/RFID-US/oklector.log"); watcher->addPath("/home/pi/Desktop/RFID-US/okconexion.log"); watcher->addPath("/home/pi/Desktop/RFID-US/errorconexionregistro.log"); watcher->addPath("/home/pi/Desktop/RFID-US/errorrecibido.log"); watcher->addPath("/home/pi/Desktop/RFID-US/errordom2.log"); watcher->addPath("/home/pi/Desktop/RFID-US/erroreneldom.log"); watcher->addPath("/home/pi/Desktop/RFID-US/errorbbdd.log"); watcher->addPath("/home/pi/Desktop/RFID-US/reintentarlector.log"); } else { QFile f(str); f.open(QIODevice::ReadWrite); qDebug() << "Creamos el fichero " << str; watcher->addPath(str); } }
void test() { f0(0); // expected-warning{{'f0' is deprecated: first deprecated in watchOS 2.0}} f1(0); f2(0); // expected-warning{{'f2' is deprecated: first deprecated in watchOS 2.0}} f3(0); f4(0); // expected-error {{f4' is unavailable: obsoleted in watchOS 2.0}} f5(0); // expected-warning {{'f5' is deprecated: first deprecated in watchOS 2.0}} f6(0); f7(0); // expected-warning {{'f7' is deprecated: first deprecated in watchOS 2.0}} f8(0); // expected-error {{'f8' is unavailable: obsoleted in watchOS 3.0}} }
int main (void) { S ss = {{'a','b','c'}, 2}; if (f1 (&ss) != 0 || f2 () != 1 || f3 (&ss) != 0 || f4 () != 1 || f5 (&ss) != 0 || f6 () != 0 || f7 (&ss) != 0 || f8 () != 0) __builtin_abort (); return 0; }
void do_test () { f1 (6, 0, 1, 2, 3, 4, 5, a); f2 (6, 0, 1, 2, 3, 4, 5, a, 7, 8); f3 (6, 0, 1, 2, 3, 4, 5, b, 7, 8); f4 (6, 0, 1, 2, 3, 4, 5, c, 7, 8); f5 (5, a); f6 (5, a, 7, 8); f7 (5, b, 7, 8); f8 (5, c, 7, 8); }
int main() { if (foo.a != 1 || foo.b != &foo || foo.c != &bar || bar != 26) abort (); if (f1 () != 1 || f2 () != 2) abort (); local.c -= 4; if (local.a != 77 || local.b != &local || local.c != &bar) abort (); if (f8 () != 17) abort (); exit (0); }
int main() { f1(); f2(); f3(); f4(); f5(); f6(); f7(); f8(); f9(); return 0; }
int main (void) { struct S1 a1, a3; struct S2 a2, a4; f1 (7, 1L, 2L, 3L, 5L, 7L, 9L, 11L, 13L); if (x != 11L) abort (); f2 (6, 1.0, 2.0, 4.0, 8.0, 16.0, 32.0, 64.0); if (d != 32.0) abort (); f3 (2, 1L, 3L); if (bar_arg != 1L || x != 1L) abort (); f4 (2, 17.0, 19.0); if (bar_arg != 21 || d != 17.0) abort (); a1.i = 131; a1.j = 251; a1.d = 15.0; a1.e = 191.0; a3 = a1; a3.j = 254; a3.e = 178.0; f5 (2, a1, a3, a1); if (s1.i != 131 || s1.j != 254 || s1.d != 15.0 || s1.e != 178.0) abort (); f5 (3, a1, a3, a1); if (s1.i != 131 || s1.j != 251 || s1.d != 15.0 || s1.e != 191.0) abort (); a2.i = 138; a2.d = 16.0; a4.i = 257; a4.d = 176.0; f6 (2, a2, a4, a2); if (s2.i != 257 || s2.d != 176.0) abort (); f6 (3, a2, a4, a2); if (s2.i != 138 || s2.d != 16.0) abort (); f7 (2, a3, a1, a1); if (s1.i != 131 || s1.j != 254 || s1.d != 15.0 || s1.e != 178.0) abort (); if (bar_arg != 131) abort (); f8 (3, a4, a2, a2); if (s2.i != 257 || s2.d != 176.0) abort (); return 0; }
int main(void) { f0(); f1(); f2(); f3(); f4(); f5(); f6(); f7(); f8(); return 0; }
int main (void) { int res = 0; /* make Unknown really unknown */ volatile int uninit=0, uninit2=0 ; while(uninit) if (uninit-1) Unknown++; else Unknown--; while(uninit2) if (uninit2-1) S.a++; else S.a--; res += f2 (); res += f3 (1); res += f4 (1); res += f5 (1); res += f6 (Unknown); f7 (S); if (Unknown) f8 (&S1); else f8 (&S2); return res; }
void rgb( uint8_t h, uint8_t s, uint8_t v, uint8_t *r, uint8_t *g, uint8_t *b ) { uint8_t f, hi; int16_t p, q, t; hi = hi8( h ); f = f8( h ); p = p8( v, s ); q = q8( v, s, f ); t = t8( v, s, f ); switch ( hi ) { case 0: *r = v; *g = t; *b = p; break; case 1: *r = q; *g = v; *b = p; break; case 2: *r = p; *g = v; *b = t; break; case 3: *r = p; *g = q; *b = v; break; case 4: *r = t; *g = p; *b = v; break; case 5: *r = v; *g = p; *b = q; break; default: exit( EXIT_FAILURE ); break; } }
double benchmarkEvaluation(double *x) { evaluations++; switch (instance) { case 1: return f1(x); case 2: return f2(x); case 3: return f3(x); case 4: return f4(x); case 5: return f5(x); case 6: return f6(x); case 7: return f7(x); case 8: return f8(x); case 9: return f9(x); case 10: return f10(x); case 11: return f11(x); case 12: return f12(x); case 13: return f13(x); case 14: return f14(x); case 15: return f15(x); case 16: return f16(x); case 17: return f17(x); case 18: return f18(x); case 19: return f19(x); case 20: return f20(x); default: printf("Benchmark instance %d not found.\n", instance); exit(EXIT_FAILURE); } }
int main(int argc, char **argv) { ATerm bos; long bp; ACCFunctor f3, f4, f5, f6, f7, f8, f9, f10; an2_at_init(argc,argv,&bos); CPL_init_malloc_protect(malloc); CPL_init_malloc(malloc); CPL_init_realloc_protect(realloc); CPL_init_realloc(realloc); choice_init(&bp); ACC_init_throws(); ACC_init_jitter(); p("hoi"); //f3 = ACC_jit_otherwise(f1,f2); //f3 = ACC_jit_and_exceptionally(f1,f2); //f4 = ACC_jit_exceptionally(f3,copy); //f3 = ACC_jit_exceptionally(do_raise, do_copy); //f3 = ACC_jit_exceptionally(f1, f2); //f4 = ACC_jit_otherwise(do_fail,do_copy); f3 = ACC_jit_and_exceptionally(do_raise, f1); f4 = ACC_jit_exceptionally(f3, do_copy); p("hoi"); /* Output should be: [3{[type,int]},1{[type,bool]}]{[type,tuple]} */ ATprintf("f4: %t\n", f4(an2_make_empty(), an2_make_empty())); f5 = ACC_jit_hence(do_copy, print); f6 = ACC_jit_exceptionally(f5, do_copy); ATprintf("f6: %t\n", f6(an2_make_int(5), an2_make_empty())); f7 = ACC_jit_and(do_copy, do_copy); ATprintf("f7: %t\n", f7(an2_make_int(5), an2_make_empty())); { ATerm t = an2_make_int(1209); f8 = ACC_jit_provide(t); ATprintf("f8: %t\n", f8(an2_make_int(5), an2_make_empty())); } return 0; }
int main() { { B a; f1(a); } assert (B::xc == 2*n && B::ic == 2*n+2 && B::dc == 2*n+2 && B::ac == 0 && B::cc == 0); B::clear(); { B a; f2(a); } assert (B::xc == 2*n && B::ic == 2 && B::dc == 2*n+2 && B::ac == 0 && B::cc == 2*n); B::clear(); { B a; f3(a); } assert (B::xc == 2*n && B::ic == 2*n+2 && B::dc == 2*n+2 && B::ac == 2 && B::cc == 0); B::clear(); f4(); assert (B::xc == 2*n+2 && B::ic == 2*n+1 && B::dc == 2*n+1 && B::ac == 2*n-2 && B::cc == 0); B::clear(); { B a[2]; f5(a); } assert (B::xc == 4*n && B::ic == 4*n+4 && B::dc == 4*n+4 && B::ac == 0 && B::cc == 0); B::clear(); { B a[2]; f6(a); } assert (B::xc == 4*n && B::ic == 4 && B::dc == 4*n+4 && B::ac == 0 && B::cc == 4*n); B::clear(); { B a[2]; f7(a); } assert (B::xc == 4*n && B::ic == 4*n+4 && B::dc == 4*n+4 && B::ac == 4 && B::cc == 0); B::clear(); f8(); assert (B::xc == 4*n+4 && B::ic == 4*n+2 && B::dc == 4*n+2 && B::ac == 4*n-4 && B::cc == 0); return 0; }
int main () { if (__SCHAR_MAX__ != 127 || sizeof (int) != 4) return 0; if (f0 (0xff, 0xff) != 0xfe || f1 (0, 1) != 0x2ff || f2 (-2, 1) != -4 || f3 (-2, 1) != 0xf8 || f4 (-2, 1) != 0x78 || f5 (0xff, 0xff) != 0xfe || f6 (0, 1) != 0x2ff || f7 (-2, 1) != -4 || f8 (-2, 1) != 0xf8 || f9 (-2, 1) != 0x78) __builtin_abort (); return 0; }
void rgb( uint8_t h, uint8_t s, uint8_t v, uint8_t *r, uint8_t *g, uint8_t *b ) { uint8_t f, hi; hi = hi8( h ); f = f8( h ); switch ( hi ) { case 0: *r = v; *g = t8( v, s, f ); *b = p8( v, s ); break; case 1: *r = q8( v, s, f ); *g = v; *b = p8( v, s ); break; case 2: *r = p8( v, s ); *g = v; *b = t8( v, s, f ); break; case 3: *r = p8( v, s ); *g = q8( v, s, f ); *b = v; break; case 4: *r = t8( v, s, f ); *g = p8( v, s ); *b = v; break; case 5: *r = v; *g = p8( v, s ); *b = q8( v, s, f ); break; default: /* not reached */ break; } }
int main( void ) { f1(); f2( 1 ); f3( 1 ); // f4( 1 ); int i = 1; f4( i ); int* i_ptr = new int( 3 ); f6( i_ptr ); f7( i_ptr ); f8( i_ptr ); delete i_ptr; return 0; }
int main (void) { if ((char) 128 != -128 || (int) 0x80000000 != -2147483648) return 0; if (f1 () != 128) abort (); if (f2 () != 128) abort (); if (f3 () != 896) abort (); if (f4 () != -128) abort (); if (f5 () != 0x80000000LL) abort (); if (f6 () != 0x80000000LL) abort (); if (f7 () != 0x380000000LL) abort (); if (f8 () != -2147483648LL) abort (); return 0; }
int main(void) { f0(); f1(); f2(); f3(); f4(); f5(); f6(); f7(); f8(); f9(); f10(); f11(); f12(); f13(); f14(); f15(); f16(); f17(); f18(); f19(); f20(); f21(); f22(); f23(); f24(); f25(); f26(); f27(); f28(); f29(); f30(); f31(); f32(); f33(); f34(); f35(); f36(); f37(); f38(); f39(); f40(); f41(); f42(); f43(); f44(); f45(); f46(); f47(); f48(); f49(); f50(); f51(); f52(); f53(); f54(); f55(); f56(); f57(); f58(); f59(); f60(); f61(); f62(); f63(); f64(); f65(); f66(); f67(); f68(); f69(); f70(); f71(); f72(); f73(); f74(); f75(); f76(); f77(); f78(); f79(); f80(); f81(); f82(); f83(); f84(); f85(); f86(); f87(); f88(); f89(); f90(); f91(); f92(); f93(); f94(); f95(); f96(); f97(); f98(); f99(); f100(); f101(); f102(); f103(); f104(); f105(); f106(); f107(); f108(); f109(); f110(); f111(); f112(); f113(); f114(); f115(); f116(); f117(); f118(); f119(); f120(); f121(); f122(); f123(); f124(); f125(); f126(); f127(); f128(); f129(); f130(); f131(); f132(); f133(); f134(); f135(); f136(); f137(); f138(); f139(); f140(); f141(); f142(); f143(); f144(); f145(); f146(); f147(); f148(); f149(); f150(); f151(); f152(); f153(); f154(); f155(); f156(); f157(); f158(); f159(); f160(); f161(); f162(); f163(); f164(); f165(); f166(); f167(); f168(); f169(); f170(); f171(); f172(); f173(); f174(); f175(); f176(); f177(); f178(); f179(); f180(); f181(); f182(); f183(); f184(); f185(); f186(); f187(); f188(); f189(); f190(); f191(); f192(); f193(); f194(); f195(); f196(); f197(); f198(); f199(); return 0; }