| 1 | nameExpr is f
 | 
|---|
| 2 | decl is f: function
 | 
|---|
| 3 |     accepting unspecified arguments
 | 
|---|
| 4 |   returning 
 | 
|---|
| 5 |     nothing 
 | 
|---|
| 6 |   with body 
 | 
|---|
| 7 |     CompoundStmt
 | 
|---|
| 8 |       Declaration of f: signed int 
 | 
|---|
| 9 |       Declaration of f: double 
 | 
|---|
| 10 |               Expression Statement:
 | 
|---|
| 11 |           Cast of:
 | 
|---|
| 12 |             Name: f
 | 
|---|
| 13 | 
 | 
|---|
| 14 |           to:
 | 
|---|
| 15 |             char 
 | 
|---|
| 16 | 
 | 
|---|
| 17 |               Expression Statement:
 | 
|---|
| 18 |           Cast of:
 | 
|---|
| 19 |             Name: f
 | 
|---|
| 20 | 
 | 
|---|
| 21 |           to:
 | 
|---|
| 22 |             pointer to function
 | 
|---|
| 23 |                   accepting unspecified arguments
 | 
|---|
| 24 |                 returning 
 | 
|---|
| 25 |                   signed int 
 | 
|---|
| 26 | 
 | 
|---|
| 27 | 
 | 
|---|
| 28 | 
 | 
|---|
| 29 | newExpr is Variable Expression: f: function
 | 
|---|
| 30 |       accepting unspecified arguments
 | 
|---|
| 31 |     returning 
 | 
|---|
| 32 |       nothing 
 | 
|---|
| 33 | 
 | 
|---|
| 34 | 
 | 
|---|
| 35 | decl is f: double 
 | 
|---|
| 36 | newExpr is Variable Expression: f: double 
 | 
|---|
| 37 | 
 | 
|---|
| 38 | decl is f: signed int 
 | 
|---|
| 39 | newExpr is Variable Expression: f: signed int 
 | 
|---|
| 40 | 
 | 
|---|
| 41 | alternatives before prune:
 | 
|---|
| 42 | Cost ( 0, 0, 0 ): Variable Expression: f: function
 | 
|---|
| 43 |       accepting unspecified arguments
 | 
|---|
| 44 |     returning 
 | 
|---|
| 45 |       nothing 
 | 
|---|
| 46 | 
 | 
|---|
| 47 | (types:
 | 
|---|
| 48 |     pointer to function
 | 
|---|
| 49 |           accepting unspecified arguments
 | 
|---|
| 50 |         returning 
 | 
|---|
| 51 |           nothing 
 | 
|---|
| 52 | 
 | 
|---|
| 53 | )
 | 
|---|
| 54 | Environment: 
 | 
|---|
| 55 | 
 | 
|---|
| 56 | Cost ( 0, 0, 0 ): Variable Expression: f: double 
 | 
|---|
| 57 | (types:
 | 
|---|
| 58 |     lvalue double 
 | 
|---|
| 59 | )
 | 
|---|
| 60 | Environment: 
 | 
|---|
| 61 | 
 | 
|---|
| 62 | Cost ( 0, 0, 0 ): Variable Expression: f: signed int 
 | 
|---|
| 63 | (types:
 | 
|---|
| 64 |     lvalue signed int 
 | 
|---|
| 65 | )
 | 
|---|
| 66 | Environment: 
 | 
|---|
| 67 | 
 | 
|---|
| 68 | there are 3 alternatives before elimination
 | 
|---|
| 69 | there are 3 alternatives after elimination
 | 
|---|
| 70 | alternatives before prune:
 | 
|---|
| 71 | Cost ( 1, 0, 0 ): Cast of:
 | 
|---|
| 72 |   Variable Expression: f: signed int 
 | 
|---|
| 73 | 
 | 
|---|
| 74 | to:
 | 
|---|
| 75 |   char 
 | 
|---|
| 76 | (types:
 | 
|---|
| 77 |     char 
 | 
|---|
| 78 | )
 | 
|---|
| 79 | Environment: 
 | 
|---|
| 80 | 
 | 
|---|
| 81 | Cost ( 1, 0, 0 ): Cast of:
 | 
|---|
| 82 |   Variable Expression: f: double 
 | 
|---|
| 83 | 
 | 
|---|
| 84 | to:
 | 
|---|
| 85 |   char 
 | 
|---|
| 86 | (types:
 | 
|---|
| 87 |     char 
 | 
|---|
| 88 | )
 | 
|---|
| 89 | Environment: 
 | 
|---|
| 90 | 
 | 
|---|
| 91 | marking ambiguous
 | 
|---|
| 92 | there are 1 alternatives before elimination
 | 
|---|
| 93 | nameExpr is f
 | 
|---|
| 94 | decl is f: function
 | 
|---|
| 95 |     accepting unspecified arguments
 | 
|---|
| 96 |   returning 
 | 
|---|
| 97 |     nothing 
 | 
|---|
| 98 |   with body 
 | 
|---|
| 99 |     CompoundStmt
 | 
