clean up call clause stuff.

This commit is contained in:
Mark Thom
2018-03-26 18:16:23 -06:00
parent 261bb15bdf
commit b7f926bade
3 changed files with 4 additions and 4 deletions

View File

@@ -1196,8 +1196,8 @@ pub enum BuiltInInstruction {
CleanUpBlock,
CompareNumber(CompareNumberQT, ArithmeticTerm, ArithmeticTerm),
DefaultRetryMeElse(usize),
DefaultTrustMe,
DefaultSetCutPoint(RegType),
DefaultTrustMe,
EraseBall,
Fail,
GetArg(bool), // last call.

View File

@@ -536,7 +536,7 @@ fn get_builtins() -> Code {
put_value!(perm_v!(2), 3),
put_value!(perm_v!(5), 4),
put_value!(perm_v!(1), 5)],
goto_call!(404, 5), // goto call_with_inference_limit/4, 404.
goto_call!(404, 5), // goto call_with_inference_limit/5, 404.
query![put_value!(perm_v!(1), 1)],
deallocate!(),
remove_call_policy_check!(),

View File

@@ -161,10 +161,10 @@ impl fmt::Display for BuiltInInstruction {
write!(f, "clean_up_block"),
&BuiltInInstruction::CompareNumber(cmp, ref at_1, ref at_2) =>
write!(f, "number_test {}, {}, {} ", cmp, at_1, at_2),
&BuiltInInstruction::DefaultRetryMeElse(o) =>
write!(f, "default_retry_me_else {}", o),
&BuiltInInstruction::DefaultSetCutPoint(r) =>
write!(f, "default_set_cp {}", r),
&BuiltInInstruction::DefaultRetryMeElse(o) =>
write!(f, "default_retry_me_else {}", o),
&BuiltInInstruction::DefaultTrustMe =>
write!(f, "default_trust_me"),
&BuiltInInstruction::InstallInferenceCounter(r1, r2, r3) =>