1
     	ˆ¾�þB gŸdi¹_wùÈƒh¹ÇÅÄ      	1
  ?   ˆl–äY>”êj"T%+�5p©‹Fÿ�þDó+6XÜà~8ÞhÏÉ643È_ˆI|¥�+V[(ÇÆ ƒ    #!/usr/bin/perl

use strict;
use warnings;

use lib qw<blib/arch blib/lib>;
use Variable::Magic qw<wizard cast dispell>;

my $wiz = wizard
 fetch  => sub { print STDERR "$_[0] FETCH KEY $_[2]\n" },
 store  => sub { print STDERR "$_[0] STORE KEY $_[2]\n" },
 'exists' => sub { print STDERR "$_[0] EXISTS KEY $_[2]\n" },
 'delete' => sub { print STDERR "$_[0] DELETE KEY $_[2]\n" };

my %h = (foo => 1, bar => 2);
cast %h, $wiz;

print STDERR "foo was $h{foo}\n";
$h{foo} = 3;
print STDERR "now foo is $h{foo}\n";

print STDERR "foo exists!\n" if exists $h{foo};

my $d = delete $h{foo};
print STDERR "foo deleted, got $d\n";

dispell %h, $wiz;
  5   ˆl–ß=¿J	Å4Ÿº‚ œP\.	õ1hß�þB gŸ~IŽ�ùËƒh¹ÊÈÇ      1
  6   ˆl–ß=¿J	Å4Ÿº‚ œP\n	õ1hß�þB gŸvGänGÛþÌƒh¹ËÉÈ      Normal
  7   ˆl–ß=¿J	Å4Ÿº‚ œP\n6ê˜´o‘äÇò 8àDøÙ¥#cþÍƒh¹ÌÊÉ      Normal
  C   ˆl–Ãa¾”d*h¥4 q–î6Ú˜´o’þFêÎøÛß‘ÐMìÕÿ?ÎÇÆÍ133_‡I|¥ŠèªÌË  …    ‹      u�;Â@Cû=…O°BüDMG�¸À2RØ�f†nO ÄåÓ³}ÐÀ°Ì«uÞàÄŽâÄ±=íÿ%¥s«ûÚwÚ�Žh	çåa/4ú�¤ï)æÐ2¿,òv7ZL“ý(ÓšjŸÊ@s­eW†hç9½‘Î
§     ?   ˆl–äY>” ”Ò~ê�nã@¸)‹Fÿ�þcÖl¤t£vY” þÐƒÍ½Ï_ˆI|¥�+ÎÍ *    /*
 * Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
 *                         University Research and Technology
 *                         Corporation.  All rights reserved.
 * Copyright (c) 2004-2011 The University of Tennessee and The University
 *                         of Tennessee Research Foundation.  All rights
 *                         reserved.
 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
 *                         University of Stuttgart.  All rights reserved.
 * Copyright (c) 2004-2005 The Regents of the University of California.
 *                         All rights reserved.
 * Copyright (c) 2006-2013 Los Alamos National Security, LLC.
 *                         All rights reserved.
 * Copyright (c) 2009-2012 Cisco Systems, Inc.  All rights reserved.
 * Copyright (c) 2011      Oak Ridge National Labs.  All rights reserved.
 * Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
 * Copyright (c) 2015      Mellanox Technologies, Inc.  All rights reserved.
 * Copyright (c) 2021      Nanook Consulting.  All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 *
 */

#define _GNU_SOURCE
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>

#include <pmi.h>

int main(int argc, char **argv)
{
    int rc, spawned;
    char *tmp;
    int nprocs, rank;
    bool flag;

    /* init us - note that the call to "init" includes the return of
     * any job-related info provided by the RM. This includes any
     * debugger flag instructing us to stop-in-init. If such a directive
     * is included, then the process will be stopped in this call until
     * the "debugger release" notification arrives */
    if (PMI_SUCCESS != (rc = PMI_Init(&spawned))) {
        fprintf(stderr, "Client: PMI_Init failed: %d\n", rc);
        exit(0);
    }
    fprintf(stderr, "Client: Running\n");

    /* check to see if we have been instructed to wait for a debugger
     * to attach to us. We won't get both a stop-in-init AND a
     * wait-for-notify directive, so we should never stop twice. This
     * directive is provided so that something like an MPI implementation
     * can do some initial setup in MPI_Init prior to pausing for the
     * debugger */
    if (PMI_SUCCESS != (rc = PMI_Get_size(&nprocs))) {
        fprintf(stderr, "PMI_Get_size failed: %d\n", rc);
        exit(1);
    }

    /* get our universe size */
    if (PMI_SUCCESS != (rc = PMI_Get_rank(&rank))) {
        fprintf(stderr, "PMI_Get_rank failed: %d\n", rc);
        exit(1);
    }

    /* finalize us */
    fprintf(stderr, "Client %d: Finalizing\n", rank);
    if (PMI_SUCCESS != (rc = PMI_Finalize())) {
        fprintf(stderr, "Client %d: PMI_Finalize f