diff options
Diffstat (limited to 'js/Misc')
39 files changed, 78 insertions, 0 deletions
diff --git a/js/Misc/AUTOMAT.js b/js/Misc/AUTOMAT.js index 42d505f6..c2f59ffb 100644 --- a/js/Misc/AUTOMAT.js +++ b/js/Misc/AUTOMAT.js @@ -25,6 +25,7 @@ function AUTOMAT() { model.rpar = rpar; gr_i = []; this.x = standard_define([4,2],model,exprs,gr_i); + return new BasicBlock(this.x); } AUTOMAT.prototype.details = function AUTOMAT() { return this.x; @@ -131,5 +132,6 @@ function AUTOMAT() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/BACKLASH.js b/js/Misc/BACKLASH.js index 38897766..3f3b3c3d 100644 --- a/js/Misc/BACKLASH.js +++ b/js/Misc/BACKLASH.js @@ -12,6 +12,7 @@ function BACKLASH() { model.dep_ut = [true,false]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } BACKLASH.prototype.details = function BACKLASH() { return this.x; @@ -44,5 +45,6 @@ function BACKLASH() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/BOUNCE.js b/js/Misc/BOUNCE.js index 1689f888..a9558881 100644 --- a/js/Misc/BOUNCE.js +++ b/js/Misc/BOUNCE.js @@ -36,6 +36,7 @@ function BOUNCE() { exprs = [[strcat(sci2exp(rpar1))],[strcat(sci2exp(rpar2))],[strcat(sci2exp(walls))],[strcat(sci2exp(this.x))],[strcat(sci2exp(xd))],[strcat(sci2exp(y))],[strcat(sci2exp(yd))]]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } BOUNCE.prototype.details = function BOUNCE() { return this.x; @@ -104,5 +105,6 @@ function BOUNCE() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/BOUNCEXY.js b/js/Misc/BOUNCEXY.js index 22e71214..694adf68 100644 --- a/js/Misc/BOUNCEXY.js +++ b/js/Misc/BOUNCEXY.js @@ -33,6 +33,7 @@ function BOUNCEXY() { exprs = [[strcat(sci2exp(clrs))],[strcat(sci2exp(siz))],[strcat(sci2exp(win))],[strcat(sci2exp(1))],[strcat(sci2exp(xmin))],[strcat(sci2exp(xmax))],[strcat(sci2exp(ymin))],[strcat(sci2exp(ymax))]]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } BOUNCEXY.prototype.details = function BOUNCEXY() { return this.x; @@ -90,5 +91,6 @@ function BOUNCEXY() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/BPLATFORM.js b/js/Misc/BPLATFORM.js index c2798629..ec1ad3a7 100644 --- a/js/Misc/BPLATFORM.js +++ b/js/Misc/BPLATFORM.js @@ -19,6 +19,7 @@ function BPLATFORM() { exprs = string(model.rpar); gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } BPLATFORM.prototype.details = function BPLATFORM() { return this.x; @@ -60,5 +61,6 @@ function BPLATFORM() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/CBLOCK.js b/js/Misc/CBLOCK.js index d119c0bb..79830868 100644 --- a/js/Misc/CBLOCK.js +++ b/js/Misc/CBLOCK.js @@ -30,6 +30,7 @@ function CBLOCK() { label = list(transpose([funam,"n",sci2exp(in1),sci2exp(out),sci2exp(clkin),sci2exp(clkout),sci2exp(x0),sci2exp(0),sci2exp(z0),sci2exp(rpar),sci2exp(ipar),sci2exp(auto),"y","n"]),[]); gr_i = []; this.x = standard_define([4,2],model,label,gr_i); + return new BasicBlock(this.x); } CBLOCK.prototype.details = function CBLOCK() { return this.x; @@ -125,5 +126,6 @@ function CBLOCK() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/CBLOCK4.js b/js/Misc/CBLOCK4.js index aa5861a4..f0d39733 100644 --- a/js/Misc/CBLOCK4.js +++ b/js/Misc/CBLOCK4.js @@ -14,6 +14,7 @@ function CBLOCK4() { label = list([[funam],["n"],[sci2exp([model.in1,model.in2])],[sci2exp(model.intyp)],[sci2exp([model.out,model.out2])],[sci2exp(model.outtyp)],[sci2exp(model.evtin)],[sci2exp(model.evtout)],[sci2exp(model.state)],[sci2exp(model.dstate)],[sci2exp(model.odstate)],[sci2exp(model.rpar)],[sci2exp(model.ipar)],[sci2exp(model.opar)],[sci2exp(model.nmode)],[sci2exp(model.nzcross)],[sci2exp(model.firing)],["y"],["n"]],[]); gr_i = []; this.x = standard_define([4,2],model,label,gr_i); + return new BasicBlock(this.x); } CBLOCK4.prototype.details = function CBLOCK4() { return this.x; @@ -107,5 +108,6 @@ function CBLOCK4() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/CONSTRAINT2_c.js b/js/Misc/CONSTRAINT2_c.js index 50012f65..bf52312c 100644 --- a/js/Misc/CONSTRAINT2_c.js +++ b/js/Misc/CONSTRAINT2_c.js @@ -15,6 +15,7 @@ function CONSTRAINT2_c() { exprs = list(strcat(sci2exp(x0)),strcat(sci2exp(xd0)),strcat(sci2exp(id))); gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } CONSTRAINT2_c.prototype.details = function CONSTRAINT2_c() { return this.x; @@ -69,5 +70,6 @@ function CONSTRAINT2_c() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/CONSTRAINT_c.js b/js/Misc/CONSTRAINT_c.js index eba60cb5..33b9a1d5 100644 --- a/js/Misc/CONSTRAINT_c.js +++ b/js/Misc/CONSTRAINT_c.js @@ -13,6 +13,7 @@ function CONSTRAINT_c() { exprs = "0"; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } CONSTRAINT_c.prototype.details = function CONSTRAINT_c() { return this.x; @@ -47,5 +48,6 @@ function CONSTRAINT_c() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/DEADBAND.js b/js/Misc/DEADBAND.js index 45f7ee9d..f1a0f417 100644 --- a/js/Misc/DEADBAND.js +++ b/js/Misc/DEADBAND.js @@ -16,6 +16,7 @@ function DEADBAND() { exprs = [[string(maxp)],[string(minp)],[string(model.nmode)]]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DEADBAND.prototype.details = function DEADBAND() { return this.x; @@ -50,5 +51,6 @@ function DEADBAND() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/DEBUG.js b/js/Misc/DEBUG.js index 7c29a588..70f7ce11 100644 --- a/js/Misc/DEBUG.js +++ b/js/Misc/DEBUG.js @@ -7,6 +7,7 @@ function DEBUG() { exprs = list("","xcos_debug_gui(flag,block);"); gr_i = []; this.x = standard_define([8,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DEBUG.prototype.details = function DEBUG() { return this.x; @@ -45,5 +46,6 @@ function DEBUG() { graphics.exprs = exprs; this.x.graphics = graphics; } + return new BasicBlock(this.x); } } diff --git a/js/Misc/DEBUG_SCICOS.js b/js/Misc/DEBUG_SCICOS.js index b6ecb6ac..48e93ccc 100644 --- a/js/Misc/DEBUG_SCICOS.js +++ b/js/Misc/DEBUG_SCICOS.js @@ -2,6 +2,7 @@ function DEBUG_SCICOS() { DEBUG_SCICOS.prototype.define = function DEBUG_SCICOS() { this.x = DEBUG("define"); + return new BasicBlock(this.x); } DEBUG_SCICOS.prototype.details = function DEBUG_SCICOS() { return this.x; @@ -11,5 +12,6 @@ function DEBUG_SCICOS() { DEBUG_SCICOS.prototype.set = function DEBUG_SCICOS() { arg1.gui = "DEBUG"; [this.x,y,typ] = DEBUG("set",arg1); + return new BasicBlock(this.x); } } diff --git a/js/Misc/DIFF_f.js b/js/Misc/DIFF_f.js index 2378c548..9e374115 100644 --- a/js/Misc/DIFF_f.js +++ b/js/Misc/DIFF_f.js @@ -12,6 +12,7 @@ function DIFF_f() { exprs = [[strcat(sci2exp(x0[1-1]))],[strcat(sci2exp(x0[2-1]))]]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DIFF_f.prototype.details = function DIFF_f() { return this.x; @@ -35,5 +36,6 @@ function DIFF_f() { break; } this.x.model.firing = []; + return new BasicBlock(this.x); } } diff --git a/js/Misc/DSUPER.js b/js/Misc/DSUPER.js index 4e8f079f..67b98d9d 100644 --- a/js/Misc/DSUPER.js +++ b/js/Misc/DSUPER.js @@ -1,6 +1,7 @@ /* autogenerated from "macros/Misc/DSUPER.sci" */ function DSUPER() { DSUPER.prototype.define = function DSUPER() { + return new BasicBlock(this.x); } DSUPER.prototype.details = function DSUPER() { return this.x; @@ -48,5 +49,6 @@ function DSUPER() { } else { this.x = arg1; } + return new BasicBlock(this.x); } } diff --git a/js/Misc/EDGETRIGGER.js b/js/Misc/EDGETRIGGER.js index a91acc88..5cffb67e 100644 --- a/js/Misc/EDGETRIGGER.js +++ b/js/Misc/EDGETRIGGER.js @@ -14,6 +14,7 @@ function EDGETRIGGER() { exprs = [string(edge)]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } EDGETRIGGER.prototype.details = function EDGETRIGGER() { return this.x; @@ -36,5 +37,6 @@ function EDGETRIGGER() { this.x.model = model; break; } + return new BasicBlock(this.x); } } diff --git a/js/Misc/EDGE_TRIGGER.js b/js/Misc/EDGE_TRIGGER.js index efd03837..f0aeb9ff 100644 --- a/js/Misc/EDGE_TRIGGER.js +++ b/js/Misc/EDGE_TRIGGER.js @@ -79,6 +79,7 @@ function EDGE_TRIGGER() { model.rpar = scs_m_1; gr_i = []; this.x = standard_define([3,2],model,[],gr_i); + return new BasicBlock(this.x); } EDGE_TRIGGER.prototype.details = function EDGE_TRIGGER() { return this.x; @@ -153,5 +154,6 @@ function EDGE_TRIGGER() { } this.x = arg1; typ = newpar; + return new BasicBlock(this.x); } } diff --git a/js/Misc/ENDBLK.js b/js/Misc/ENDBLK.js index ad60a07f..384c2020 100644 --- a/js/Misc/ENDBLK.js +++ b/js/Misc/ENDBLK.js @@ -7,6 +7,7 @@ function ENDBLK() { model = scicos_model(sim="csuper",in1=[],in2=[],intyp=1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=scs_m_1,ipar=[],opar=list(),blocktype="h",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()); gr_i = []; this.x = standard_define([2,2],model,[],gr_i); + return new BasicBlock(this.x); } ENDBLK.prototype.details = function ENDBLK() { return this.x; @@ -81,5 +82,6 @@ function ENDBLK() { } this.x = arg1; typ = newpar; + return new BasicBlock(this.x); } } diff --git a/js/Misc/Extract_Activation.js b/js/Misc/Extract_Activation.js index cfd50124..fcb729d6 100644 --- a/js/Misc/Extract_Activation.js +++ b/js/Misc/Extract_Activation.js @@ -84,6 +84,7 @@ function Extract_Activation() { model.rpar = scs_m_1; gr_i = []; this.x = standard_define([3,2],model,[],gr_i); + return new BasicBlock(this.x); } Extract_Activation.prototype.details = function Extract_Activation() { return this.x; @@ -92,5 +93,6 @@ function Extract_Activation() { } Extract_Activation.prototype.set = function Extract_Activation() { this.x = arg1; + return new BasicBlock(this.x); } } diff --git a/js/Misc/HYSTHERESIS.js b/js/Misc/HYSTHERESIS.js index 143022ac..da9e1b60 100644 --- a/js/Misc/HYSTHERESIS.js +++ b/js/Misc/HYSTHERESIS.js @@ -17,6 +17,7 @@ function HYSTHERESIS() { exprs = [[string(rpar)],[string(sign(nzz))]]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } HYSTHERESIS.prototype.details = function HYSTHERESIS() { return this.x; @@ -47,5 +48,6 @@ function HYSTHERESIS() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/IMPSPLIT_f.js b/js/Misc/IMPSPLIT_f.js index 13d25e0b..ddbc3450 100644 --- a/js/Misc/IMPSPLIT_f.js +++ b/js/Misc/IMPSPLIT_f.js @@ -13,6 +13,7 @@ function IMPSPLIT_f() { this.x = standard_define([1,1]/3,model,[],[]); this.x.graphics.in_implicit = ["I"]; this.x.graphics.out_implicit = ["I","I"]; + return new BasicBlock(this.x); } IMPSPLIT_f.prototype.details = function IMPSPLIT_f() { return this.x; @@ -21,5 +22,6 @@ function IMPSPLIT_f() { } IMPSPLIT_f.prototype.set = function IMPSPLIT_f() { this.x = arg1; + return new BasicBlock(this.x); } } diff --git a/js/Misc/LOGICAL_OP.js b/js/Misc/LOGICAL_OP.js index 66ddcac6..6d875b4c 100644 --- a/js/Misc/LOGICAL_OP.js +++ b/js/Misc/LOGICAL_OP.js @@ -14,6 +14,7 @@ function LOGICAL_OP() { exprs = [[string(nin)],[string(ipar)]]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } LOGICAL_OP.prototype.details = function LOGICAL_OP() { return this.x; @@ -109,5 +110,6 @@ function LOGICAL_OP() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/MBLOCK.js b/js/Misc/MBLOCK.js index 2b478a8a..bf6d83e4 100644 --- a/js/Misc/MBLOCK.js +++ b/js/Misc/MBLOCK.js @@ -30,6 +30,7 @@ function MBLOCK() { this.x = standard_define([3,2],model,exprs,gr_i); this.x.graphics.in_implicit = this.intype; this.x.graphics.out_implicit = this.outtype; + return new BasicBlock(this.x); } MBLOCK.prototype.details = function MBLOCK() { return this.x; @@ -270,5 +271,6 @@ function MBLOCK() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/MEMORY_f.js b/js/Misc/MEMORY_f.js index cb8c1333..46528ac6 100644 --- a/js/Misc/MEMORY_f.js +++ b/js/Misc/MEMORY_f.js @@ -15,6 +15,7 @@ function MEMORY_f() { model.dep_ut = [false,false]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } MEMORY_f.prototype.details = function MEMORY_f() { return this.x; @@ -53,5 +54,6 @@ function MEMORY_f() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/MPBLOCK.js b/js/Misc/MPBLOCK.js index f13fed08..911a19d7 100644 --- a/js/Misc/MPBLOCK.js +++ b/js/Misc/MPBLOCK.js @@ -30,6 +30,7 @@ function MPBLOCK() { this.x = standard_define([3,2],model,exprs,gr_i); this.x.graphics.in_implicit = this.intype; this.x.graphics.out_implicit = this.outtype; + return new BasicBlock(this.x); } MPBLOCK.prototype.details = function MPBLOCK() { return this.x; @@ -262,5 +263,6 @@ function MPBLOCK() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/PAL_f.js b/js/Misc/PAL_f.js index 05c7ef2f..ed6fbf21 100644 --- a/js/Misc/PAL_f.js +++ b/js/Misc/PAL_f.js @@ -13,6 +13,7 @@ function PAL_f() { gr_i = []; this.x = standard_define([2,2],model,[],gr_i); this.x.graphics.id = scs.props.title[1-1]; + return new BasicBlock(this.x); } PAL_f.prototype.details = function PAL_f() { return this.x; @@ -27,5 +28,6 @@ function PAL_f() { y = []; typ = []; %exit=resume(false) + return new BasicBlock(this.x); } } diff --git a/js/Misc/PENDULUM_ANIM.js b/js/Misc/PENDULUM_ANIM.js index cebe2d42..5aa97023 100644 --- a/js/Misc/PENDULUM_ANIM.js +++ b/js/Misc/PENDULUM_ANIM.js @@ -19,6 +19,7 @@ function PENDULUM_ANIM() { exprs = string(model.rpar); gr_i = []; this.x = standard_define([3,3],model,exprs,gr_i); + return new BasicBlock(this.x); } PENDULUM_ANIM.prototype.details = function PENDULUM_ANIM() { return this.x; @@ -60,5 +61,6 @@ function PENDULUM_ANIM() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/RATELIMITER.js b/js/Misc/RATELIMITER.js index 4a516d69..5ec433ea 100644 --- a/js/Misc/RATELIMITER.js +++ b/js/Misc/RATELIMITER.js @@ -14,6 +14,7 @@ function RATELIMITER() { exprs = [[string(maxp)],[string(minp)]]; gr_i = []; this.x = standard_define([3.5,2],model,exprs,gr_i); + return new BasicBlock(this.x); } RATELIMITER.prototype.details = function RATELIMITER() { return this.x; @@ -41,5 +42,6 @@ function RATELIMITER() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/RELATIONALOP.js b/js/Misc/RELATIONALOP.js index b78bd2a7..fd096070 100644 --- a/js/Misc/RELATIONALOP.js +++ b/js/Misc/RELATIONALOP.js @@ -14,6 +14,7 @@ function RELATIONALOP() { gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); this.x.graphics.style = ["fontSize=13;fontStyle=1;displayedLabel="+label]; + return new BasicBlock(this.x); } RELATIONALOP.prototype.details = function RELATIONALOP() { return this.x; @@ -90,5 +91,6 @@ function RELATIONALOP() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/SPLIT_f.js b/js/Misc/SPLIT_f.js index da1266e6..ba8449cc 100644 --- a/js/Misc/SPLIT_f.js +++ b/js/Misc/SPLIT_f.js @@ -8,6 +8,7 @@ function SPLIT_f() { model.blocktype = "c"; model.dep_ut = [true,false]; this.x = standard_define([1,1]/3,model,[],[]); + return new BasicBlock(this.x); } SPLIT_f.prototype.details = function SPLIT_f() { return this.x; @@ -16,5 +17,6 @@ function SPLIT_f() { } SPLIT_f.prototype.set = function SPLIT_f() { this.x = arg1; + return new BasicBlock(this.x); } } diff --git a/js/Misc/SUPER_f.js b/js/Misc/SUPER_f.js index 38122ec1..658ee514 100644 --- a/js/Misc/SUPER_f.js +++ b/js/Misc/SUPER_f.js @@ -20,6 +20,7 @@ function SUPER_f() { model.dep_ut = [false,false]; gr_i = []; this.x = standard_define([2,2],model,[],gr_i); + return new BasicBlock(this.x); } SUPER_f.prototype.details = function SUPER_f() { return this.x; @@ -28,5 +29,6 @@ function SUPER_f() { } SUPER_f.prototype.set = function SUPER_f() { xcos(arg1.model.rpar); + return new BasicBlock(this.x); } } diff --git a/js/Misc/TEXT_f.js b/js/Misc/TEXT_f.js index ed29625a..0b8d4b9c 100644 --- a/js/Misc/TEXT_f.js +++ b/js/Misc/TEXT_f.js @@ -13,6 +13,7 @@ function TEXT_f() { graphics.sz = [2,1]; graphics.exprs = exprs; this.x = mlist(["Text","graphics","model","void","gui"],graphics,model," ","TEXT_f"); + return new BasicBlock(this.x); } TEXT_f.prototype.details = function TEXT_f() { return this.x; @@ -63,5 +64,6 @@ function TEXT_f() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/c_block.js b/js/Misc/c_block.js index 2748ac98..77e2cb6d 100644 --- a/js/Misc/c_block.js +++ b/js/Misc/c_block.js @@ -27,6 +27,7 @@ function c_block() { label = list([[sci2exp(in1)],[sci2exp(out)],[strcat(sci2exp(rpar))],[funam]],list([])); gr_i = []; this.x = standard_define([3,2],model,label,gr_i); + return new BasicBlock(this.x); } c_block.prototype.details = function c_block() { return this.x; @@ -71,5 +72,6 @@ function c_block() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/fortran_block.js b/js/Misc/fortran_block.js index b403b16e..7cd0df3e 100644 --- a/js/Misc/fortran_block.js +++ b/js/Misc/fortran_block.js @@ -18,6 +18,7 @@ function fortran_block() { label = list([[sci2exp(model.in1)],[sci2exp(model.out)],[strcat(sci2exp(model.rpar))],[funam]],list([])); gr_i = []; this.x = standard_define([4,2],model,label,gr_i); + return new BasicBlock(this.x); } fortran_block.prototype.details = function fortran_block() { return this.x; @@ -62,5 +63,6 @@ function fortran_block() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Misc/func_block.js b/js/Misc/func_block.js index d8083f99..f66d74a6 100644 --- a/js/Misc/func_block.js +++ b/js/Misc/func_block.js @@ -10,6 +10,7 @@ function func_block() { exprs = "v=sin(u);y=u*v"; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } func_block.prototype.details = function func_block() { return this.x; @@ -29,5 +30,6 @@ function func_block() { this.x.model = model; this.x.graphics = graphics; } + return new BasicBlock(this.x); } } diff --git a/js/Misc/generic_block.js b/js/Misc/generic_block.js index 4b0fea72..9ec5cd22 100644 --- a/js/Misc/generic_block.js +++ b/js/Misc/generic_block.js @@ -19,6 +19,7 @@ function generic_block() { label = [[function_name],[sci2exp(funtyp)],[sci2exp(model.in1)],[sci2exp(model.out)],[sci2exp(model.evtin)],[sci2exp(model.evtout)],[sci2exp(model.state)],[sci2exp(model.dstate)],[sci2exp(model.rpar)],[sci2exp(model.ipar)],[sci2exp(model.firing)],["y"],["n"]]; gr_i = []; this.x = standard_define([2,2],model,label,gr_i); + return new BasicBlock(this.x); } generic_block.prototype.details = function generic_block() { return this.x; @@ -94,5 +95,6 @@ function generic_block() { } } needcompile=resume(needcompile) + return new BasicBlock(this.x); } } diff --git a/js/Misc/generic_block2.js b/js/Misc/generic_block2.js index c42f797b..7eb9f7f5 100644 --- a/js/Misc/generic_block2.js +++ b/js/Misc/generic_block2.js @@ -19,6 +19,7 @@ function generic_block2() { label = [[function_name],[sci2exp(funtyp)],[sci2exp(model.in1)],[sci2exp(model.out)],[sci2exp(model.evtin)],[sci2exp(model.evtout)],[sci2exp(model.state)],[sci2exp(model.dstate)],[sci2exp(model.rpar)],[sci2exp(model.ipar)],[sci2exp(model.nmode)],[sci2exp(model.nzcross)],[sci2exp(model.firing)],["y"],["n"]]; gr_i = []; this.x = standard_define([2,2],model,label,gr_i); + return new BasicBlock(this.x); } generic_block2.prototype.details = function generic_block2() { return this.x; @@ -96,5 +97,6 @@ function generic_block2() { } } needcompile=resume(needcompile) + return new BasicBlock(this.x); } } diff --git a/js/Misc/generic_block3.js b/js/Misc/generic_block3.js index 179c1613..2b94d741 100644 --- a/js/Misc/generic_block3.js +++ b/js/Misc/generic_block3.js @@ -15,6 +15,7 @@ function generic_block3() { label = [[function_name],[sci2exp(funtyp)],[sci2exp([model.in1,model.in2])],[sci2exp(model.intyp)],[sci2exp([model.out,model.out2]),sci2exp(model.outtyp)],[sci2exp(model.evtin)],[sci2exp(model.evtout)],[sci2exp(model.state)],[sci2exp(model.dstate)],[sci2exp(model.odstate)],[sci2exp(model.rpar)],[sci2exp(model.ipar)],[sci2exp(model.opar)],[sci2exp(model.nmode)],[sci2exp(model.nzcross)],[sci2exp(model.firing)],["y"],["n"]]; gr_i = []; this.x = standard_define([4,2],model,label,gr_i); + return new BasicBlock(this.x); } generic_block3.prototype.details = function generic_block3() { return this.x; @@ -100,5 +101,6 @@ function generic_block3() { } } needcompile=resume(needcompile) + return new BasicBlock(this.x); } } diff --git a/js/Misc/scifunc_block.js b/js/Misc/scifunc_block.js index c491639d..50a5eb63 100644 --- a/js/Misc/scifunc_block.js +++ b/js/Misc/scifunc_block.js @@ -27,6 +27,7 @@ function scifunc_block() { exprs = list([[sci2exp(in1)],[sci2exp(out)],[sci2exp(clkin)],[sci2exp(clkout)],[strcat(sci2exp(x0))],[strcat(sci2exp(z0))],[strcat(sci2exp(rpar))],[sci2exp(auto)]],list("y1=sin(u1)"," "," ","y1=sin(u1)"," "," "," ")); gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } scifunc_block.prototype.details = function scifunc_block() { return this.x; @@ -89,5 +90,6 @@ function scifunc_block() { } } needcompile=resume(needcompile) + return new BasicBlock(this.x); } } diff --git a/js/Misc/scifunc_block_m.js b/js/Misc/scifunc_block_m.js index 7571eac0..8e338ba6 100644 --- a/js/Misc/scifunc_block_m.js +++ b/js/Misc/scifunc_block_m.js @@ -32,6 +32,7 @@ function scifunc_block_m() { exprs = list([[sci2exp([in1,in1])],[sci2exp([out,out])],[sci2exp(clkin)],[sci2exp(clkout)],[strcat(sci2exp(x0))],[strcat(sci2exp(z0))],[strcat(sci2exp(rpar))],[sci2exp(auto)],[sci2exp(0)]],list("y1=sin(u1)"," "," ","y1=sin(u1)"," "," "," ")); gr_i = []; this.x = standard_define([4,2],model,exprs,gr_i); + return new BasicBlock(this.x); } scifunc_block_m.prototype.details = function scifunc_block_m() { return this.x; @@ -91,5 +92,6 @@ function scifunc_block_m() { } } needcompile=resume(needcompile) + return new BasicBlock(this.x); } } |