From d3263cbc28f5bed027c941ca344cad69c5afb4f5 Mon Sep 17 00:00:00 2001
From: Markus Holzer <markus.holzer@fau.de>
Date: Mon, 23 May 2022 16:15:36 +0200
Subject: [PATCH] Testing

---
 pystencils/transformations.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pystencils/transformations.py b/pystencils/transformations.py
index 06005cbf7..09c2e0976 100644
--- a/pystencils/transformations.py
+++ b/pystencils/transformations.py
@@ -638,6 +638,7 @@ def move_constants_before_loop(ast_node):
                     new_symbol = TypedSymbol(sp.Dummy().name, child.lhs.dtype)
                     target.insert_before(ast.SympyAssignment(new_symbol, child.rhs, is_const=child.is_const),
                                          child_to_insert_before)
+                    block.append(ast.SympyAssignment(child.lhs, new_symbol, is_const=child.is_const))
 
 
 def split_inner_loop(ast_node: ast.Node, symbol_groups):
-- 
GitLab