fix compile_seq, variable printing on standalone inlines.
This commit is contained in:
@@ -168,25 +168,9 @@ impl fmt::Display for ControlInstruction {
|
||||
&ControlInstruction::IsCall(r, ref at) =>
|
||||
write!(f, "is_call {}, {}", r, at),
|
||||
&ControlInstruction::IsExecute(r, ref at) =>
|
||||
write!(f, "is_execute {}, {}", r, at),
|
||||
&ControlInstruction::IsAtomic(r) =>
|
||||
write!(f, "is_atomic {}", r),
|
||||
&ControlInstruction::IsCompound(r) =>
|
||||
write!(f, "is_compound {}", r),
|
||||
&ControlInstruction::IsFloat(r) =>
|
||||
write!(f, "is_float {}", r),
|
||||
&ControlInstruction::IsRational(r) =>
|
||||
write!(f, "is_rational {}", r),
|
||||
&ControlInstruction::IsNonVar(r) =>
|
||||
write!(f, "is_non_var {}", r),
|
||||
&ControlInstruction::IsString(r) =>
|
||||
write!(f, "is_string {}", r),
|
||||
&ControlInstruction::IsInteger(r) =>
|
||||
write!(f, "is_integer {}", r),
|
||||
write!(f, "is_execute {}, {}", r, at),
|
||||
&ControlInstruction::DynamicIs =>
|
||||
write!(f, "call_is"),
|
||||
&ControlInstruction::IsVar(r) =>
|
||||
write!(f, "is_var {}", r),
|
||||
write!(f, "call_is"),
|
||||
&ControlInstruction::JmpByCall(arity, offset) =>
|
||||
write!(f, "jmp_by_call {}/{}", offset, arity),
|
||||
&ControlInstruction::JmpByExecute(arity, offset) =>
|
||||
@@ -200,11 +184,7 @@ impl fmt::Display for ControlInstruction {
|
||||
&ControlInstruction::ThrowCall =>
|
||||
write!(f, "call_throw"),
|
||||
&ControlInstruction::ThrowExecute =>
|
||||
write!(f, "execute_throw"),
|
||||
&ControlInstruction::CompareNumber(cmp, ref at_1, ref at_2) =>
|
||||
write!(f, "number_test {}, {}, {} ", cmp, at_1, at_2),
|
||||
&ControlInstruction::DynamicCompareNumber(cmp) =>
|
||||
write!(f, "dynamic_number_test {}", cmp),
|
||||
write!(f, "execute_throw"),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -226,7 +206,7 @@ impl fmt::Display for BuiltInInstruction {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
match self {
|
||||
&BuiltInInstruction::CleanUpBlock =>
|
||||
write!(f, "clean_up_block"),
|
||||
write!(f, "clean_up_block"),
|
||||
&BuiltInInstruction::EraseBall =>
|
||||
write!(f, "erase_ball"),
|
||||
&BuiltInInstruction::Fail =>
|
||||
@@ -246,7 +226,7 @@ impl fmt::Display for BuiltInInstruction {
|
||||
&BuiltInInstruction::InstallNewBlock =>
|
||||
write!(f, "install_new_block"),
|
||||
&BuiltInInstruction::InternalCallN =>
|
||||
write!(f, "internal_call_N"),
|
||||
write!(f, "internal_call_N"),
|
||||
&BuiltInInstruction::ResetBlock =>
|
||||
write!(f, "reset_block"),
|
||||
&BuiltInInstruction::RestoreCutPolicy =>
|
||||
@@ -261,6 +241,26 @@ impl fmt::Display for BuiltInInstruction {
|
||||
write!(f, "unwind_stack"),
|
||||
&BuiltInInstruction::Unify =>
|
||||
write!(f, "unify"),
|
||||
&BuiltInInstruction::IsAtomic(r) =>
|
||||
write!(f, "is_atomic {}", r),
|
||||
&BuiltInInstruction::IsCompound(r) =>
|
||||
write!(f, "is_compound {}", r),
|
||||
&BuiltInInstruction::IsFloat(r) =>
|
||||
write!(f, "is_float {}", r),
|
||||
&BuiltInInstruction::IsRational(r) =>
|
||||
write!(f, "is_rational {}", r),
|
||||
&BuiltInInstruction::IsNonVar(r) =>
|
||||
write!(f, "is_non_var {}", r),
|
||||
&BuiltInInstruction::IsString(r) =>
|
||||
write!(f, "is_string {}", r),
|
||||
&BuiltInInstruction::IsInteger(r) =>
|
||||
write!(f, "is_integer {}", r),
|
||||
&BuiltInInstruction::IsVar(r) =>
|
||||
write!(f, "is_var {}", r),
|
||||
&BuiltInInstruction::CompareNumber(cmp, ref at_1, ref at_2) =>
|
||||
write!(f, "number_test {}, {}, {} ", cmp, at_1, at_2),
|
||||
&BuiltInInstruction::DynamicCompareNumber(cmp) =>
|
||||
write!(f, "dynamic_number_test {}", cmp),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user