Преглед изворни кода

Fix prev of first instruction

Yentl Van Tendeloo пре 7 година
родитељ
комит
74087358c1
2 измењених фајлова са 3 додато и 2 уклоњено
  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