Skip to content

Commit 399eebe

Browse files
committed
Change the cond instruction to branch instruction
1 parent 2bd211c commit 399eebe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/features/cseMachine/java/components/Control.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ export class Control extends Visible {
128128
return `res ${resInstr.name}`;
129129
case ECE.InstrType.DEREF:
130130
return 'deref';
131-
case ECE.InstrType.COND:
132-
return `cond`;
131+
case ECE.InstrType.BRANCH:
132+
return `branch`;
133133
case ECE.InstrType.SWITCH:
134134
return `switch`;
135135
default:
@@ -192,7 +192,7 @@ export class Control extends Visible {
192192
return `Resolve field ${resInstr.name} of most recently pushed value from stash`;
193193
case ECE.InstrType.DEREF:
194194
return 'Dereference most recently pushed value from stash';
195-
case ECE.InstrType.COND:
195+
case ECE.InstrType.BRANCH:
196196
return 'Evaluate condition and push either consequent or alternative to stash';
197197
case ECE.InstrType.SWITCH:
198198
const switchInstr = controlItem as ECE.SwitchInstr;

0 commit comments

Comments
 (0)