#
# Automatically generated src.alt description file
#
# Alternate source "snprintf" for 507.cactuBSSN_r
# FOR USE WITH SPEC CPU2017 v1.1.0 ONLY!
#
# Generated by cloyce on 2026-03-10t19:21:34
#
# You can review the content of this src.alt using the utility 'dumpsrcalt',
# in the bin directory of your SPEC CPU2017 kit.  The utility is documented
# at https://www.spec.org/cpu2017/Docs/utility.html#dumpsrcalt
#
return {
         'name'     => 'snprintf',
         'forbench' => '507.cactuBSSN_r',
         'usewith'  => '1.001',
	 'filehashes' => {
			'PUGH/PughUtils.c' => 'b9517d998195f99324d20bd45b099f15f82e95ff73d462d3eba0d70b5857f821f5b16221482e25b3c408aee2e180a5fb166a5618d766708e3e8f72f89f39d409',

			'benchspec/CPU/507.cactuBSSN_r/src/src.alt/snprintf/README' => '3900d5867e7b88b2b95b6bec9db66dd62455d1d047fbe1588f506355dc6c959584f905f0a666fca46c505a994b244a517ee4d4cb0ce8751d9fa358fd3a9eb4b7',

		       },
	 'diffhashes' => {
			'PUGH/PughUtils.c' => 'e3d0f3d312bc4cc86a05211d308b3d0d0df4aec355c56a31ec717e20787484bbe06f66766acf5a6253827250f1674f796108596c8071f817e246f2fa40c6a81a',

		       },
	 'diffs'      => {
			'PUGH/PughUtils.c' => q{JGh1bmtzID0gWwogIHsKICAgICJiYXNlIiA9PiAxMjgsCiAgICAiY2xpbmVzIiA9PiAzLAogICAg
ImNvbnRleHQiID0+IFsKICAgICAgIiAgICBpZiAoaGF2ZWRpbXNbZGltXSkiLAogICAgICAiICAg
IHsiLAogICAgICAiICAgICAgQ0NUS19WSW5mbyhDQ1RLX1RIT1JOU1RSSU5HLCBcIiVkLWRpbWVu
c2lvbmFsIGdyaWQgZnVuY3Rpb25zXCIsZGltKzEpOyIsCiAgICAgICIgICAgICBzcHJpbnRmKG1l
c3MsXCIgIFNpemU6XCIpOyIsCiAgICAgICIgICAgICBmb3IgKGk9MDtpPGRpbSsxO2krKykiLAog
ICAgICAiICAgICAgeyIsCiAgICAgICIgICAgICAgIHNwcmludGYobWVzcyxcIiVzICVkXCIsbWVz
cyxwdWdoR0gtPkdGRXh0cmFzW2RpbV0tPm5zaXplW2ldKTsiLAogICAgICAiICAgICAgfSIsCiAg
ICAgICIgICAgICBDQ1RLX0lORk8obWVzcyk7IiwKICAgICAgIiNpZmRlZiBDQ1RLX01QSSIsCiAg
ICAgICIgICAgICBzcHJpbnRmKG1lc3MsXCIgIFByb2Nlc3NvciB0b3BvbG9neTpcIik7IgogICAg
XSwKICAgICJkaWZmcyIgPT4gWwogICAgICBbCiAgICAgICAgMywKICAgICAgICAiIiwKICAgICAg
ICAzCiAgICAgIF0sCiAgICAgIFsKICAgICAgICA0LAogICAgICAgICIgICAgICBjaGFyIG1zZ1sy
NTZdOyIsCiAgICAgICAgNAogICAgICBdLAogICAgICBbCiAgICAgICAgNSwKICAgICAgICAiICAg
ICAgc25wcmludGYobXNnLCBzaXplb2YobXNnKSwgXCIgIFNpemU6XCIpOyIsCiAgICAgICAgNQog
ICAgICBdLAogICAgICBbCiAgICAgICAgNiwKICAgICAgICAiICAgICAgZm9yIChpID0gMDsgaSA8
IGRpbSArIDE7IGkrKykgeyIsCiAgICAgICAgNgogICAgICBdLAogICAgICBbCiAgICAgICAgNywK
ICAgICAgICAiICAgICAgICAgIGNoYXIgYnVmWzMyXTsiCiAgICAgIF0sCiAgICAgIFsKICAgICAg
ICA4LAogICAgICAgICIgICAgICAgICAgc25wcmludGYoYnVmLCBzaXplb2YoYnVmKSwgXCIgJWRc
IiwgcHVnaEdILT5HRkV4dHJhc1tkaW1dLT5uc2l6ZVtpXSk7IgogICAgICBdLAogICAgICBbCiAg
ICAgICAgOSwKICAgICAgICAiICAgICAgICAgIHN0cm5jYXQobXNnLCBidWYsIHNpemVvZihtc2cp
IC0gc3RybGVuKG1zZykgLSAxKTsiCiAgICAgIF0sCiAgICAgIFsKICAgICAgICAxMSwKICAgICAg
ICAiICAgICAgc3ByaW50ZihtZXNzLCBcIiVzXCIsIG1zZyk7IgogICAgICBdCiAgICBdCiAgfQpd
OwoKcmV0dXJuICRodW5rczsK
},

		       },
        };
1;
__END__
# These are here because quoting Perl code with quotes is hard.
# The Base64 encoding above is not meant to obfuscate; here's the raw text:

	 'rawdiffs'   => {
			'PUGH/PughUtils.c' => q{
$hunks = [
  {
    "base" => 128,
    "clines" => 3,
    "context" => [
      "    if (havedims[dim])",
      "    {",
      "      CCTK_VInfo(CCTK_THORNSTRING, \"%d-dimensional grid functions\",dim+1);",
      "      sprintf(mess,\"  Size:\");",
      "      for (i=0;i<dim+1;i++)",
      "      {",
      "        sprintf(mess,\"%s %d\",mess,pughGH->GFExtras[dim]->nsize[i]);",
      "      }",
      "      CCTK_INFO(mess);",
      "#ifdef CCTK_MPI",
      "      sprintf(mess,\"  Processor topology:\");"
    ],
    "diffs" => [
      [
        3,
        "",
        3
      ],
      [
        4,
        "      char msg[256];",
        4
      ],
      [
        5,
        "      snprintf(msg, sizeof(msg), \"  Size:\");",
        5
      ],
      [
        6,
        "      for (i = 0; i < dim + 1; i++) {",
        6
      ],
      [
        7,
        "          char buf[32];"
      ],
      [
        8,
        "          snprintf(buf, sizeof(buf), \" %d\", pughGH->GFExtras[dim]->nsize[i]);"
      ],
      [
        9,
        "          strncat(msg, buf, sizeof(msg) - strlen(msg) - 1);"
      ],
      [
        11,
        "      sprintf(mess, \"%s\", msg);"
      ]
    ]
  }
];

return $hunks;

} },

		       },
