int3 / half-and-half

A simple partial evaluator for Javascript.
4 stars 1 forks source link

examples/while_if.js doesn't work #1

Closed michaelficarra closed 11 years ago

michaelficarra commented 11 years ago

I see the following error:

$ ./half-and-half examples/while_if.js
Assertion failed: BranchesOut.find(Target) == BranchesOut.end(), at: relooper/Relooper.cpp,117,void Block::AddBranchTo(Block *, const char *, const char *) at Error:
  at ___assert_func (half-and-half/vendor/relooper.js:974:246)
  at __ZN5Block11AddBranchToEPS_PKcS2_ (half-and-half/vendor/relooper.js:2314:4379)
  at _rl_block_add_branch_to (half-and-half/vendor/relooper.js:2314:55382)
  at Object.RelooperGlue.addBranch (half-and-half/vendor/relooper.js:2467:5)
  at recur (half-and-half/ir.coffee:497:25)
  at Object.ir.toProgram (half-and-half/ir.coffee:502:5)
  at Object.<anonymous> (half-and-half/peval.coffee:288:17, <js>:405:22)
  at Object.<anonymous> (half-and-half/peval.coffee:1:1, <js>:409:4)
  at Module._compile (module.js:456:26)

The brainfuck example works fine with both brainfuck programs.

$ node -v
v0.10.0
$ git log --oneline -1
015cd21a Touch up README.
int3 commented 11 years ago

Thanks for the report! I did not expect someone to notice this repo so quickly :)