From 109eeba6796e5a3ecfb2fea1925c6f45dd285437 Mon Sep 17 00:00:00 2001 From: Luigi Fusco Date: Fri, 13 Sep 2024 15:04:07 +0200 Subject: [PATCH] fix to_sdfg in test --- tests/transformations/raise_and_duplicate_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/transformations/raise_and_duplicate_test.py b/tests/transformations/raise_and_duplicate_test.py index cc7769ee3a..1306f01df0 100644 --- a/tests/transformations/raise_and_duplicate_test.py +++ b/tests/transformations/raise_and_duplicate_test.py @@ -22,7 +22,7 @@ def program(flag: dace.bool, in_arr: dace.float64[N], arr: dace.float64[N]): for i in dace.map[0:N]: arr[i] = tmp2[i] - sdfg = program.to_sdfg() + sdfg = program.to_sdfg(simplify=True) sdfg.apply_transformations([IfRaising, StateReplication]) sdfg.simplify() sdfg.apply_transformations_repeated([OTFMapFusion]) @@ -49,7 +49,7 @@ def program(arr: dace.float64[N]): else: return 0 - sdfg = program.to_sdfg() + sdfg = program.to_sdfg(simplify=True) transform = IfRaising() transform.if_guard = sdfg.start_state