Description: Avoid spurious GCC warning
 GCC spuriously warns about the use of an uninitialised variable. Re-order the
 code to make GCC understand the initialisation flow.
 .
 cbmc (5.76.1-1) unstable; urgency=low
 .
   * New upstream release
   * Includes bugfix for unintentional copy (Closes: #984008)
   * Updated Standards version to 4.6.0 (no changes required)
Author: Michael Tautschnig <mt@debian.org>
Bug-Debian: https://bugs.debian.org/984008

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2023-02-10

--- cbmc-5.76.1.orig/src/goto-instrument/unwindset.cpp
+++ cbmc-5.76.1/src/goto-instrument/unwindset.cpp
@@ -147,7 +147,9 @@ void unwindsett::parse_unwindset_one_loo
             nr = instruction.loop_number;
           }
         }
-        if(!nr.has_value())
+        if(nr.has_value())
+          id = function_id + "." + std::to_string(*nr);
+        else
         {
           messaget log{message_handler};
           log.warning() << "loop identifier " << id
@@ -155,8 +157,6 @@ void unwindsett::parse_unwindset_one_loo
                         << messaget::eom;
           return;
         }
-        else
-          id = function_id + "." + std::to_string(*nr);
       }
     }
 
