From 22f28c141070cac126d812e1285f3ac223dd17dd Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Fri, 8 Jan 2021 03:21:01 -0500 Subject: [PATCH] fix(runner): fix ComputeArithmetic() for >? and ? and ?") { - l = min(A, B); - m = t; - // TODO should change the end - if (l === A) { - n = c; - } else { - n = z; - } - } else if (operator === "?") { + // A(t) ? B(t) = max(A(t), B(t)) + if (z === c) { + // A(t) and B(t) have the same slope. + l = (operator === "?" && A) || B; + } else { + // B(t) has a greater slope than A(t). + l = (operator === "?" && A) || B; + } + } + m = t; + n = (l === A && c) || z; } } this.tracer.Log(