summaryrefslogtreecommitdiff
path: root/js/Sources/RAND_m.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-26 12:08:19 +0530
committerSunil Shetye2018-06-26 12:08:19 +0530
commitafed64f1a0eab0b2d742088186d7bc340a2c895b (patch)
tree7270fd2e6c53e6df90c71e2fcbccd8149c3553a5 /js/Sources/RAND_m.js
parent7465daea85285ba7f291b6bf6ddc45caa9e7ad65 (diff)
downloadsci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.tar.gz
sci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.tar.bz2
sci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.zip
return block type in define and set
Diffstat (limited to 'js/Sources/RAND_m.js')
-rw-r--r--js/Sources/RAND_m.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/Sources/RAND_m.js b/js/Sources/RAND_m.js
index 5c6a35fd..d3c62d7e 100644
--- a/js/Sources/RAND_m.js
+++ b/js/Sources/RAND_m.js
@@ -27,6 +27,7 @@ function RAND_m() {
exprs = [[sci2exp(1)],[string(flag)],[sci2exp([a])],[sci2exp([b])],[sci2exp([model.dstate[1-1],int(rand()*(10^7-1))])]];
gr_i = [];
this.x = standard_define([3,2],model,exprs,gr_i);
+ return new BasicBlock(this.x);
}
RAND_m.prototype.details = function RAND_m() {
return this.x;
@@ -77,5 +78,6 @@ function RAND_m() {
}
}
}
+ return new BasicBlock(this.x);
}
}