@@ -40,7 +40,6 @@ static void inferr_unspecified_pb_graph_edge_delays(t_pb_graph_edge* pb_graph_pi
40
40
static t_pb_graph_pin* find_clock_pin (t_pb_graph_node* gnode, const char * clock, int line_num);
41
41
42
42
void load_pb_graph_pin_to_pin_annotations (t_pb_graph_node* pb_graph_node) {
43
- int i, j, k;
44
43
const t_pb_type* pb_type;
45
44
t_pin_to_pin_annotation* annotations;
46
45
@@ -49,7 +48,7 @@ void load_pb_graph_pin_to_pin_annotations(t_pb_graph_node* pb_graph_node) {
49
48
/* Load primitive critical path delays */
50
49
if (pb_type->is_primitive ()) {
51
50
annotations = pb_type->annotations ;
52
- for (i = 0 ; i < pb_type->num_annotations ; i++) {
51
+ for (int i = 0 ; i < pb_type->num_annotations ; i++) {
53
52
if (annotations[i].type == E_ANNOT_PIN_TO_PIN_DELAY) {
54
53
for (const auto & [key, val] : annotations[i].annotation_entries ) {
55
54
if (key == E_ANNOT_PIN_TO_PIN_DELAY_MAX
@@ -72,10 +71,10 @@ void load_pb_graph_pin_to_pin_annotations(t_pb_graph_node* pb_graph_node) {
72
71
}
73
72
} else {
74
73
/* Load interconnect delays */
75
- for (i = 0 ; i < pb_type->num_modes ; i++) {
76
- for (j = 0 ; j < pb_type->modes [i].num_interconnect ; j++) {
74
+ for (int i = 0 ; i < pb_type->num_modes ; i++) {
75
+ for (int j = 0 ; j < pb_type->modes [i].num_interconnect ; j++) {
77
76
annotations = pb_type->modes [i].interconnect [j].annotations ;
78
- for (k = 0 ; k < pb_type->modes [i].interconnect [j].num_annotations ; k++) {
77
+ for (int k = 0 ; k < pb_type->modes [i].interconnect [j].num_annotations ; k++) {
79
78
if (annotations[k].type == E_ANNOT_PIN_TO_PIN_DELAY) {
80
79
for (const auto & [key, val] : annotations[k].annotation_entries ) {
81
80
if (key == E_ANNOT_PIN_TO_PIN_DELAY_MAX
@@ -114,9 +113,9 @@ void load_pb_graph_pin_to_pin_annotations(t_pb_graph_node* pb_graph_node) {
114
113
inferr_unspecified_pb_graph_node_delays (pb_graph_node);
115
114
116
115
// Recursively annotate child pb's
117
- for (i = 0 ; i < pb_type->num_modes ; i++) {
118
- for (j = 0 ; j < pb_type->modes [i].num_pb_type_children ; j++) {
119
- for (k = 0 ; k < pb_type->modes [i].pb_type_children [j].num_pb ; k++) {
116
+ for (int i = 0 ; i < pb_type->num_modes ; i++) {
117
+ for (int j = 0 ; j < pb_type->modes [i].num_pb_type_children ; j++) {
118
+ for (int k = 0 ; k < pb_type->modes [i].pb_type_children [j].num_pb ; k++) {
120
119
load_pb_graph_pin_to_pin_annotations (&pb_graph_node->child_pb_graph_nodes [i][j][k]);
121
120
}
122
121
}
0 commit comments