Browse Source

Fix bug in JIT where the wrong function was registered

Yentl Van Tendeloo 8 years ago
parent
commit
c226c8435d
2 changed files with 2 additions and 3 deletions
  1. 1 2
      kernel/modelverse_kernel/main.py
  2. 1 1
      wrappers/modelverse_SCCD.py

+ 1 - 2
kernel/modelverse_kernel/main.py

@@ -907,8 +907,7 @@ class ModelverseKernel(object):
                                    ("RD", [inst, "last_param"]),
                                    ("RD", [inst, "last_param"]),
                                   ]
                                   ]
 
 
-            body, =         yield [("RD", [new_IP, "body"])]
-            self.jit.mark_entry_point(body)
+            self.jit.mark_entry_point(new_IP)
             
             
             name, =         yield [("RD", [last_param, "name"])]
             name, =         yield [("RD", [last_param, "name"])]
             name_value, =   yield [("RV", [name])]
             name_value, =   yield [("RV", [name])]

+ 1 - 1
wrappers/modelverse_SCCD.py

@@ -1,7 +1,7 @@
 """
 """
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 
 
-Date:   Wed Nov 22 13:59:53 2017
+Date:   Wed Nov 22 16:27:05 2017
 
 
 Model author: Yentl Van Tendeloo
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server
 Model name:   MvK Server