mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 06:28:39 +00:00
- Updated tools/post_reboot.sh to check kernel oops taint bit and stuck driver tasks instead of <86400s uptime - Level 7 hardware regression passed on 0000:b3:00.0 (module 37e6fa430835eee2b426019db3ad70eeb7a9e9070c09c84bd9b973cf56cbe529, 107 inventory words, 0 static mismatches, CUDA baseline verified before and after) - Updated .gitignore to exclude build archives (*.a, *.rlib), __pycache__, and raw trace dumps
579 lines
18 KiB
C
579 lines
18 KiB
C
/* Literal inferred original021082/087/096/084/089 with register-proven
|
|
* explicit RDI args; ABI adapters for base pointer/ignored noop arguments.
|
|
* Synthetic template/objects/lists, no hardware execution.
|
|
* Original580.178.04 RM SHA2565269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b. */
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
typedef uint32_t uint,undefined4;typedef uint64_t ulong,undefined8;
|
|
typedef uint16_t undefined2;typedef uint8_t byte,undefined1;typedef void code(long);
|
|
static undefined8 *_DAT_00000000;static undefined2 uRam0000000000000074;
|
|
static uint current_kind,assert_calls;
|
|
static int _DAT_00000050;
|
|
static void _nv020158rm(){if(current_kind!=11)abort();assert_calls++;}
|
|
static void _nv020586rm(void){abort();} static void _nv020592rm(void){abort();} static void _nv021059rm(void){abort();}
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 06349430 name: _nv021082rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
|
|
|
|
void _nv021082rm(undefined8 *param_1)
|
|
|
|
{
|
|
undefined8 *puVar1;
|
|
|
|
if (param_1 == (undefined8 *)0x0) {
|
|
_nv020158rm(0);
|
|
puVar1 = _DAT_00000000;
|
|
}
|
|
else {
|
|
puVar1 = (undefined8 *)*param_1;
|
|
}
|
|
if (puVar1 == (undefined8 *)0x0) {
|
|
_nv020158rm(0);
|
|
puVar1 = (undefined8 *)*param_1;
|
|
}
|
|
*(undefined1 *)((long)param_1 + 0x5c) = 0;
|
|
param_1[10] = 0xffffffff00000000;
|
|
*(undefined4 *)(param_1 + 0xb) = 0xffff02;
|
|
*param_1 = *puVar1;
|
|
param_1[1] = puVar1[1];
|
|
param_1[2] = puVar1[2];
|
|
param_1[3] = puVar1[3];
|
|
param_1[4] = puVar1[4];
|
|
param_1[5] = puVar1[5];
|
|
param_1[6] = puVar1[6];
|
|
param_1[7] = puVar1[7];
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 06349580 name: _nv021089rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
void _nv021089rm(long ignored)
|
|
|
|
{
|
|
(void)ignored;
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 0634b560 name: _nv021087rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
/* WARNING: Function: __x86_indirect_thunk_rax replaced with injection: x86_indirect_thunk_rax */
|
|
|
|
void _nv021087rm(long param_1)
|
|
|
|
{
|
|
undefined8 uVar1;
|
|
long lVar2;
|
|
code *pcVar3;
|
|
long lVar4;
|
|
|
|
uVar1 = *(undefined8 *)(param_1 + 8);
|
|
_nv021082rm((undefined8*)param_1);
|
|
*(code **)(param_1 + 8) = (code*)_nv021089rm;
|
|
lVar4 = (ulong)(byte)(*(char *)(param_1 + 0x98) - 1) << 3;
|
|
if (*(char *)(param_1 + 0x98) != '\0') {
|
|
do {
|
|
lVar2 = *(long *)(*(long *)(param_1 + 0x90) + lVar4);
|
|
if (lVar2 != 0) {
|
|
pcVar3 = *(code **)(lVar2 + 8);
|
|
if (pcVar3 == (code *)0x0) {
|
|
_nv020158rm(0);
|
|
pcVar3 = *(code **)(*(long *)(*(long *)(param_1 + 0x90) + lVar4) + 8);
|
|
}
|
|
(*pcVar3)(lVar2);
|
|
}
|
|
lVar4 = lVar4 + -8;
|
|
} while (lVar4 != -8);
|
|
}
|
|
*(undefined8 *)(param_1 + 8) = uVar1;
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 06354850 name: _nv021096rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
/* WARNING: Function: __x86_indirect_thunk_rax replaced with injection: x86_indirect_thunk_rax */
|
|
|
|
void _nv021096rm(long param_1)
|
|
|
|
{
|
|
undefined8 uVar1;
|
|
code *pcVar2;
|
|
|
|
uVar1 = *(undefined8 *)(param_1 + 8);
|
|
if (*(long *)(param_1 + 0x60) == 0) {
|
|
_nv020158rm(0);
|
|
}
|
|
_nv021082rm((undefined8*)param_1);
|
|
*(code **)(param_1 + 8) = (code*)_nv021089rm;
|
|
if (*(long *)(param_1 + 0x60) == 0) {
|
|
_nv020158rm();
|
|
pcVar2 = *(code **)(*(long *)(param_1 + 0x60) + 8);
|
|
}
|
|
else {
|
|
pcVar2 = *(code **)(*(long *)(param_1 + 0x60) + 8);
|
|
}
|
|
if (pcVar2 == (code *)0x0) {
|
|
_nv020158rm(0);
|
|
(**(code **)(*(long *)(param_1 + 0x60) + 8))(*(long*)(param_1+0x60));
|
|
*(undefined8 *)(param_1 + 8) = uVar1;
|
|
return;
|
|
}
|
|
(*pcVar2)(*(long*)(param_1+0x60));
|
|
*(undefined8 *)(param_1 + 8) = uVar1;
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 06349860 name: _nv021084rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
void _nv021084rm(long param_1)
|
|
|
|
{
|
|
if (param_1 == 0) {
|
|
_nv020158rm(0);
|
|
_nv021096rm(0);
|
|
uRam0000000000000074 = 0;
|
|
return;
|
|
}
|
|
_nv021096rm(param_1);
|
|
*(undefined2 *)(param_1 + 0x74) = 0;
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 0634daf0 name: _nv021090rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
void _nv021090rm(long param_1)
|
|
|
|
{
|
|
if (param_1 == 0) {
|
|
_nv020158rm(0);
|
|
}
|
|
*(undefined1 *)(param_1 + 0x80) = 0;
|
|
_nv021096rm(param_1);
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 06350530 name: _nv021095rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
void _nv021095rm(long param_1)
|
|
|
|
{
|
|
if (param_1 == 0) {
|
|
_nv020158rm(0);
|
|
}
|
|
*(undefined4 *)(param_1 + 0x90) = 0;
|
|
*(undefined2 *)(param_1 + 0x95) = 0;
|
|
*(undefined8 *)(param_1 + 0x88) = 0;
|
|
_nv021096rm(param_1);
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 0636a6a0 name: _nv021080rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
void _nv021080rm(long param_1)
|
|
|
|
{
|
|
if (param_1 == 0) {
|
|
_nv020158rm(0);
|
|
}
|
|
*(undefined2 *)(param_1 + 0xbc) = 0;
|
|
_nv021095rm(param_1);
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 0636d9b0 name: _nv021094rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
void _nv021094rm(long param_1)
|
|
|
|
{
|
|
if (param_1 == 0) {
|
|
_nv020158rm(0);
|
|
}
|
|
*(undefined2 *)(param_1 + 0xa8) = 0;
|
|
_nv021095rm(param_1);
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 0636f070 name: _nv021085rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
void _nv021085rm(long param_1)
|
|
|
|
{
|
|
if (param_1 == 0) {
|
|
_nv020158rm(0);
|
|
}
|
|
*(undefined8 *)(param_1 + 0x68) = 0;
|
|
_nv021096rm(param_1);
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 063631d0 name: _nv021088rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
void _nv021088rm(long param_1)
|
|
|
|
{
|
|
if (param_1 == 0) {
|
|
_nv020158rm(0);
|
|
}
|
|
*(undefined4 *)(param_1 + 0x10c) = 0;
|
|
*(undefined2 *)(param_1 + 0x110) = 0;
|
|
*(undefined4 *)(param_1 + 0xd4) = 0;
|
|
*(undefined8 *)(param_1 + 0xe0) = 0;
|
|
_nv021095rm(param_1);
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 0636a5b0 name: _nv021079rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
void _nv021079rm(long param_1)
|
|
|
|
{
|
|
if (param_1 == 0) {
|
|
_nv020158rm(0);
|
|
_nv020158rm(0);
|
|
}
|
|
*(undefined4 *)(param_1 + 0x50) = 0;
|
|
_nv021082rm((undefined8*)param_1);
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 063492f0 name: _nv021081rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
|
|
|
|
void _nv021081rm(long param_1)
|
|
|
|
{
|
|
int iVar1;
|
|
|
|
if (param_1 == 0) {
|
|
_nv020158rm(0);
|
|
iVar1 = _DAT_00000050;
|
|
}
|
|
else {
|
|
iVar1 = *(int *)(param_1 + 0x50);
|
|
}
|
|
if (iVar1 == 0) {
|
|
_nv020158rm(0);
|
|
*(undefined1 *)(param_1 + 0x5c) = 0;
|
|
return;
|
|
}
|
|
*(undefined1 *)(param_1 + 0x5c) = 0;
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 0636cc60 name: _nv021083rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
void _nv021083rm(long param_1)
|
|
|
|
{
|
|
*(undefined1 *)(*(long *)(param_1 + 0x68) + 0xc) = 1;
|
|
*(undefined1 *)(*(long *)(param_1 + 0x70) + 0xc) = 1;
|
|
_nv021096rm(param_1);
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 06362570 name: _nv021086rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
/* WARNING: Function: __x86_indirect_thunk_rax replaced with injection: x86_indirect_thunk_rax */
|
|
|
|
void _nv021086rm(long param_1)
|
|
|
|
{
|
|
undefined8 uVar1;
|
|
long lVar2;
|
|
code *pcVar3;
|
|
byte bVar4;
|
|
|
|
bVar4 = 0;
|
|
uVar1 = *(undefined8 *)(param_1 + 8);
|
|
_nv021096rm(param_1);
|
|
*(code **)(param_1 + 8) = _nv021089rm;
|
|
if (*(char *)(param_1 + 0x70) != '\0') {
|
|
do {
|
|
lVar2 = *(long *)(*(long *)(param_1 + 0x68) + (ulong)bVar4 * 8);
|
|
if (lVar2 != 0) {
|
|
pcVar3 = *(code **)(lVar2 + 8);
|
|
if (pcVar3 == (code *)0x0) {
|
|
_nv020158rm(0);
|
|
pcVar3 = *(code **)(*(long *)(*(long *)(param_1 + 0x68) + (ulong)bVar4 * 8) + 8);
|
|
}
|
|
(*pcVar3)(lVar2);
|
|
}
|
|
bVar4 = bVar4 + 1;
|
|
} while (bVar4 < *(byte *)(param_1 + 0x70));
|
|
}
|
|
*(undefined8 *)(param_1 + 8) = uVar1;
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 0636d080 name: _nv021091rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
|
|
|
|
void _nv021091rm(undefined8 *param_1)
|
|
|
|
{
|
|
undefined8 *puVar1;
|
|
|
|
if (param_1 == (undefined8 *)0x0) {
|
|
_nv020158rm(0);
|
|
puVar1 = _DAT_00000000;
|
|
}
|
|
else {
|
|
puVar1 = (undefined8 *)*param_1;
|
|
}
|
|
if (puVar1 == (undefined8 *)0x0) {
|
|
_nv020158rm(0);
|
|
puVar1 = (undefined8 *)*param_1;
|
|
}
|
|
*(undefined1 *)((long)param_1 + 0x5c) = 0;
|
|
*param_1 = *puVar1;
|
|
param_1[1] = puVar1[1];
|
|
param_1[2] = puVar1[2];
|
|
param_1[3] = puVar1[3];
|
|
param_1[4] = puVar1[4];
|
|
param_1[5] = puVar1[5];
|
|
param_1[6] = puVar1[6];
|
|
param_1[7] = puVar1[7];
|
|
if (((*(int *)(param_1 + 10) == 0) || (param_1[8] != 0)) ||
|
|
((*(byte *)((long)param_1 + 0x54) & 0xf) == 0)) {
|
|
return;
|
|
}
|
|
param_1[2] = (undefined8)_nv020586rm;
|
|
param_1[3] = (undefined8)_nv020592rm;
|
|
param_1[4] = (undefined8)_nv021059rm;
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 0634f860 name: _nv021092rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
void _nv021092rm(long param_1)
|
|
|
|
{
|
|
*(undefined1 *)(*(long *)(param_1 + 0x68) + 0xc) = 1;
|
|
_nv021096rm(param_1);
|
|
return;
|
|
}
|
|
|
|
|
|
/* Inferred Ghidra 12.2 pseudocode; not original source.
|
|
* input_sha256: 5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b
|
|
* entry: 0634fc30 name: _nv021093rm
|
|
* per_function_timeout_seconds: 60
|
|
*/
|
|
|
|
|
|
/* WARNING: Function: __x86_indirect_thunk_rax replaced with injection: x86_indirect_thunk_rax */
|
|
|
|
void _nv021093rm(long param_1)
|
|
|
|
{
|
|
undefined8 uVar1;
|
|
long lVar2;
|
|
code *pcVar3;
|
|
long lVar4;
|
|
|
|
uVar1 = *(undefined8 *)(param_1 + 8);
|
|
_nv021082rm((undefined8*)param_1);
|
|
*(code **)(param_1 + 8) = _nv021089rm;
|
|
lVar4 = (ulong)(byte)(*(char *)(param_1 + 0x78) - 1) << 3;
|
|
if (*(char *)(param_1 + 0x78) != '\0') {
|
|
do {
|
|
lVar2 = *(long *)(*(long *)(param_1 + 0x70) + lVar4);
|
|
if (lVar2 != 0) {
|
|
pcVar3 = *(code **)(lVar2 + 8);
|
|
if (pcVar3 == (code *)0x0) {
|
|
_nv020158rm(0);
|
|
pcVar3 = *(code **)(*(long *)(*(long *)(param_1 + 0x70) + lVar4) + 8);
|
|
}
|
|
(*pcVar3)(lVar2);
|
|
}
|
|
lVar4 = lVar4 + -8;
|
|
} while (lVar4 != -8);
|
|
}
|
|
*(undefined8 *)(param_1 + 8) = uVar1;
|
|
return;
|
|
}
|
|
|
|
|
|
static _Alignas(8) byte parent[0x120],children[8][16];
|
|
static undefined8 templ[8],list_a[8],list_b[8];
|
|
static uint64_t hash=14695981039346656037ULL;
|
|
static uint calls,mutation;
|
|
static _Alignas(8) byte cache_records[2][16];
|
|
static void mix(uint v){for(uint i=0;i<4;i++){hash^=(v>>(8*i))&255;hash*=1099511628211ULL;}}
|
|
static void child_callback(long object){
|
|
mix(*(uint*)object);
|
|
if(mutation){
|
|
if(calls==0 && current_kind<4){*(long*)(parent+0x90)=(long)list_b;parent[0x98]=0;}
|
|
else if(calls==0 && current_kind>=4 && current_kind<11){
|
|
parent[0x80]=0x71;*(ulong*)(parent+0x88)=0xfedcba9876543210ULL;*(uint*)(parent+0x90)=0x89876543;parent[0x94]=0x59;*(undefined2*)(parent+0x95)=0x1234;
|
|
if(current_kind>=6){*(ulong*)(parent+0x68)=0x1111222233334444ULL;*(undefined2*)(parent+0xa8)=0x4321;*(undefined2*)(parent+0xbc)=0x8765;*(uint*)(parent+0x10c)=0x12344321;*(undefined2*)(parent+0x110)=0xabcd;*(uint*)(parent+0xd4)=0x65433210;*(ulong*)(parent+0xe0)=0x5555666677778888ULL;}
|
|
} else if(calls==0 && (current_kind==12||current_kind==15)){*(uint*)(cache_records[0]+12)=0x55ccaa77;*(uint*)(cache_records[1]+12)=0x9988aa66;}
|
|
else if(current_kind==13){
|
|
if(calls==0){*(long*)(parent+0x68)=(long)list_b;parent[0x70]=(parent[0x70]+2)%8;}
|
|
else if(calls==1){*(long*)(parent+0x68)=(long)list_a;if(parent[0x70])parent[0x70]--;}
|
|
} else if(current_kind==16 && calls==0){*(long*)(parent+0x70)=(long)list_b;parent[0x78]=0;}
|
|
}
|
|
// Reenter parent through live+8. It must be the temporary return-only method.
|
|
code *p=*(code**)(parent+8);if(p!=(code*)_nv021089rm)abort();p((long)parent);
|
|
calls++;
|
|
}
|
|
static void base_entry(long object){_nv021082rm((undefined8*)object);}
|
|
static void conditional_entry(long object){_nv021091rm((undefined8*)object);}
|
|
int main(void){uint cases=0;code *entry[]={ base_entry,_nv021087rm,_nv021096rm,_nv021084rm,_nv021090rm,_nv021095rm,_nv021080rm,_nv021094rm,_nv021085rm,_nv021088rm,_nv021079rm,_nv021081rm,_nv021083rm,_nv021086rm,conditional_entry,_nv021092rm,_nv021093rm };
|
|
for(uint kind=0;kind<17;kind++)for(uint count=0;count<8;count++)for(uint mode=0;mode<2;mode++)for(uint seed=0;seed<32;seed++){
|
|
memset(parent,0,sizeof(parent));memset(children,0,sizeof(children));memset(templ,0,sizeof(templ));
|
|
calls=0;assert_calls=0;mutation=mode;current_kind=kind;templ[0]=(ulong)templ;templ[1]=(ulong)_nv021089rm;
|
|
for(uint i=2;i<8;i++)templ[i]=(ulong)(0x200+i);
|
|
*(ulong*)parent=(ulong)templ;*(code**)(parent+8)=entry[kind];
|
|
for(uint i=2;i<8;i++)*(ulong*)(parent+i*8)=0x300+i;
|
|
*(ulong*)(parent+0x50)=0x123456789abcdef0ULL^seed;*(uint*)(parent+0x58)=0xaabbccdd^seed;parent[0x5c]=0xff;
|
|
*(undefined2*)(parent+0x74)=0xbeef^seed;
|
|
for(uint i=0;i<8;i++){
|
|
*(uint*)children[i]=16+i;*(code**)(children[i]+8)=child_callback;
|
|
list_a[i]=(seed+i)%5==0?0:(ulong)children[i];
|
|
if((seed+i)%7==0)list_a[i]=(ulong)parent;
|
|
list_b[i]=(seed+i)%3==0?0:(ulong)children[7-i];
|
|
if((seed+i)%7==0)list_b[i]=(ulong)parent;
|
|
}
|
|
*(long*)(parent+0x60)=seed%4==0?(long)parent:(long)children[seed%8];
|
|
*(long*)(parent+0x90)=(long)list_a;parent[0x98]=count;
|
|
parent[0x80]=0xc0^seed;
|
|
if(kind>=4){*(ulong*)(parent+0x88)=0x1234567890abcdefULL^seed;*(uint*)(parent+0x90)=0x12345678^seed;parent[0x94]=0x81^seed;*(undefined2*)(parent+0x95)=0xbeef^seed;}
|
|
*(ulong*)(parent+0x68)=0x1020304050607080ULL^seed;*(undefined2*)(parent+0xa8)=0x1234^seed;*(undefined2*)(parent+0xbc)=0x5678^seed;
|
|
*(uint*)(parent+0x10c)=0x12345678^seed;*(undefined2*)(parent+0x110)=0x9abc^seed;*(uint*)(parent+0xd4)=0x89abcdef^seed;*(ulong*)(parent+0xe0)=0xfedcba9876543210ULL^seed;
|
|
for(uint i=0;i<2;i++){
|
|
*(uint*)(cache_records[i])=(seed+i)&1?0:0x12345678;*(uint*)(cache_records[i]+4)=0x23456789+i;
|
|
*(uint*)(cache_records[i]+8)=0x87654321^i;*(uint*)(cache_records[i]+12)=0x87654320^(seed<<8)^i;
|
|
}
|
|
*(ulong*)(parent+0x40)=seed&2?0:0x3344556677889900ULL;
|
|
if(kind==11||kind==14)*(ulong*)(parent+0x50)=((0xaabbcc00ULL|(seed&4?0:7))<<32)|(seed&1?0:0x89abcdef);
|
|
if(kind==12||kind==15){*(long*)(parent+0x68)=(long)cache_records[0];*(long*)(parent+0x70)=(long)cache_records[seed&1?0:1];}
|
|
if(kind==13){*(long*)(parent+0x68)=(long)list_a;parent[0x70]=count;}
|
|
if(kind==16){*(long*)(parent+0x70)=(long)list_a;parent[0x78]=count;}
|
|
entry[kind]((long)parent);
|
|
mix(calls);mix(*(long*)parent==(long)templ?1:0);
|
|
code *m=*(code**)(parent+8);uint token=m==(code*)_nv021089rm?1:0;for(uint i=0;i<17;i++)if(m==entry[i])token=i+2;mix(token);
|
|
for(uint i=2;i<8;i++){ulong v=*(ulong*)(parent+i*8);if(v==(ulong)_nv020586rm)v=0x401;else if(v==(ulong)_nv020592rm)v=0x402;else if(v==(ulong)_nv021059rm)v=0x403;mix(v);}
|
|
ulong w=*(ulong*)(parent+0x50);mix(w);mix(w>>32);mix(*(uint*)(parent+0x58));mix(parent[0x5c]);mix(kind==12||kind==15||kind==16?0:*(undefined2*)(parent+0x74));
|
|
mix(parent[0x98]);mix(kind<4?(*(long*)(parent+0x90)==(long)list_a?1:2):1);
|
|
if(kind>=4){mix(parent[0x80]);ulong v=*(ulong*)(parent+0x88);mix(v);mix(v>>32);mix(*(uint*)(parent+0x90));mix(parent[0x94]);mix(*(undefined2*)(parent+0x95));}
|
|
if(kind>=6 && kind<11){ulong v=*(ulong*)(parent+0x68);mix(v);mix(v>>32);mix(*(undefined2*)(parent+0xa8));mix(*(undefined2*)(parent+0xbc));mix(*(uint*)(parent+0x10c));mix(*(undefined2*)(parent+0x110));mix(*(uint*)(parent+0xd4));v=*(ulong*)(parent+0xe0);mix(v);mix(v>>32);}
|
|
if(kind>=11){
|
|
mix(assert_calls);ulong v=*(ulong*)(parent+0x40);mix(v);mix(v>>32);
|
|
for(uint i=0;i<2;i++)for(uint j=0;j<4;j++)mix(*(uint*)(cache_records[i]+j*4));
|
|
if(kind==12||kind==15){mix(1);mix(seed&1?1:2);}else{mix(0);mix(0);}
|
|
if(kind==13){mix(parent[0x70]);mix(*(long*)(parent+0x68)==(long)list_a?1:2);}
|
|
else if(kind==16){mix(parent[0x78]);mix(*(long*)(parent+0x70)==(long)list_a?1:2);}
|
|
else{mix(0);mix(0);}
|
|
}
|
|
cases++;
|
|
}
|
|
printf("%u %016lx\n",cases,(unsigned long)hash);return 0;
|
|
}
|