⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loop-17.c

📁 用于进行gcc测试
💻 C
字号:
/* { dg-do compile } *//* { dg-options "-O -fdump-tree-sccp-details" } *//* To determine the number of iterations in this loop we need to fold   p_4 + 4B > p_4 + 8B to false.  This transformation has caused   troubles in the past due to overflow issues.  */int foo (int *p){  int i = 0, *x;  for (x = p; x < p + 2; x++)    i++;  return i;}/* { dg-final { scan-tree-dump "set_nb_iterations_in_loop = 1" "sccp" } } *//* { dg-final { cleanup-tree-dump "sccp" } } */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -