messages
listlengths
2
2
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n uint local_18;\n int local_14;\n int local_10;\n \n local_18 = 1;\n for (local_14 = 1; local_14 < 0xb; local_14 = local_14 + 1) {\n for (local_10 = 1; local_10 <= local_14; local_10 = local_10 + 1) {\n printf(\...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n uint uVar1;\n int iVar2;\n int iVar3;\n ulong uVar4;\n \n iVar2 = 1;\n uVar4 = 1;\n do {\n uVar1 = (uint)uVar4;\n iVar3 = 1 - uVar1;\n if (iVar2 < 1) {\n puts(\".\");\n }\n else {\n do {\n ...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n uint uVar1;\n ulong uVar2;\n int iVar3;\n uint uVar4;\n \n uVar4 = 1;\n iVar3 = 1;\n do {\n uVar1 = uVar4;\n do {\n uVar2 = (ulong)uVar1;\n uVar1 = uVar1 + 1;\n printf(\"%d \",uVar2);\n } whil...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n uint uVar1;\n ulong uVar2;\n int iVar3;\n uint uVar4;\n \n uVar4 = 1;\n iVar3 = 1;\n do {\n uVar1 = uVar4;\n do {\n uVar2 = (ulong)uVar1;\n uVar1 = uVar1 + 1;\n printf(\"%d \",uVar2);\n } whil...
[ { "role": "user", "content": "This is the pseudocode:\nint lagrangeSearch(long param_1,int param_2,int param_3)\n\n{\n int iVar1;\n int local_18;\n int local_14;\n \n local_18 = 0;\n local_14 = param_2 + -1;\n do {\n while( true ) {\n while( true ) {\n if (local_14 < local_18) {\n ...
[ { "role": "user", "content": "This is the pseudocode:\nint lagrangeSearch(long param_1,int param_2,int param_3)\n\n{\n int iVar1;\n int iVar2;\n int iVar3;\n \n param_2 = param_2 + -1;\n if (param_2 < 0) {\n return -1;\n }\n iVar3 = 0;\n do {\n iVar1 = *(int *)(param_1 + (long)iVar3 * 4);\n ...
[ { "role": "user", "content": "This is the pseudocode:\nint lagrangeSearch(long param_1,int param_2,int param_3)\n\n{\n int iVar1;\n int iVar2;\n int iVar3;\n \n param_2 = param_2 + -1;\n if (-1 < param_2) {\n iVar3 = 0;\n do {\n while( true ) {\n iVar1 = *(int *)(param_1 + (long)iVar...
[ { "role": "user", "content": "This is the pseudocode:\nint lagrangeSearch(long param_1,int param_2,int param_3)\n\n{\n int iVar1;\n int iVar2;\n int iVar3;\n \n param_2 = param_2 + -1;\n if (-1 < param_2) {\n iVar3 = 0;\n do {\n while( true ) {\n iVar1 = *(int *)(param_1 + (long)iVar...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 peek(void)\n\n{\n int iVar1;\n \n iVar1 = pop();\n push((double)iVar1);\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "double peek(){\n double d;\n push(d=pop());\n return d;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 peek(void)\n\n{\n int iVar1;\n \n iVar1 = pop();\n push((double)iVar1);\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "double peek(){\n double d;\n push(d=pop());\n return d;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 peek(void)\n\n{\n pop();\n push();\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "double peek(){\n double d;\n push(d=pop());\n return d;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 peek(void)\n\n{\n pop();\n push();\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "double peek(){\n double d;\n push(d=pop());\n return d;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined [16] CANIntRegister(undefined8 param_1,undefined param_2,undefined8 param_3)\n\n{\n int iVar1;\n \n iVar1 = CANIntNumberGet(param_1,param_2);\n IntRegister((long)iVar1,param_3);\n IntEnable((long)iVar1);\n return ZEXT816(0);\n}\nWhat is...
[ { "role": "user", "content": "This is the pseudocode:\nundefined [16] CANIntRegister(undefined8 param_1,undefined param_2,undefined8 param_3)\n\n{\n int iVar1;\n \n iVar1 = CANIntNumberGet(param_1,param_2);\n IntRegister((long)iVar1,param_3);\n IntEnable((long)iVar1);\n return ZEXT816(0);\n}\nWhat is...
[ { "role": "user", "content": "This is the pseudocode:\nvoid CANIntRegister(undefined8 param_1,undefined param_2,undefined8 param_3)\n\n{\n int iVar1;\n \n iVar1 = CANIntNumberGet(param_1,param_2);\n IntRegister((long)iVar1,param_3);\n IntEnable((long)iVar1);\n return;\n}\nWhat is the C code?" }, {...
[ { "role": "user", "content": "This is the pseudocode:\nvoid CANIntRegister(undefined8 param_1,undefined param_2,undefined8 param_3)\n\n{\n int iVar1;\n \n iVar1 = CANIntNumberGet(param_1,param_2);\n IntRegister((long)iVar1,param_3);\n IntEnable((long)iVar1);\n return;\n}\nWhat is the C code?" }, {...
[ { "role": "user", "content": "This is the pseudocode:\nint next_uid(void)\n\n{\n int iVar1;\n \n iVar1 = uid_0 + 1;\n if (uid_0 + 1 == 0) {\n iVar1 = uid_0 + 2;\n }\n uid_0 = iVar1;\n return uid_0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "static unsigned int next_...
[ { "role": "user", "content": "This is the pseudocode:\nint str_cmp_int(char *param_1,char *param_2)\n\n{\n int iVar1;\n long in_FS_OFFSET;\n char *local_58;\n char *local_50;\n uint local_40;\n uint local_3c;\n char local_36 [11];\n char local_2b [11];\n long local_20;\n \n local_20 = *(long *)(i...
[ { "role": "user", "content": "This is the pseudocode:\nint str_cmp_int(char *param_1,char *param_2)\n\n{\n uint uVar1;\n uint uVar2;\n long lVar3;\n char cVar4;\n int iVar5;\n long in_FS_OFFSET;\n char local_47 [11];\n char local_3c [12];\n long local_30;\n \n local_30 = *(long *)(in_FS_OFFSET + ...
[ { "role": "user", "content": "This is the pseudocode:\nint str_cmp_int(char *param_1,char *param_2)\n\n{\n uint uVar1;\n uint uVar2;\n long lVar3;\n char cVar4;\n int iVar5;\n long in_FS_OFFSET;\n char local_47 [11];\n char local_3c [12];\n long local_30;\n \n uVar1 = 0;\n local_30 = *(long *)(i...
[ { "role": "user", "content": "This is the pseudocode:\nint str_cmp_int(char *param_1,char *param_2)\n\n{\n char *pcVar1;\n char cVar2;\n char cVar3;\n uint uVar4;\n uint uVar5;\n long lVar6;\n int iVar7;\n long in_FS_OFFSET;\n char local_36 [22];\n long local_20;\n \n uVar5 = 0;\n local_20 = *(...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 uninitvar_isfinite(void)\n\n{\n undefined4 local_24;\n undefined8 local_20;\n \n isfinite((double)local_24);\n isfinite(local_20);\n isfinite();\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "voi...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 uninitvar_isfinite(void)\n\n{\n isfinite(0);\n isfinite(0);\n isfinite();\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "void uninitvar_isfinite(void)\n{\n float f;\n\n (void)isfinite(f);\n\n ...
[ { "role": "user", "content": "This is the pseudocode:\nundefined [16] uninitvar_isfinite(void)\n\n{\n isfinite(0);\n isfinite(0);\n isfinite();\n return ZEXT816(0);\n}\nWhat is the C code?" }, { "role": "assistant", "content": "void uninitvar_isfinite(void)\n{\n float f;\n\n (void)isf...
[ { "role": "user", "content": "This is the pseudocode:\nundefined [16] uninitvar_isfinite(void)\n\n{\n isfinite(0);\n isfinite(0);\n isfinite();\n return ZEXT816(0);\n}\nWhat is the C code?" }, { "role": "assistant", "content": "void uninitvar_isfinite(void)\n{\n float f;\n\n (void)isf...
[ { "role": "user", "content": "This is the pseudocode:\nuint xrop3_201_0_0(byte param_1,byte param_2)\n\n{\n return ~((uint)param_1 * 0x100 + (uint)param_1 ^ ((uint)param_2 * 0x100 + (uint)param_2 | 0xff));\n}\nWhat is the C code?" }, { "role": "assistant", "content": "static unsigned xrop3_201_...
[ { "role": "user", "content": "This is the pseudocode:\nundefined [16] mercury_util_reset(undefined8 param_1)\n\n{\n LBA_REG_WRITE(param_1,0x500,0xf);\n return ZEXT816(0) << 0x40;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "static int mercury_util_reset(void *phys_addr)\n{\n...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 _cyl(undefined8 param_1,undefined8 param_2,undefined8 param_3)\n\n{\n sas_sinx_x(param_3);\n sas_2J1x_x(param_2);\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "static double _cyl(double vd, double b...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n char cVar1;\n int iVar2;\n \n iVar2 = getchar();\n cVar1 = (char)iVar2;\n if ((cVar1 < 'a') || ('w' < cVar1)) {\n putchar(cVar1 + -0x17);\n }\n else {\n putchar(cVar1 + 3);\n }\n return 0;\n}\nWhat is the C c...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n char cVar1;\n int iVar2;\n \n iVar2 = getchar();\n cVar1 = (char)iVar2;\n if ((byte)(cVar1 + 0x9fU) < 0x17) {\n putchar(cVar1 + 3);\n }\n else {\n putchar(cVar1 + -0x17);\n }\n return 0;\n}\nWhat is the C cod...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n char cVar1;\n int iVar2;\n \n iVar2 = getchar();\n cVar1 = (char)iVar2;\n if ((byte)(cVar1 + 0x9fU) < 0x17) {\n putchar(cVar1 + 3);\n }\n else {\n putchar(cVar1 + -0x17);\n }\n return 0;\n}\nWhat is the C cod...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n char cVar1;\n int iVar2;\n \n iVar2 = getchar();\n cVar1 = (char)iVar2;\n if ((byte)(cVar1 + 0x9fU) < 0x17) {\n putchar(cVar1 + 3);\n }\n else {\n putchar(cVar1 + -0x17);\n }\n return 0;\n}\nWhat is the C cod...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 setbpt(void)\n\n{\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int\nsetbpt(tcp)\nstruct tcb *tcp;\n{\n return 0;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 setbpt(void)\n\n{\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int\nsetbpt(tcp)\nstruct tcb *tcp;\n{\n return 0;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 setbpt(void)\n\n{\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int\nsetbpt(tcp)\nstruct tcb *tcp;\n{\n return 0;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 setbpt(void)\n\n{\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int\nsetbpt(tcp)\nstruct tcb *tcp;\n{\n return 0;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nfloat convert_rad_to_decdeg(float param_1)\n\n{\n return param_1 * DAT_00100024;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "float convert_rad_to_decdeg(float th_rad)\n{\n float rad_to_decdeg = 1800.0/3.141592653;\n\n ret...
[ { "role": "user", "content": "This is the pseudocode:\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nfloat convert_rad_to_decdeg(float param_1)\n\n{\n return param_1 * __LC0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "float convert_r...
[ { "role": "user", "content": "This is the pseudocode:\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nfloat convert_rad_to_decdeg(float param_1)\n\n{\n return param_1 * __LC0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "float convert_r...
[ { "role": "user", "content": "This is the pseudocode:\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nfloat convert_rad_to_decdeg(float param_1)\n\n{\n return param_1 * __LC0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "float convert_r...
[ { "role": "user", "content": "This is the pseudocode:\nundefined [16] moral_regla1(char *param_1,undefined8 *param_2,int param_3)\n\n{\n undefined8 uVar1;\n undefined8 uVar2;\n uint uVar3;\n uint uVar4;\n uint uVar5;\n undefined auVar6 [16];\n \n memset(param_1,0,4);\n if (param_3 != 0) {\n uVa...
[ { "role": "user", "content": "This is the pseudocode:\nundefined [16] moral_regla1(char *param_1,undefined8 *param_2,int param_3)\n\n{\n char *pcVar1;\n char *pcVar2;\n char *pcVar3;\n uint uVar4;\n uint uVar5;\n uint uVar6;\n undefined auVar7 [16];\n \n param_1[0] = '\\0';\n param_1[1] = '\\0';\...
[ { "role": "user", "content": "This is the pseudocode:\nundefined [16] moral_regla1(char *param_1,undefined8 *param_2,int param_3)\n\n{\n char *pcVar1;\n char *pcVar2;\n char *pcVar3;\n uint uVar4;\n uint uVar5;\n uint uVar6;\n undefined auVar7 [16];\n \n param_1[0] = '\\0';\n param_1[1] = '\\0';\...
[ { "role": "user", "content": "This is the pseudocode:\nundefined [16] moral_regla1(char *param_1,undefined8 *param_2,int param_3)\n\n{\n char *pcVar1;\n char *pcVar2;\n char *pcVar3;\n uint uVar4;\n uint uVar5;\n uint uVar6;\n undefined auVar7 [16];\n \n param_1[0] = '\\0';\n param_1[1] = '\\0';\...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n long in_FS_OFFSET;\n uint local_18;\n uint local_14;\n long local_10;\n \n local_10 = *(long *)(in_FS_OFFSET + 0x28);\n local_18 = 10;\n local_14 = 9;\n troca(&local_18,&local_14);\n printf(\" A = %d B = %d\",(ulo...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n long in_FS_OFFSET;\n uint local_18;\n uint local_14;\n long local_10;\n \n local_10 = *(long *)(in_FS_OFFSET + 0x28);\n local_18 = 10;\n local_14 = 9;\n troca(&local_18,&local_14);\n printf(\" A = %d B = %d\",(ulo...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n long in_FS_OFFSET;\n uint local_18;\n uint local_14;\n long local_10;\n \n local_10 = *(long *)(in_FS_OFFSET + 0x28);\n local_18 = 10;\n local_14 = 9;\n troca(&local_18,&local_14);\n printf(\" A = %d B = %d\",(ulo...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n long in_FS_OFFSET;\n uint local_18;\n uint local_14;\n long local_10;\n \n local_10 = *(long *)(in_FS_OFFSET + 0x28);\n local_18 = 10;\n local_14 = 9;\n troca(&local_18,&local_14);\n printf(\" A = %d B = %d\",(ulo...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 same_array(void)\n\n{\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int same_array( int *pfirst, int *psecond )\n{\n\n return 0 ;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 same_array(void)\n\n{\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int same_array( int *pfirst, int *psecond )\n{\n\n return 0 ;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 same_array(void)\n\n{\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int same_array( int *pfirst, int *psecond )\n{\n\n return 0 ;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 same_array(void)\n\n{\n return 0;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int same_array( int *pfirst, int *psecond )\n{\n\n return 0 ;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n long in_FS_OFFSET;\n int local_6c;\n undefined local_68 [88];\n long local_10;\n \n local_10 = *(long *)(in_FS_OFFSET + 0x28);\n local_6c = 0;\n while (local_6c != -1) {\n local_6c = readbuff(local_68);\n if (l...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n int iVar1;\n long in_FS_OFFSET;\n undefined auStack_68 [88];\n long local_10;\n \n local_10 = *(long *)(in_FS_OFFSET + 0x28);\n iVar1 = 0;\n while (iVar1 != -1) {\n iVar1 = readbuff(auStack_68);\n if (iVar1 == ...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n int iVar1;\n long in_FS_OFFSET;\n undefined auStack_68 [88];\n long local_10;\n \n local_10 = *(long *)(in_FS_OFFSET + 0x28);\n iVar1 = 0;\n while (iVar1 != -1) {\n iVar1 = readbuff(auStack_68);\n if (iVar1 == ...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 main(void)\n\n{\n int iVar1;\n long in_FS_OFFSET;\n undefined auStack_68 [88];\n long local_10;\n \n local_10 = *(long *)(in_FS_OFFSET + 0x28);\n iVar1 = 0;\n while (iVar1 != -1) {\n iVar1 = readbuff(auStack_68);\n if (iVar1 == ...
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 arg_rs(void)\n\n{\n puts(\"rs\");\n return 0xffffffff;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int arg_rs(void)\n{\n printf(\"rs\\n\");\n return -1;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 arg_rs(void)\n\n{\n puts(\"rs\");\n return 0xffffffff;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int arg_rs(void)\n{\n printf(\"rs\\n\");\n return -1;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 arg_rs(void)\n\n{\n puts(\"rs\");\n return 0xffffffff;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int arg_rs(void)\n{\n printf(\"rs\\n\");\n return -1;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined8 arg_rs(void)\n\n{\n puts(\"rs\");\n return 0xffffffff;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "int arg_rs(void)\n{\n printf(\"rs\\n\");\n return -1;\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nint dpotrf_codegen_8(long param_1)\n\n{\n double dVar1;\n double dVar2;\n int local_2c;\n int local_28;\n int local_24;\n double local_18;\n \n local_28 = 0;\n while( true ) {\n if (0x23 < local_28) {\n return 0;\n }\n local_18 = ...
[ { "role": "user", "content": "This is the pseudocode:\nint dpotrf_codegen_8(long param_1)\n\n{\n double dVar1;\n double dVar2;\n int iVar3;\n double *pdVar4;\n int iVar5;\n int iVar6;\n int iVar7;\n int iVar8;\n double *pdVar9;\n int iVar10;\n double dVar11;\n \n dVar2 = _LC1;\n pdVar9 = (doub...
[ { "role": "user", "content": "This is the pseudocode:\nint dpotrf_codegen_8(double *param_1)\n\n{\n int iVar1;\n double *pdVar2;\n double dVar3;\n double *pdVar4;\n uint uVar5;\n double *pdVar6;\n int iVar7;\n double *pdVar8;\n int iVar9;\n long lVar10;\n int iVar11;\n double dVar12;\n double d...
[ { "role": "user", "content": "This is the pseudocode:\nuint dpotrf_codegen_8(double *param_1)\n\n{\n double dVar1;\n double dVar2;\n double dVar3;\n int iVar4;\n uint uVar5;\n uint uVar6;\n double *pdVar7;\n double *pdVar8;\n double *pdVar9;\n double *pdVar10;\n uint uVar11;\n int iVar12;\n lon...
[ { "role": "user", "content": "This is the pseudocode:\nundefined [16] filblanks(char *param_1,int param_2,int param_3)\n\n{\n size_t sVar1;\n undefined1 *__dest;\n int local_c;\n \n memset(retbuf_0,0x20,0x20);\n sVar1 = strlen(param_1);\n local_c = (int)sVar1;\n if (param_3 < local_c) {\n local_...
[ { "role": "user", "content": "This is the pseudocode:\nvoid power_info_eeprom_def(void)\n\n{\n return;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "static void power_info_eeprom_def(struct edump *edump)\n{\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nuint pseudo_random(int param_1)\n\n{\n return param_1 * 0x401b & 0x7fff;\n}\nWhat is the C code?" }, { "role": "assistant", "content": "static int\npseudo_random(int i)\n{\n\n return (16411*i) & (32767);\n}" } ]
[ { "role": "user", "content": "This is the pseudocode:\nundefined4\nrun_fwknop(undefined8 param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n undefined8 param_5)\n\n{\n undefined4 uVar1;\n \n printf(\"Running fwknop with Options: %s:%s:%s:%s:%s\\n\",param_1,param_2,param_3,param_4...