From 7b0f1c9a090fb7e4c39afad5bdb09a2036b389a6 Mon Sep 17 00:00:00 2001
From: Dominic Symes <dominic.symes@arm.com>
Date: Thu, 20 Jul 2023 14:26:38 +0100
Subject: COND_IF/WHILE_LOOP: Add nesting level limit

Nesting of if/while is bounded by MAX_NESTING,
set accoring to the TOSA level.

Change-Id: If9435a143ffa6bd7ba2e46a68542459b3d723b76
Signed-off-by: Dominic Symes <dominic.symes@arm.com>
---
 chapters/introduction.adoc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'chapters/introduction.adoc')

diff --git a/chapters/introduction.adoc b/chapters/introduction.adoc
index 955f310..62a9b2c 100644
--- a/chapters/introduction.adoc
+++ b/chapters/introduction.adoc
@@ -163,7 +163,8 @@ In terms of psuedo-code, if *graph* is a TOSA graph consisting of Baseline Infer
 bool tosa_test_compliance(tosa_graph_t graph, tosa_list_t input_list, tosa_level_t level) {
     shape_list_t output_list_spec = tosa_allocate_list(tosa_output_shape(graph));
     shape_list_t output_list_test = tosa_allocate_list(tosa_output_shape(graph));
-    tosa_graph_result = tosa_valid    // result starts as valid
+    tosa_graph_result = tosa_valid;    // result starts as valid
+    tosa_nesting_depth = 0;            // if/while nesting level
     tosa_execute_graph(graph, input_list, output_list_spec, level);
     if (tosa_graph_result == tosa_unpredictable) {
         return true;    // No requirement to match an unpredictable result
-- 
cgit v1.2.1