|---|
| 100 |       Declaration of f: signed int 
 | 
|---|
| 101 |       Declaration of f: double 
 | 
|---|
| 102 |               Expression Statement:
 | 
|---|
| 103 |           Cast of:
 | 
|---|
| 104 |             Name: f
 | 
|---|
| 105 | 
 | 
|---|
| 106 |           to:
 | 
|---|
| 107 |             char 
 | 
|---|
| 108 | 
 | 
|---|
| 109 |               Expression Statement:
 | 
|---|
| 110 |           Cast of:
 | 
|---|
| 111 |             Name: f
 | 
|---|
| 112 | 
 | 
|---|
| 113 |           to:
 | 
|---|
| 114 |             pointer to function
 | 
|---|
| 115 |                   accepting unspecified arguments
 | 
|---|
| 116 |                 returning 
 | 
|---|
| 117 |                   signed int 
 | 
|---|
| 118 | 
 | 
|---|
| 119 | 
 | 
|---|
| 120 | 
 | 
|---|
| 121 | newExpr is Variable Expression: f: function
 | 
|---|
| 122 |       accepting unspecified arguments
 | 
|---|
| 123 |     returning 
 | 
|---|
| 124 |       nothing 
 | 
|---|
| 125 | 
 | 
|---|
| 126 | 
 | 
|---|
| 127 | decl is f: double 
 | 
|---|
| 128 | newExpr is Variable Expression: f: double 
 | 
|---|
| 129 | 
 | 
|---|
| 130 | decl is f: signed int 
 | 
|---|
| 131 | newExpr is Variable Expression: f: signed int 
 | 
|---|
| 132 | 
 | 
|---|
| 133 | alternatives before prune:
 | 
|---|
| 134 | Cost ( 0, 0, 0 ): Variable Expression: f: function
 | 
|---|
| 135 |       accepting unspecified arguments
 | 
|---|
| 136 |     returning 
 | 
|---|
| 137 |       nothing 
 | 
|---|
| 138 | 
 | 
|---|
| 139 | (types:
 | 
|---|
| 140 |     pointer to function
 | 
|---|
| 141 |           accepting unspecified arguments
 | 
|---|
| 142 |         returning 
 | 
|---|
| 143 |           nothing 
 | 
|---|
| 144 | 
 | 
|---|
| 145 | )
 | 
|---|
| 146 | Environment: 
 | 
|---|
| 147 | 
 | 
|---|
| 148 | Cost ( 0, 0, 0 ): Variable Expression: f: double 
 | 
|---|
| 149 | (types:
 | 
|---|
| 150 |     lvalue double 
 | 
|---|
| 151 | )
 | 
|---|
| 152 | Environment: 
 | 
|---|
| 153 | 
 | 
|---|
| 154 | Cost ( 0, 0, 0 ): Variable Expression: f: signed int 
 | 
|---|
| 155 | (types:
 | 
|---|
| 156 |     lvalue signed int 
 | 
|---|
| 157 | )
 | 
|---|
| 158 | Environment: 
 | 
|---|
| 159 | 
 | 
|---|
| 160 | there are 3 alternatives before elimination
 | 
|---|
| 161 | there are 3 alternatives after elimination
 | 
|---|
| 162 | Error: Can't choose between alternatives for expression Cast of:
 | 
|---|
| 163 |   Name: f
 | 
|---|
| 164 | 
 | 
|---|
| 165 | to:
 | 
|---|
| 166 |   char 
 | 
|---|
| 167 | Alternatives are:        Cost ( 1, 0, 0 ):         Cast of:
 | 
|---|
| 168 |           Variable Expression: f: signed int 
 | 
|---|
| 169 | 
 | 
|---|
| 170 |         to:
 | 
|---|
| 171 |           char 
 | 
|---|
| 172 | (types:
 | 
|---|
| 173 |             char 
 | 
|---|
| 174 | )
 | 
|---|
| 175 |         Environment: 
 | 
|---|
| 176 | 
 | 
|---|
| 177 |         Cost ( 1, 0, 0 ):         Cast of:
 | 
|---|
| 178 |           Variable Expression: f: double 
 | 
|---|
| 179 | 
 | 
|---|
| 180 |         to:
 | 
|---|
| 181 |           char 
 | 
|---|
| 182 | (types:
 | 
|---|
| 183 |             char 
 | 
|---|
| 184 | )
 | 
|---|
| 185 |         Environment: 
 | 
|---|
| 186 | 
 | 
|---|
| 187 | 
 | 
|---|
| 188 | Error: No reasonable alternatives for expression Cast of:
 | 
|---|
| 189 |   Name: f
 | 
|---|
| 190 | 
 | 
|---|
| 191 | to:
 | 
|---|
| 192 |   pointer to function
 | 
|---|
| 193 |         accepting unspecified arguments
 | 
|---|
| 194 |       returning 
 | 
|---|
| 195 |         signed int 
 | 
|---|
| 196 | 
 | 
|---|
| 197 | 
 | 
|---|