int a[2]; f (b) { unsigned int i; for (i = 0; i < b; i++) a[i] = i - 2; } main () { a[0] = a[1] = 0; f (2); if (a[…
Hysteresis+Loop 源代码
汇集 Hysteresis+Loop 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
/* PR opt/7130 */ #define TYPE long void scale (TYPE *alpha, TYPE *x, int n) { int i, ix; if (*alpha != 1) for (i = 0, i…
void foo (unsigned int n) { int i, j = -1; for (i = 0; i < 10 && j < 0; i++) { if ((1UL
/* Checks that pure functions are not treated as const. */ char *p; static int __attribute__ ((pure)) is_end_of_statement (void…
/* Reduced from PR optimization/5076, PR optimization/2847 */ static int count = 0; static void inc (void) { count++; } int m…
#include int n = 0; g (i) { n++; } f (m) { int i; i = m; do { g (i * INT_MAX / 2); } while (--i > 0); …
foo (a) { while ((a -= 1) != -1) bar (270000); putchar ('\n'); } main () { foo (5); }
/* Copyright (C) 2000 Free Software Foundation. Simplified from gcc/fold-const.c by Alexandre Oliva */ /* { dg-do comp…
/* PR optimization/18577 */ /* Origin: Falk Hueffner */ /* { dg-do run } */ /* { dg-options "-O2 -funroll-all-loops" } */ stati…
/* PR optimization/11841 */ /* Originator: Andrey Panov */ /* Reduced testcase by Volker Reichelt */ /* Verify that the (old) l…