Explorar el Código

Fix prev of first instruction

Yentl Van Tendeloo hace 7 años
padre
commit
74087358c1
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 2 1
      kernel/modelverse_kernel/main.py
  2. 1 1
      wrappers/modelverse_SCCD.py

+ 2 - 1
kernel/modelverse_kernel/main.py

@@ -385,7 +385,8 @@ class ModelverseKernel(object):
             raise jit.JitCompilationFailedException("FAIL")
             raise jit.JitCompilationFailedException("FAIL")
 
 
         print("Reading function: %s" % suggested_name)
         print("Reading function: %s" % suggested_name)
-        (_, printed), = yield [("CALL_ARGS", [self.print_instruction, (inst, 1)])]
+        (prev, printed), = yield [("CALL_ARGS", [self.print_instruction, (inst, 1)])]
+        printed = prev + printed
         print("Total printed function: ")
         print("Total printed function: ")
         if params:
         if params:
             func = "def " + suggested_name + "(" + ", ".join(["var_%s" % param for param in params]) + ", **kwargs):\n" + printed
             func = "def " + suggested_name + "(" + ", ".join(["var_%s" % param for param in params]) + ", **kwargs):\n" + printed

+ 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:   Tue Apr 10 11:35:06 2018
+Date:   Tue Apr 10 11:41:06 2018
 
 
 Model author: Yentl Van Tendeloo
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server
 Model name:   MvK Server