From bc881cf6907f2ed4fc807f4f9eb56a1824762103 Mon Sep 17 00:00:00 2001 From: Jatin Arora Date: Fri, 8 Nov 2024 16:33:51 -0500 Subject: [PATCH] tweaks --- Source/Core/Inline.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/Core/Inline.cs b/Source/Core/Inline.cs index 626e88ec2..f95e5df2a 100644 --- a/Source/Core/Inline.cs +++ b/Source/Core/Inline.cs @@ -29,8 +29,7 @@ private string getName (Implementation impl) { public int getDepth(Implementation impl) { var procName = getName(impl); - var c = -1; - if (procUnrollDepth.TryGetValue(procName, out c)) { + if (procUnrollDepth.TryGetValue(procName, out var c)) { return c; } return -1; @@ -305,12 +304,12 @@ protected int TryDefineCount(CallCmd callCmd, Implementation impl) return depth; } - int countCall (CallCmd cmd) { + int callInlineDepth (CallCmd cmd) { return QKeyValue.FindIntAttribute(cmd.Attributes, "inline", -1); } // first check the inline depth on the call command. - depth = countCall(callCmd); + depth = callInlineDepth(callCmd); if (depth < 0) { // if call cmd doesn't define the depth, then check the procedure. impl.CheckIntAttribute("inline", ref depth);