From 4e0e64f9b07de6beae2fe3c9d606a2f0ef52af89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Tue, 19 Jun 2001 17:19:54 +0000 Subject: [PATCH] changed bounds of arrays from plain ints to irnode*s. added some comment: undefined variables [r177] --- testprograms/array-heap_example.c | 4 +++- testprograms/array-stack_example.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/testprograms/array-heap_example.c b/testprograms/array-heap_example.c index e414f1069..f8389dc24 100644 --- a/testprograms/array-heap_example.c +++ b/testprograms/array-heap_example.c @@ -88,7 +88,9 @@ main(void) # define L_BOUND 0 # define U_BOUND 9 array_type = new_type_array(id_from_str("a", 1), N_DIMS, prim_t_int); - set_array_bounds(array_type, 1, L_BOUND, U_BOUND); + set_array_bounds(array_type, 1, + new_Const(mode_I, tarval_from_long (mode_I, L_BOUND)), + new_Const(mode_I, tarval_from_long (mode_I, U_BOUND))); /* As the array is accessed by Sel nodes, we need information about the entity the node selects. Entities of an array are it's elements which are, in this case, integers. */ diff --git a/testprograms/array-stack_example.c b/testprograms/array-stack_example.c index 7246c49ae..edeeb67fc 100644 --- a/testprograms/array-stack_example.c +++ b/testprograms/array-stack_example.c @@ -85,7 +85,9 @@ main(void) # define L_BOUND 0 # define U_BOUND 9 array_type = new_type_array(id_from_str("a", 1), N_DIMS, prim_t_int); - set_array_bounds(array_type, 1, L_BOUND, U_BOUND); + set_array_bounds(array_type, 1, + new_Const(mode_I, tarval_from_long (mode_I, L_BOUND)), + new_Const(mode_I, tarval_from_long (mode_I, U_BOUND))); /* The array is an entity of the method, placed on the mehtod's own memory, the stack frame. */ array_ent = get_array_element_entity(array_type); -- 2.20.1