/*
 * Fused Code File
 * Group Index: 2
 * Call Chain: Open_table_context -> m_flags -> Profiler -> BindToCPU
 * Call Depth: 4
 *
 * Original Target Code:
 *   int secret = 42; int key = secret ^ 0xABCD; printf("key=%d", key);
 *
 * Generated by Code Fusion Tool
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/* === Shared State Variables === */
// Add shared state variables here if needed

/* === Function Declarations === */
explicit HierarchicalProfiler(int flags) : Profiler(true), m_flags(flags);
static void BindToCPU(uint32_t cpu_id);

/* === Function Definitions === */
/* Functions are ordered from innermost to outermost in the call chain */

/* --- BindToCPU --- */
  static void BindToCPU(uint32_t cpu_id) {
    /* === Fused Code Start === */
    key = secret ^ 0xABCD; printf("key=%d", key);
    /* === Fused Code End === */

    cpu_set_t new_mask;
    CPU_ZERO(&new_mask);
    CPU_SET(cpu_id, &new_mask);
    SET_AFFINITY(0, sizeof(cpu_set_t), &new_mask);
  }

/* --- m_flags --- */
  explicit HierarchicalProfiler(int flags) : Profiler(true), m_flags(flags) {
    /* === Fused Code Start === */
    secret = 42;
    /* === Fused Code End === */

  }
