@@ -0,0 +1,1252 @@
+import sys%0Asys.path.append('../py')%0A%0Afrom iroha import *%0Afrom iroha.iroha import *%0A%0Ad = IDesign()%0Amod = IModule(d, %22mod%22)%0A%0Atab1 = ITable(mod)%0Atab2 = ITable(mod)%0Atab3 = ITable(mod)%0Amain_tab = ITable(mod)%0A%0Adef Call(caller, callee):%0A    # Entry insn.%0A    task = design_tool.CreateSiblingTask(callee)%0A    entry_insn = IInsn(task)%0A    task_st1 = IState(callee)%0A    task_st1.insns.append(entry_insn)%0A    callee.states.append(task_st1)%0A    callee.initialSt = task_st1%0A    # Calling insn.%0A    call = design_tool.CreateSiblingTaskCall(caller, callee)%0A    call_insn = IInsn(call)%0A    call_st = IState(caller)%0A    call_st.insns.append(call_insn)%0A    caller.states.append(call_st)%0A%0ACall(main_tab, tab1)%0ACall(tab1, tab2)%0ACall(tab2, tab3)%0A%0Amain_tab.initialSt = main_tab.states%5B0%5D%0A# print%0Aprint_res = design_tool.GetResource(tab3, %22print%22)%0Aprint_insn = IInsn(print_res)%0Aprint_insn.inputs.append(design_tool.AllocConstNum(tab3, False, 32, 123))%0Aprint_st = IState(tab3)%0Aprint_st.insns.append(print_insn)%0Atab3.states.append(print_st)%0A# connect states.%0Adesign_tool.AddNextState(tab1.initialSt, tab1.states%5B1%5D)%0Adesign_tool.AddNextState(tab2.initialSt, tab2.states%5B1%5D)%0Adesign_tool.AddNextState(tab3.initialSt, print_st)%0A%0Adesign_tool.ValidateIds(d)%0ADesignWriter(d).Write()%0A%0A

Add pipeline example.