summaryrefslogtreecommitdiff
path: root/Homework/cs5300/p4-formatter/data/test1.c
blob: bad6240284b640986a7ba54c4ff4503255d768f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
int a, b;
int c[3];

int add(int a[], int b) {
  int c, z;
  c -= 3;
  if (c || b<3) {
    c -= 3;
  } else
    c *= 3;
  while (b > 0) {
    int d;
    b = a;
  }
  b = a;
  z = a;
  return b;
}

void nothing(char c) {
  // do nothing
  add(1, 3);
}

int ant(int bat, int cat[], bool dog, bool elk, int fox)
{
  int gnu, hog[100];
  gnu = hog[2] = 3**cat;
  if (dog && elk || bat > cat[3]) dog = !dog;
  else fox++;
  if (bat <= fox) {
    while (dog) {
      int hog;          // hog in new scope
      hog = fox;
      // undefined symbol error
      dog = fred(fox++, cat)>666;
      if (hog>bat) break;
      else if (fox!=0) fox += 7;
    }
  }
  return (fox+bat*cat[bat])/-fox;
}

int main() {
  int a;
  a = 0;
  while (a
 < 3
) a++;


  b = 3;
  c *= (18 / (3-1)-3)            ;
  c    ++;
  // Should give an undefined symbol error
  z++;
  break  ;

  // Should give an underfined symbol error
  fie();
  return

 0;

}