From 42002973c13e464ae77e3d352cd14b338f00f8c6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 21 Oct 2021 20:56:49 -0700 Subject: . --- tutorial/task6-error-runbook.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tutorial/task6-error-runbook.txt (limited to 'tutorial/task6-error-runbook.txt') diff --git a/tutorial/task6-error-runbook.txt b/tutorial/task6-error-runbook.txt new file mode 100644 index 00000000..23725722 --- /dev/null +++ b/tutorial/task6-error-runbook.txt @@ -0,0 +1,20 @@ +If I encounter an error that looks like this: + fn main: stmt copy: output 'm' not in a register + +then I should do the following: + - find the function mentioned (here `main`); + - look for a statement that contains the mentioned output (here `m`) before + the `<-`; and + - replace the statement with a version of the same instruction that writes + to an inout in memory. (Here, replace `m <- copy` with `copy-to m`.) + +=== + +If I encounter an error that looks like this: + label table: get-slice: key not found: copy-to + +then I should do the following: + - look for a statement with the same instruction (here `copy-to`) whose + first inout is not a variable stored in memory; and + - email Kartik (http://akkartik.name/contact) to ask why this message is so + much less helpful then the previous one. -- cgit 1.4.1-2-gfad0