From c33f7b06f9c522f676bb3de1bb278d6e5f583acb Mon Sep 17 00:00:00 2001
From: Matt Wala <wala1@illinois.edu>
Date: Wed, 16 Nov 2016 12:06:34 -0600
Subject: [PATCH] Fix another doctest.

---
 doc/tutorial.rst | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/doc/tutorial.rst b/doc/tutorial.rst
index 951a21426..e9e06769c 100644
--- a/doc/tutorial.rst
+++ b/doc/tutorial.rst
@@ -561,12 +561,11 @@ relation to loop nesting. For example, it's perfectly possible to request
     >>> knl = lp.set_options(knl, "write_cl")
     >>> evt, (out,) = knl(queue, a=x_vec_dev)
     #define lid(N) ((int) get_local_id(N))
-    ...
-      for (int i_inner = 0; i_inner <= 15; ++i_inner)
-        if (-1 + -1 * i_inner + n >= 0)
-          for (int i_outer = 0; i_outer <= -1 + -1 * i_inner + ((15 + n + 15 * i_inner) / 16); ++i_outer)
-            a[16 * i_outer + i_inner] = 0.0f;
-    ...
+   ...
+     for (int i_inner = 0; i_inner <= (-17 + n >= 0 ? 15 : -1 + n); ++i_inner)
+       for (int i_outer = 0; i_outer <= -1 + -1 * i_inner + ((15 + n + 15 * i_inner) / 16); ++i_outer)
+         a[16 * i_outer + i_inner] = 0.0f;
+   ...
 
 Notice how loopy has automatically generated guard conditionals to make
 sure the bounds on the old iname are obeyed.
-- 
GitLab