Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/compile/RuleCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,7 @@ private void compile_r() throws CompileException {

buildRHSMem(rs.rightMem);
/* 右辺の$pが配置された直後。このタイミングでなければならない筈 */
if (!rs.rightMem.processContexts.isEmpty()) {
body.add(new Instruction(Instruction.REMOVETEMPORARYPROXIES, toplevelmemid));
}
body.add(new Instruction(Instruction.REMOVETEMPORARYPROXIES, toplevelmemid));
copyRules(rs.rightMem);
loadRulesets(rs.rightMem);
buildRHSTypedProcesses();
Expand Down Expand Up @@ -478,9 +476,7 @@ private void compile_r_swaplink() throws CompileException {

buildRHSMem(rs.rightMem); // 右辺にある膜の変数番号確定
/* 右辺の$pが配置された直後。このタイミングでなければならない筈 */
if (!rs.rightMem.processContexts.isEmpty()) {
body.add(new Instruction(Instruction.REMOVETEMPORARYPROXIES, toplevelmemid));
}
body.add(new Instruction(Instruction.REMOVETEMPORARYPROXIES, toplevelmemid));
copyRules(rs.rightMem);
loadRulesets(rs.rightMem);
buildRHSTypedProcesses();
Expand Down
Loading