fname stringlengths 1 1.03k | func_def stringlengths 20 7.68k | technique stringclasses 3 values | clean_asm stringlengths 80 15.9k | obfuscated_asm stringlengths 101 28.6k | clean_ir stringlengths 42 8k | obfuscated_c stringlengths 141 47.6k | tigress_seed int64 3.25k 2.15B | exebench_split stringclasses 1 value |
|---|---|---|---|---|---|---|---|---|
sacaC | void sacaC(TCola *c, TElementoC* dato) {
if (!vaciaC(*c)) {
*dato = (*c).datos[(*c).pri];
if ((*c).pri == (*c).ult) {
iniciaC(c);
} else {
(*c).pri += 1;
}
}
} | EncodeArithmetic | .global sacaC
.type sacaC, %function
sacaC:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
ldr x0, [sp, 56]
add x2, sp, 16
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr x0, [x3, 16]
str x0, [x2, 16]
add x0, sp, 16
bl vaciaC
cmp w0, 0
bne .L4
ldr x0, [sp, 56]
ldr x1, [x0, 16]
ldr x0, [sp, 56]
ldr x0, [x0]
lsl x0, x0, 2
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp, 48]
str w1, [x0]
ldr x0, [sp, 56]
ldr x1, [x0]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
cmp x1, x0
bne .L3
ldr x0, [sp, 56]
bl iniciaC
b .L4
.L3:
ldr x0, [sp, 56]
ldr x0, [x0]
add x1, x0, 1
ldr x0, [sp, 56]
str x1, [x0]
.L4:
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global sacaC
.type sacaC, %function
sacaC:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
ldr x1, [sp, 56]
add x0, sp, 16
ldp x2, x3, [x1]
ldr x1, [x1, 16]
stp x2, x3, [x0]
str x1, [x0, 16]
add x0, sp, 16
bl vaciaC
str w0, [sp, 76]
ldr w0, [sp, 76]
cmp w0, 0
bne .L11
ldr x0, [sp, 56]
ldr x1, [x0, 16]
ldr x0, [sp, 56]
ldr x0, [x0]
lsl x0, x0, 2
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp, 48]
str w1, [x0]
ldr x0, [sp, 56]
ldr x1, [x0]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
sub x1, x1, x0
ldr x0, [sp, 56]
ldr x2, [x0, 8]
ldr x0, [sp, 56]
ldr x0, [x0]
sub x0, x2, x0
orr x0, x1, x0
mvn x0, x0
lsr x0, x0, 63
and w0, w0, 1
cmp w0, 0
beq .L9
ldr x0, [sp, 56]
bl iniciaC
b .L11
.L9:
ldr x0, [sp, 56]
ldr x0, [x0]
eor x1, x0, 1
ldr x0, [sp, 56]
ldr x0, [x0]
lsl x0, x0, 1
and x0, x0, 2
add x1, x1, x0
ldr x0, [sp, 56]
str x1, [x0]
nop
.L11:
nop
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size sacaC, .-sacaC | %struct.TYPE_5__ = type { i64, i64, i32* }
define dso_local void @sacaC(%struct.TYPE_5__* %0, i32* %1) {
%3 = alloca %struct.TYPE_5__*, align 8
%4 = alloca i32*, align 8
store %struct.TYPE_5__* %0, %struct.TYPE_5__** %3, align 8
store i32* %1, i32** %4, align 8
%5 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%6 = call i32 @vaciaC(%struct.TYPE_5__* byval(%struct.TYPE_5__) align 8 %5)
%7 = icmp ne i32 %6, 0
br i1 %7, label %34, label %8
8: ; preds = %2
%9 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%10 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %9, i32 0, i32 2
%11 = load i32*, i32** %10, align 8
%12 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%13 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %12, i32 0, i32 0
%14 = load i64, i64* %13, align 8
%15 = getelementptr inbounds i32, i32* %11, i64 %14
%16 = load i32, i32* %15, align 4
%17 = load i32*, i32** %4, align 8
store i32 %16, i32* %17, align 4
%18 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%19 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %18, i32 0, i32 0
%20 = load i64, i64* %19, align 8
%21 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%22 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %21, i32 0, i32 1
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %20, %23
br i1 %24, label %25, label %28
25: ; preds = %8
%26 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%27 = call i32 @iniciaC(%struct.TYPE_5__* %26)
br label %33
28: ; preds = %8
%29 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%30 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %29, i32 0, i32 0
%31 = load i64, i64* %30, align 8
%32 = add i64 %31, 1
store i64 %32, i64* %30, align 8
br label %33
33: ; preds = %28, %25
br label %34
34: ; preds = %33, %2
ret void
}
declare dso_local i32 @vaciaC(%struct.TYPE_5__* byval(%struct.TYPE_5__) align 8)
declare dso_local i32 @iniciaC(%struct.TYPE_5__*) | /* BEGIN FUNCTION-DEF sacaC LOC=UNKNOWN VKEY=4891 */
void sacaC(TCola *c , TElementoC *dato )
{
int tmp ;
{
#line 48 "/tmp/forklift_obfu_ecfkw6la/input.c"
tmp = vaciaC(*c);
#line 48
if (! tmp) {
#line 49
*dato = *(c->datos + c->pri);
#line 50
if ((int )((~ ((c->pri - c->ult) | (c->ult - c->pri)) >> 63UL) & 1UL)) {
#line 51
iniciaC(c);
} else {
#line 53
c->pri = (c->pri ^ 1UL) + ((c->pri & 1UL) << 1UL);
}
}
#line 56
return;
}
}
/* END FUNCTION-DEF sacaC LOC=UNKNOWN VKEY=4891 */ | 107,420,369 | train_synth_compilable |
block_mark_as_free | static void
block_mark_as_free(block_header_t *block)
{
block_header_t *next;
next = block_link_next(block);
block_set_prev_free(next);
block_set_free(block);
} | EncodeArithmetic | .global block_mark_as_free
.type block_mark_as_free, %function
block_mark_as_free:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl block_link_next
str x0, [sp, 40]
ldr x0, [sp, 40]
bl block_set_prev_free
ldr x0, [sp, 24]
bl block_set_free
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global block_mark_as_free
.type block_mark_as_free, %function
block_mark_as_free:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl block_link_next
str x0, [sp, 40]
ldr x0, [sp, 40]
bl block_set_prev_free
ldr x0, [sp, 24]
bl block_set_free
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size block_mark_as_free, .-block_mark_as_free | define dso_local void @block_mark_as_free(i32* %0) {
%2 = alloca i32*, align 8
%3 = alloca i32*, align 8
store i32* %0, i32** %2, align 8
%4 = load i32*, i32** %2, align 8
%5 = call i32* @block_link_next(i32* %4)
store i32* %5, i32** %3, align 8
%6 = load i32*, i32** %3, align 8
%7 = call i32 @block_set_prev_free(i32* %6)
%8 = load i32*, i32** %2, align 8
%9 = call i32 @block_set_free(i32* %8)
ret void
}
declare dso_local i32* @block_link_next(i32*)
declare dso_local i32 @block_set_prev_free(i32*)
declare dso_local i32 @block_set_free(i32*) | /* BEGIN FUNCTION-DEF block_mark_as_free LOC=UNKNOWN VKEY=4891 */
static void block_mark_as_free(block_header_t *block )
{
block_header_t *next ;
{
{
#line 51 "/tmp/forklift_obfu_lta5ieih/input.c"
next = block_link_next(block);
#line 52
block_set_prev_free(next);
#line 53
block_set_free(block);
}
#line 54
return;
}
}
/* END FUNCTION-DEF block_mark_as_free LOC=UNKNOWN VKEY=4891 */ | 999,270,936 | train_synth_compilable |
sacaC | void sacaC(TCola *c, TElementoC* dato) {
if (!vaciaC(*c)) {
*dato = (*c).datos[(*c).pri];
if ((*c).pri == (*c).ult) {
iniciaC(c);
} else {
(*c).pri += 1;
}
}
} | Flatten+EncodeArithmetic | .global sacaC
.type sacaC, %function
sacaC:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
ldr x0, [sp, 56]
add x2, sp, 16
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr x0, [x3, 16]
str x0, [x2, 16]
add x0, sp, 16
bl vaciaC
cmp w0, 0
bne .L4
ldr x0, [sp, 56]
ldr x1, [x0, 16]
ldr x0, [sp, 56]
ldr x0, [x0]
lsl x0, x0, 2
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp, 48]
str w1, [x0]
ldr x0, [sp, 56]
ldr x1, [x0]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
cmp x1, x0
bne .L3
ldr x0, [sp, 56]
bl iniciaC
b .L4
.L3:
ldr x0, [sp, 56]
ldr x0, [x0]
add x1, x0, 1
ldr x0, [sp, 56]
str x1, [x0]
.L4:
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global sacaC
.type sacaC, %function
sacaC:
.LFB5:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
str xzr, [sp, 64]
.L16:
ldr x0, [sp, 64]
cmp x0, 6
beq .L2
ldr x0, [sp, 64]
cmp x0, 6
bhi .L17
ldr x0, [sp, 64]
cmp x0, 5
beq .L4
ldr x0, [sp, 64]
cmp x0, 5
bhi .L17
ldr x0, [sp, 64]
cmp x0, 4
beq .L5
ldr x0, [sp, 64]
cmp x0, 4
bhi .L17
ldr x0, [sp, 64]
cmp x0, 3
beq .L6
ldr x0, [sp, 64]
cmp x0, 3
bhi .L17
ldr x0, [sp, 64]
cmp x0, 2
beq .L18
ldr x0, [sp, 64]
cmp x0, 2
bhi .L17
ldr x0, [sp, 64]
cmp x0, 0
beq .L8
ldr x0, [sp, 64]
cmp x0, 1
beq .L9
b .L17
.L5:
ldr x0, [sp, 56]
ldr x1, [x0, 16]
ldr x0, [sp, 56]
ldr x0, [x0]
lsl x0, x0, 2
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp, 48]
str w1, [x0]
mov x0, 5
str x0, [sp, 64]
b .L10
.L9:
ldr x0, [sp, 56]
ldr x0, [x0]
orr x0, x0, 1
lsl x1, x0, 1
ldr x0, [sp, 56]
ldr x0, [x0]
eor x0, x0, 1
sub x1, x1, x0
ldr x0, [sp, 56]
str x1, [x0]
mov x0, 2
str x0, [sp, 64]
b .L10
.L6:
ldr w0, [sp, 76]
cmp w0, 0
beq .L11
mov x0, 2
str x0, [sp, 64]
b .L10
.L11:
mov x0, 4
str x0, [sp, 64]
b .L10
.L2:
ldr x0, [sp, 56]
bl iniciaC
mov x0, 2
str x0, [sp, 64]
b .L10
.L4:
ldr x0, [sp, 56]
ldr x1, [x0]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
sub x1, x1, x0
ldr x0, [sp, 56]
ldr x2, [x0]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
sub x2, x2, x0
mov x0, -9223372036854775808
add x0, x2, x0
lsl x0, x0, 1
ldr x2, [sp, 56]
ldr x3, [x2]
ldr x2, [sp, 56]
ldr x2, [x2, 8]
sub x3, x3, x2
mov x2, -9223372036854775808
add x2, x3, x2
asr x2, x2, 63
and x0, x0, x2
sub x1, x1, x0
mov x0, -9223372036854775808
add x0, x1, x0
lsr x0, x0, 63
and w0, w0, 1
cmp w0, 0
beq .L13
mov x0, 6
str x0, [sp, 64]
b .L10
.L13:
mov x0, 1
str x0, [sp, 64]
b .L10
.L8:
ldr x1, [sp, 56]
add x0, sp, 16
ldp x2, x3, [x1]
ldr x1, [x1, 16]
stp x2, x3, [x0]
str x1, [x0, 16]
add x0, sp, 16
bl vaciaC
str w0, [sp, 76]
mov x0, 3
str x0, [sp, 64]
b .L10
.L17:
nop
.L10:
b .L16
.L18:
nop
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size sacaC, .-sacaC | %struct.TYPE_5__ = type { i64, i64, i32* }
define dso_local void @sacaC(%struct.TYPE_5__* %0, i32* %1) {
%3 = alloca %struct.TYPE_5__*, align 8
%4 = alloca i32*, align 8
store %struct.TYPE_5__* %0, %struct.TYPE_5__** %3, align 8
store i32* %1, i32** %4, align 8
%5 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%6 = call i32 @vaciaC(%struct.TYPE_5__* byval(%struct.TYPE_5__) align 8 %5)
%7 = icmp ne i32 %6, 0
br i1 %7, label %34, label %8
8: ; preds = %2
%9 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%10 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %9, i32 0, i32 2
%11 = load i32*, i32** %10, align 8
%12 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%13 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %12, i32 0, i32 0
%14 = load i64, i64* %13, align 8
%15 = getelementptr inbounds i32, i32* %11, i64 %14
%16 = load i32, i32* %15, align 4
%17 = load i32*, i32** %4, align 8
store i32 %16, i32* %17, align 4
%18 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%19 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %18, i32 0, i32 0
%20 = load i64, i64* %19, align 8
%21 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%22 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %21, i32 0, i32 1
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %20, %23
br i1 %24, label %25, label %28
25: ; preds = %8
%26 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%27 = call i32 @iniciaC(%struct.TYPE_5__* %26)
br label %33
28: ; preds = %8
%29 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%30 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %29, i32 0, i32 0
%31 = load i64, i64* %30, align 8
%32 = add i64 %31, 1
store i64 %32, i64* %30, align 8
br label %33
33: ; preds = %28, %25
br label %34
34: ; preds = %33, %2
ret void
}
declare dso_local i32 @vaciaC(%struct.TYPE_5__* byval(%struct.TYPE_5__) align 8)
declare dso_local i32 @iniciaC(%struct.TYPE_5__*) | /* BEGIN FUNCTION-DEF sacaC LOC=UNKNOWN VKEY=4897 */
void sacaC(TCola *c , TElementoC *dato )
{
int tmp ;
unsigned long _TIG_FN_dohy_1_sacaC_next ;
{
_TIG_FN_dohy_1_sacaC_next = 0UL;
while (1) {
switch (_TIG_FN_dohy_1_sacaC_next) {
case 4UL:
#line 49 "/tmp/forklift_obfu_bxffb0xo/input.c"
*dato = *(c->datos + c->pri);
_TIG_FN_dohy_1_sacaC_next = 5UL;
break;
case 1UL:
#line 53
c->pri = ((c->pri | 1UL) + (c->pri | 1UL)) - (c->pri ^ 1UL);
_TIG_FN_dohy_1_sacaC_next = 2UL;
break;
case 3UL: ;
if (tmp) {
_TIG_FN_dohy_1_sacaC_next = 2UL;
} else {
_TIG_FN_dohy_1_sacaC_next = 4UL;
}
break;
case 6UL:
#line 51
iniciaC(c);
_TIG_FN_dohy_1_sacaC_next = 2UL;
break;
case 5UL: ;
if ((int )(((((c->pri - c->ult) + (1UL << 63UL)) - ((((c->pri - c->ult) + (1UL << 63UL)) << 1UL) & ((long )((c->pri - c->ult) + (1UL << 63UL)) >> 63L))) >> 63UL) & 1UL)) {
_TIG_FN_dohy_1_sacaC_next = 6UL;
} else {
_TIG_FN_dohy_1_sacaC_next = 1UL;
}
break;
case 0UL:
#line 48
tmp = vaciaC(*c);
_TIG_FN_dohy_1_sacaC_next = 3UL;
break;
case 2UL: ;
return;
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF sacaC LOC=UNKNOWN VKEY=4897 */ | 1,181,241,943 | train_synth_compilable |
block_mark_as_free | static void
block_mark_as_free(block_header_t *block)
{
block_header_t *next;
next = block_link_next(block);
block_set_prev_free(next);
block_set_free(block);
} | Flatten+EncodeArithmetic | .global block_mark_as_free
.type block_mark_as_free, %function
block_mark_as_free:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl block_link_next
str x0, [sp, 40]
ldr x0, [sp, 40]
bl block_set_prev_free
ldr x0, [sp, 24]
bl block_set_free
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global block_mark_as_free
.type block_mark_as_free, %function
block_mark_as_free:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str xzr, [sp, 40]
.L7:
ldr x0, [sp, 40]
cmp x0, 2
beq .L8
ldr x0, [sp, 40]
cmp x0, 2
bhi .L9
ldr x0, [sp, 40]
cmp x0, 0
beq .L4
ldr x0, [sp, 40]
cmp x0, 1
bne .L9
ldr x0, [sp, 24]
bl block_link_next
str x0, [sp, 32]
ldr x0, [sp, 32]
bl block_set_prev_free
ldr x0, [sp, 24]
bl block_set_free
mov x0, 2
str x0, [sp, 40]
b .L5
.L4:
mov x0, 1
str x0, [sp, 40]
b .L5
.L9:
nop
.L5:
b .L7
.L8:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size block_mark_as_free, .-block_mark_as_free | define dso_local void @block_mark_as_free(i32* %0) {
%2 = alloca i32*, align 8
%3 = alloca i32*, align 8
store i32* %0, i32** %2, align 8
%4 = load i32*, i32** %2, align 8
%5 = call i32* @block_link_next(i32* %4)
store i32* %5, i32** %3, align 8
%6 = load i32*, i32** %3, align 8
%7 = call i32 @block_set_prev_free(i32* %6)
%8 = load i32*, i32** %2, align 8
%9 = call i32 @block_set_free(i32* %8)
ret void
}
declare dso_local i32* @block_link_next(i32*)
declare dso_local i32 @block_set_prev_free(i32*)
declare dso_local i32 @block_set_free(i32*) | /* BEGIN FUNCTION-DEF block_mark_as_free LOC=UNKNOWN VKEY=4896 */
static void block_mark_as_free(block_header_t *block )
{
block_header_t *next ;
unsigned long _TIG_FN_dgeb_1_block_mark_as_free_next ;
{
_TIG_FN_dgeb_1_block_mark_as_free_next = 0UL;
while (1) {
switch (_TIG_FN_dgeb_1_block_mark_as_free_next) {
case 1UL:
{
#line 51 "/tmp/forklift_obfu_gvaxstsn/input.c"
next = block_link_next(block);
#line 52
block_set_prev_free(next);
#line 53
block_set_free(block);
}
_TIG_FN_dgeb_1_block_mark_as_free_next = 2UL;
break;
case 0UL: ;
_TIG_FN_dgeb_1_block_mark_as_free_next = 1UL;
break;
case 2UL: ;
return;
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF block_mark_as_free LOC=UNKNOWN VKEY=4896 */ | 113,971,123 | train_synth_compilable |
pcnet_detach | __attribute__((used)) static void pcnet_detach(struct pcmcia_device *link)
{
struct net_device *dev = link->priv;
DEBUG(0, "pcnet_detach(0x%p)\n", link);
if (link->dev_node)
unregister_netdev(dev);
pcnet_release(link);
free_netdev(dev);
} | Flatten+EncodeArithmetic | .global pcnet_detach
.type pcnet_detach, %function
pcnet_detach:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 40]
ldr x2, [sp, 24]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, 0
bl DEBUG
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 0
beq .L2
ldr x0, [sp, 40]
bl unregister_netdev
.L2:
ldr x0, [sp, 24]
bl pcnet_release
ldr x0, [sp, 40]
bl free_netdev
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LC0: .string "pcnet_detach(0x%p)\n"
| .global pcnet_detach
.type pcnet_detach, %function
pcnet_detach:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
mov x0, 3
str x0, [sp, 32]
.L13:
ldr x0, [sp, 32]
cmp x0, 6
beq .L2
ldr x0, [sp, 32]
cmp x0, 6
bhi .L14
ldr x0, [sp, 32]
cmp x0, 5
beq .L15
ldr x0, [sp, 32]
cmp x0, 5
bhi .L14
ldr x0, [sp, 32]
cmp x0, 4
beq .L5
ldr x0, [sp, 32]
cmp x0, 4
bhi .L14
ldr x0, [sp, 32]
cmp x0, 3
beq .L6
ldr x0, [sp, 32]
cmp x0, 3
bhi .L14
ldr x0, [sp, 32]
cmp x0, 1
beq .L7
ldr x0, [sp, 32]
cmp x0, 2
beq .L8
b .L14
.L5:
ldr x0, [sp, 24]
bl pcnet_release
ldr x0, [sp, 40]
bl free_netdev
mov x0, 5
str x0, [sp, 32]
b .L9
.L7:
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 0
beq .L10
mov x0, 2
str x0, [sp, 32]
b .L9
.L10:
mov x0, 4
str x0, [sp, 32]
b .L9
.L6:
mov x0, 6
str x0, [sp, 32]
b .L9
.L2:
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 40]
ldr x2, [sp, 24]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, 0
bl DEBUG
mov x0, 1
str x0, [sp, 32]
b .L9
.L8:
ldr x0, [sp, 40]
bl unregister_netdev
mov x0, 4
str x0, [sp, 32]
b .L9
.L14:
nop
.L9:
b .L13
.L15:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size pcnet_detach, .-pcnet_detach | %struct.pcmcia_device = type { i64, %struct.net_device* }
%struct.net_device = type { i32 }
@.str = external hidden unnamed_addr constant [20 x i8], align 1
define dso_local void @pcnet_detach(%struct.pcmcia_device* %0) {
%2 = alloca %struct.pcmcia_device*, align 8
%3 = alloca %struct.net_device*, align 8
store %struct.pcmcia_device* %0, %struct.pcmcia_device** %2, align 8
%4 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%5 = getelementptr inbounds %struct.pcmcia_device, %struct.pcmcia_device* %4, i32 0, i32 1
%6 = load %struct.net_device*, %struct.net_device** %5, align 8
store %struct.net_device* %6, %struct.net_device** %3, align 8
%7 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%8 = call i32 @DEBUG(i32 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), %struct.pcmcia_device* %7)
%9 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%10 = getelementptr inbounds %struct.pcmcia_device, %struct.pcmcia_device* %9, i32 0, i32 0
%11 = load i64, i64* %10, align 8
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %1
%14 = load %struct.net_device*, %struct.net_device** %3, align 8
%15 = call i32 @unregister_netdev(%struct.net_device* %14)
br label %16
16: ; preds = %13, %1
%17 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%18 = call i32 @pcnet_release(%struct.pcmcia_device* %17)
%19 = load %struct.net_device*, %struct.net_device** %3, align 8
%20 = call i32 @free_netdev(%struct.net_device* %19)
ret void
}
declare dso_local i32 @DEBUG(i32, i8*, %struct.pcmcia_device*)
declare dso_local i32 @unregister_netdev(%struct.net_device*)
declare dso_local i32 @pcnet_release(%struct.pcmcia_device*)
declare dso_local i32 @free_netdev(%struct.net_device*) | /* BEGIN FUNCTION-DEF pcnet_detach LOC=UNKNOWN VKEY=4903 */
static void pcnet_detach(struct pcmcia_device *link )
{
struct net_device *dev ;
unsigned long _TIG_FN_Ow0z_1_pcnet_detach_next ;
{
_TIG_FN_Ow0z_1_pcnet_detach_next = 3UL;
while (1) {
switch (_TIG_FN_Ow0z_1_pcnet_detach_next) {
case 4UL:
{
#line 56 "/tmp/forklift_obfu_cegkscym/input.c"
pcnet_release(link);
#line 58
free_netdev(dev);
}
_TIG_FN_Ow0z_1_pcnet_detach_next = 5UL;
break;
case 1UL: ;
if (link->dev_node) {
_TIG_FN_Ow0z_1_pcnet_detach_next = 2UL;
} else {
_TIG_FN_Ow0z_1_pcnet_detach_next = 4UL;
}
break;
case 3UL: ;
_TIG_FN_Ow0z_1_pcnet_detach_next = 6UL;
break;
case 6UL:
{
#line 49
dev = link->priv;
#line 51
DEBUG(0, "pcnet_detach(0x%p)\n", link);
}
_TIG_FN_Ow0z_1_pcnet_detach_next = 1UL;
break;
case 5UL: ;
return;
break;
case 2UL:
#line 54
unregister_netdev(dev);
_TIG_FN_Ow0z_1_pcnet_detach_next = 4UL;
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF pcnet_detach LOC=UNKNOWN VKEY=4903 */ | 402,418,010 | train_synth_compilable |
sacaC | void sacaC(TCola *c, TElementoC* dato) {
if (!vaciaC(*c)) {
*dato = (*c).datos[(*c).pri];
if ((*c).pri == (*c).ult) {
iniciaC(c);
} else {
(*c).pri += 1;
}
}
} | Flatten | .global sacaC
.type sacaC, %function
sacaC:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
ldr x0, [sp, 56]
add x2, sp, 16
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr x0, [x3, 16]
str x0, [x2, 16]
add x0, sp, 16
bl vaciaC
cmp w0, 0
bne .L4
ldr x0, [sp, 56]
ldr x1, [x0, 16]
ldr x0, [sp, 56]
ldr x0, [x0]
lsl x0, x0, 2
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp, 48]
str w1, [x0]
ldr x0, [sp, 56]
ldr x1, [x0]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
cmp x1, x0
bne .L3
ldr x0, [sp, 56]
bl iniciaC
b .L4
.L3:
ldr x0, [sp, 56]
ldr x0, [x0]
add x1, x0, 1
ldr x0, [sp, 56]
str x1, [x0]
.L4:
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global sacaC
.type sacaC, %function
sacaC:
.LFB4:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
str xzr, [sp, 64]
.L16:
ldr x0, [sp, 64]
cmp x0, 6
beq .L2
ldr x0, [sp, 64]
cmp x0, 6
bhi .L17
ldr x0, [sp, 64]
cmp x0, 5
beq .L4
ldr x0, [sp, 64]
cmp x0, 5
bhi .L17
ldr x0, [sp, 64]
cmp x0, 4
beq .L5
ldr x0, [sp, 64]
cmp x0, 4
bhi .L17
ldr x0, [sp, 64]
cmp x0, 3
beq .L6
ldr x0, [sp, 64]
cmp x0, 3
bhi .L17
ldr x0, [sp, 64]
cmp x0, 2
beq .L18
ldr x0, [sp, 64]
cmp x0, 2
bhi .L17
ldr x0, [sp, 64]
cmp x0, 0
beq .L8
ldr x0, [sp, 64]
cmp x0, 1
beq .L9
b .L17
.L5:
ldr x0, [sp, 56]
ldr x1, [x0, 16]
ldr x0, [sp, 56]
ldr x0, [x0]
lsl x0, x0, 2
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp, 48]
str w1, [x0]
mov x0, 5
str x0, [sp, 64]
b .L10
.L9:
ldr x0, [sp, 56]
ldr x0, [x0]
add x1, x0, 1
ldr x0, [sp, 56]
str x1, [x0]
mov x0, 2
str x0, [sp, 64]
b .L10
.L6:
ldr w0, [sp, 76]
cmp w0, 0
beq .L11
mov x0, 2
str x0, [sp, 64]
b .L10
.L11:
mov x0, 4
str x0, [sp, 64]
b .L10
.L2:
ldr x0, [sp, 56]
bl iniciaC
mov x0, 2
str x0, [sp, 64]
b .L10
.L4:
ldr x0, [sp, 56]
ldr x1, [x0]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
cmp x1, x0
bne .L13
mov x0, 6
str x0, [sp, 64]
b .L10
.L13:
mov x0, 1
str x0, [sp, 64]
b .L10
.L8:
ldr x1, [sp, 56]
add x0, sp, 16
ldp x2, x3, [x1]
ldr x1, [x1, 16]
stp x2, x3, [x0]
str x1, [x0, 16]
add x0, sp, 16
bl vaciaC
str w0, [sp, 76]
mov x0, 3
str x0, [sp, 64]
b .L10
.L17:
nop
.L10:
b .L16
.L18:
nop
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size sacaC, .-sacaC | %struct.TYPE_5__ = type { i64, i64, i32* }
define dso_local void @sacaC(%struct.TYPE_5__* %0, i32* %1) {
%3 = alloca %struct.TYPE_5__*, align 8
%4 = alloca i32*, align 8
store %struct.TYPE_5__* %0, %struct.TYPE_5__** %3, align 8
store i32* %1, i32** %4, align 8
%5 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%6 = call i32 @vaciaC(%struct.TYPE_5__* byval(%struct.TYPE_5__) align 8 %5)
%7 = icmp ne i32 %6, 0
br i1 %7, label %34, label %8
8: ; preds = %2
%9 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%10 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %9, i32 0, i32 2
%11 = load i32*, i32** %10, align 8
%12 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%13 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %12, i32 0, i32 0
%14 = load i64, i64* %13, align 8
%15 = getelementptr inbounds i32, i32* %11, i64 %14
%16 = load i32, i32* %15, align 4
%17 = load i32*, i32** %4, align 8
store i32 %16, i32* %17, align 4
%18 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%19 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %18, i32 0, i32 0
%20 = load i64, i64* %19, align 8
%21 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%22 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %21, i32 0, i32 1
%23 = load i64, i64* %22, align 8
%24 = icmp eq i64 %20, %23
br i1 %24, label %25, label %28
25: ; preds = %8
%26 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%27 = call i32 @iniciaC(%struct.TYPE_5__* %26)
br label %33
28: ; preds = %8
%29 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%30 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %29, i32 0, i32 0
%31 = load i64, i64* %30, align 8
%32 = add i64 %31, 1
store i64 %32, i64* %30, align 8
br label %33
33: ; preds = %28, %25
br label %34
34: ; preds = %33, %2
ret void
}
declare dso_local i32 @vaciaC(%struct.TYPE_5__* byval(%struct.TYPE_5__) align 8)
declare dso_local i32 @iniciaC(%struct.TYPE_5__*) | /* BEGIN FUNCTION-DEF sacaC LOC=UNKNOWN VKEY=4891 */
void sacaC(TCola *c , TElementoC *dato )
{
int tmp ;
unsigned long _TIG_FN_3iHV_1_sacaC_next ;
{
{
_TIG_FN_3iHV_1_sacaC_next = 0UL;
}
while (1) {
switch (_TIG_FN_3iHV_1_sacaC_next) {
case 4UL:
#line 49 "/tmp/forklift_obfu_mrxxfe5z/input.c"
*dato = *(c->datos + c->pri);
{
_TIG_FN_3iHV_1_sacaC_next = 5UL;
}
break;
case 1UL:
#line 53
(c->pri) ++;
{
_TIG_FN_3iHV_1_sacaC_next = 2UL;
}
break;
case 3UL: ;
if (tmp) {
{
_TIG_FN_3iHV_1_sacaC_next = 2UL;
}
} else {
{
_TIG_FN_3iHV_1_sacaC_next = 4UL;
}
}
break;
case 6UL:
#line 51
iniciaC(c);
{
_TIG_FN_3iHV_1_sacaC_next = 2UL;
}
break;
case 5UL: ;
if (c->pri == c->ult) {
{
_TIG_FN_3iHV_1_sacaC_next = 6UL;
}
} else {
{
_TIG_FN_3iHV_1_sacaC_next = 1UL;
}
}
break;
case 0UL:
#line 48
tmp = vaciaC(*c);
{
_TIG_FN_3iHV_1_sacaC_next = 3UL;
}
break;
case 2UL: ;
return;
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF sacaC LOC=UNKNOWN VKEY=4891 */ | 478,163,327 | train_synth_compilable |
block_mark_as_free | static void
block_mark_as_free(block_header_t *block)
{
block_header_t *next;
next = block_link_next(block);
block_set_prev_free(next);
block_set_free(block);
} | Flatten | .global block_mark_as_free
.type block_mark_as_free, %function
block_mark_as_free:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl block_link_next
str x0, [sp, 40]
ldr x0, [sp, 40]
bl block_set_prev_free
ldr x0, [sp, 24]
bl block_set_free
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global block_mark_as_free
.type block_mark_as_free, %function
block_mark_as_free:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str xzr, [sp, 40]
.L7:
ldr x0, [sp, 40]
cmp x0, 2
beq .L8
ldr x0, [sp, 40]
cmp x0, 2
bhi .L9
ldr x0, [sp, 40]
cmp x0, 0
beq .L4
ldr x0, [sp, 40]
cmp x0, 1
bne .L9
ldr x0, [sp, 24]
bl block_link_next
str x0, [sp, 32]
ldr x0, [sp, 32]
bl block_set_prev_free
ldr x0, [sp, 24]
bl block_set_free
mov x0, 2
str x0, [sp, 40]
b .L5
.L4:
mov x0, 1
str x0, [sp, 40]
b .L5
.L9:
nop
.L5:
b .L7
.L8:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size block_mark_as_free, .-block_mark_as_free | define dso_local void @block_mark_as_free(i32* %0) {
%2 = alloca i32*, align 8
%3 = alloca i32*, align 8
store i32* %0, i32** %2, align 8
%4 = load i32*, i32** %2, align 8
%5 = call i32* @block_link_next(i32* %4)
store i32* %5, i32** %3, align 8
%6 = load i32*, i32** %3, align 8
%7 = call i32 @block_set_prev_free(i32* %6)
%8 = load i32*, i32** %2, align 8
%9 = call i32 @block_set_free(i32* %8)
ret void
}
declare dso_local i32* @block_link_next(i32*)
declare dso_local i32 @block_set_prev_free(i32*)
declare dso_local i32 @block_set_free(i32*) | /* BEGIN FUNCTION-DEF block_mark_as_free LOC=UNKNOWN VKEY=4891 */
static void block_mark_as_free(block_header_t *block )
{
block_header_t *next ;
unsigned long _TIG_FN_WclD_1_block_mark_as_free_next ;
{
{
_TIG_FN_WclD_1_block_mark_as_free_next = 0UL;
}
while (1) {
switch (_TIG_FN_WclD_1_block_mark_as_free_next) {
case 1UL:
#line 51 "/tmp/forklift_obfu_xe29clrk/input.c"
next = block_link_next(block);
#line 52
block_set_prev_free(next);
#line 53
block_set_free(block);
{
_TIG_FN_WclD_1_block_mark_as_free_next = 2UL;
}
break;
case 0UL: ;
{
_TIG_FN_WclD_1_block_mark_as_free_next = 1UL;
}
break;
case 2UL: ;
return;
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF block_mark_as_free LOC=UNKNOWN VKEY=4891 */ | 939,042,955 | train_synth_compilable |
pcnet_detach | __attribute__((used)) static void pcnet_detach(struct pcmcia_device *link)
{
struct net_device *dev = link->priv;
DEBUG(0, "pcnet_detach(0x%p)\n", link);
if (link->dev_node)
unregister_netdev(dev);
pcnet_release(link);
free_netdev(dev);
} | Flatten | .global pcnet_detach
.type pcnet_detach, %function
pcnet_detach:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 40]
ldr x2, [sp, 24]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, 0
bl DEBUG
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 0
beq .L2
ldr x0, [sp, 40]
bl unregister_netdev
.L2:
ldr x0, [sp, 24]
bl pcnet_release
ldr x0, [sp, 40]
bl free_netdev
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LC0: .string "pcnet_detach(0x%p)\n"
| .global pcnet_detach
.type pcnet_detach, %function
pcnet_detach:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
mov x0, 3
str x0, [sp, 32]
.L13:
ldr x0, [sp, 32]
cmp x0, 6
beq .L2
ldr x0, [sp, 32]
cmp x0, 6
bhi .L14
ldr x0, [sp, 32]
cmp x0, 5
beq .L15
ldr x0, [sp, 32]
cmp x0, 5
bhi .L14
ldr x0, [sp, 32]
cmp x0, 4
beq .L5
ldr x0, [sp, 32]
cmp x0, 4
bhi .L14
ldr x0, [sp, 32]
cmp x0, 3
beq .L6
ldr x0, [sp, 32]
cmp x0, 3
bhi .L14
ldr x0, [sp, 32]
cmp x0, 1
beq .L7
ldr x0, [sp, 32]
cmp x0, 2
beq .L8
b .L14
.L5:
ldr x0, [sp, 24]
bl pcnet_release
ldr x0, [sp, 40]
bl free_netdev
mov x0, 5
str x0, [sp, 32]
b .L9
.L7:
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 0
beq .L10
mov x0, 2
str x0, [sp, 32]
b .L9
.L10:
mov x0, 4
str x0, [sp, 32]
b .L9
.L6:
mov x0, 6
str x0, [sp, 32]
b .L9
.L2:
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 40]
ldr x2, [sp, 24]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, 0
bl DEBUG
mov x0, 1
str x0, [sp, 32]
b .L9
.L8:
ldr x0, [sp, 40]
bl unregister_netdev
mov x0, 4
str x0, [sp, 32]
b .L9
.L14:
nop
.L9:
b .L13
.L15:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size pcnet_detach, .-pcnet_detach | %struct.pcmcia_device = type { i64, %struct.net_device* }
%struct.net_device = type { i32 }
@.str = external hidden unnamed_addr constant [20 x i8], align 1
define dso_local void @pcnet_detach(%struct.pcmcia_device* %0) {
%2 = alloca %struct.pcmcia_device*, align 8
%3 = alloca %struct.net_device*, align 8
store %struct.pcmcia_device* %0, %struct.pcmcia_device** %2, align 8
%4 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%5 = getelementptr inbounds %struct.pcmcia_device, %struct.pcmcia_device* %4, i32 0, i32 1
%6 = load %struct.net_device*, %struct.net_device** %5, align 8
store %struct.net_device* %6, %struct.net_device** %3, align 8
%7 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%8 = call i32 @DEBUG(i32 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), %struct.pcmcia_device* %7)
%9 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%10 = getelementptr inbounds %struct.pcmcia_device, %struct.pcmcia_device* %9, i32 0, i32 0
%11 = load i64, i64* %10, align 8
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %1
%14 = load %struct.net_device*, %struct.net_device** %3, align 8
%15 = call i32 @unregister_netdev(%struct.net_device* %14)
br label %16
16: ; preds = %13, %1
%17 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%18 = call i32 @pcnet_release(%struct.pcmcia_device* %17)
%19 = load %struct.net_device*, %struct.net_device** %3, align 8
%20 = call i32 @free_netdev(%struct.net_device* %19)
ret void
}
declare dso_local i32 @DEBUG(i32, i8*, %struct.pcmcia_device*)
declare dso_local i32 @unregister_netdev(%struct.net_device*)
declare dso_local i32 @pcnet_release(%struct.pcmcia_device*)
declare dso_local i32 @free_netdev(%struct.net_device*) | /* BEGIN FUNCTION-DEF pcnet_detach LOC=UNKNOWN VKEY=4898 */
static void pcnet_detach(struct pcmcia_device *link )
{
struct net_device *dev ;
unsigned long _TIG_FN_VRre_1_pcnet_detach_next ;
{
{
_TIG_FN_VRre_1_pcnet_detach_next = 3UL;
}
while (1) {
switch (_TIG_FN_VRre_1_pcnet_detach_next) {
case 4UL:
#line 56 "/tmp/forklift_obfu__glfzadw/input.c"
pcnet_release(link);
#line 58
free_netdev(dev);
{
_TIG_FN_VRre_1_pcnet_detach_next = 5UL;
}
break;
case 1UL: ;
if (link->dev_node) {
{
_TIG_FN_VRre_1_pcnet_detach_next = 2UL;
}
} else {
{
_TIG_FN_VRre_1_pcnet_detach_next = 4UL;
}
}
break;
case 3UL: ;
{
_TIG_FN_VRre_1_pcnet_detach_next = 6UL;
}
break;
case 6UL:
#line 49
dev = link->priv;
#line 51
DEBUG(0, "pcnet_detach(0x%p)\n", link);
{
_TIG_FN_VRre_1_pcnet_detach_next = 1UL;
}
break;
case 5UL: ;
return;
break;
case 2UL:
#line 54
unregister_netdev(dev);
{
_TIG_FN_VRre_1_pcnet_detach_next = 4UL;
}
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF pcnet_detach LOC=UNKNOWN VKEY=4898 */ | 136,505,587 | train_synth_compilable |
pcnet_detach | __attribute__((used)) static void pcnet_detach(struct pcmcia_device *link)
{
struct net_device *dev = link->priv;
DEBUG(0, "pcnet_detach(0x%p)\n", link);
if (link->dev_node)
unregister_netdev(dev);
pcnet_release(link);
free_netdev(dev);
} | EncodeArithmetic | .global pcnet_detach
.type pcnet_detach, %function
pcnet_detach:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 40]
ldr x2, [sp, 24]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, 0
bl DEBUG
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 0
beq .L2
ldr x0, [sp, 40]
bl unregister_netdev
.L2:
ldr x0, [sp, 24]
bl pcnet_release
ldr x0, [sp, 40]
bl free_netdev
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LC0: .string "pcnet_detach(0x%p)\n"
| .global pcnet_detach
.type pcnet_detach, %function
pcnet_detach:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 40]
ldr x2, [sp, 24]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, 0
bl DEBUG
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 0
beq .L2
ldr x0, [sp, 40]
bl unregister_netdev
.L2:
ldr x0, [sp, 24]
bl pcnet_release
ldr x0, [sp, 40]
bl free_netdev
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size pcnet_detach, .-pcnet_detach | %struct.pcmcia_device = type { i64, %struct.net_device* }
%struct.net_device = type { i32 }
@.str = external hidden unnamed_addr constant [20 x i8], align 1
define dso_local void @pcnet_detach(%struct.pcmcia_device* %0) {
%2 = alloca %struct.pcmcia_device*, align 8
%3 = alloca %struct.net_device*, align 8
store %struct.pcmcia_device* %0, %struct.pcmcia_device** %2, align 8
%4 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%5 = getelementptr inbounds %struct.pcmcia_device, %struct.pcmcia_device* %4, i32 0, i32 1
%6 = load %struct.net_device*, %struct.net_device** %5, align 8
store %struct.net_device* %6, %struct.net_device** %3, align 8
%7 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%8 = call i32 @DEBUG(i32 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), %struct.pcmcia_device* %7)
%9 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%10 = getelementptr inbounds %struct.pcmcia_device, %struct.pcmcia_device* %9, i32 0, i32 0
%11 = load i64, i64* %10, align 8
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %1
%14 = load %struct.net_device*, %struct.net_device** %3, align 8
%15 = call i32 @unregister_netdev(%struct.net_device* %14)
br label %16
16: ; preds = %13, %1
%17 = load %struct.pcmcia_device*, %struct.pcmcia_device** %2, align 8
%18 = call i32 @pcnet_release(%struct.pcmcia_device* %17)
%19 = load %struct.net_device*, %struct.net_device** %3, align 8
%20 = call i32 @free_netdev(%struct.net_device* %19)
ret void
}
declare dso_local i32 @DEBUG(i32, i8*, %struct.pcmcia_device*)
declare dso_local i32 @unregister_netdev(%struct.net_device*)
declare dso_local i32 @pcnet_release(%struct.pcmcia_device*)
declare dso_local i32 @free_netdev(%struct.net_device*) | /* BEGIN FUNCTION-DEF pcnet_detach LOC=UNKNOWN VKEY=4898 */
static void pcnet_detach(struct pcmcia_device *link )
{
struct net_device *dev ;
{
{
#line 49 "/tmp/forklift_obfu_6vrxoxiy/input.c"
dev = link->priv;
#line 51
DEBUG(0, "pcnet_detach(0x%p)\n", link);
}
#line 53
if (link->dev_node) {
#line 54
unregister_netdev(dev);
}
{
#line 56
pcnet_release(link);
#line 58
free_netdev(dev);
}
#line 59
return;
}
}
/* END FUNCTION-DEF pcnet_detach LOC=UNKNOWN VKEY=4898 */ | 127,978,094 | train_synth_compilable |
iscript_run | int
iscript_run (IScript* is, const char* in, char* out, size_t out_size)
{
if (NULL == is || NULL == in)
return 0;
idebug ("Parsing: '%s'\n", in);
is->buf = is->prog = in;
is->optr = out;
is->outbuf = out;
is->outbuf_size = out_size;
iscript_parse (is, 0);
is->outbuf[is->outbuf_size] = '\0';
idebug ("ERROR: %d\n", is->error);
return ! is->error;
} | EncodeArithmetic | .global iscript_run
.type iscript_run, %function
iscript_run:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
str x3, [sp, 16]
ldr x0, [sp, 40]
cmp x0, 0
beq .L2
ldr x0, [sp, 32]
cmp x0, 0
bne .L3
.L2:
mov w0, 0
b .L4
.L3:
ldr x1, [sp, 32]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl idebug
ldr x0, [sp, 40]
ldr x1, [sp, 32]
str x1, [x0, 8]
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
str x1, [x0]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 16]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 24]
ldr x0, [sp, 40]
ldr x1, [sp, 16]
str x1, [x0, 32]
mov w1, 0
ldr x0, [sp, 40]
bl iscript_parse
ldr x0, [sp, 40]
ldr x1, [x0, 24]
ldr x0, [sp, 40]
ldr x0, [x0, 32]
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 40]
ldr x0, [x0, 40]
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl idebug
ldr x0, [sp, 40]
ldr x0, [x0, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
.L4:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LC0: .string "Parsing: '%s'\n"
.LC1: .string "ERROR: %d\n"
| .global iscript_run
.type iscript_run, %function
iscript_run:
.LFB5:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
str x3, [sp, 16]
ldr x0, [sp, 40]
neg x1, x0
ldr x0, [sp, 40]
neg x2, x0
ldr x0, [sp, 40]
sub x0, x2, x0
ldr x2, [sp, 40]
neg x2, x2
asr x2, x2, 63
and x0, x0, x2
sub x0, x1, x0
sub x0, x0, #1
lsr x0, x0, 63
and w0, w0, 1
cmp w0, 0
beq .L2
mov w0, 0
b .L3
.L2:
ldr x0, [sp, 32]
neg x1, x0
ldr x0, [sp, 32]
orr x0, x1, x0
mvn x0, x0
lsr x0, x0, 63
and w0, w0, 1
cmp w0, 0
beq .L4
mov w0, 0
b .L3
.L4:
ldr x1, [sp, 32]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl idebug
ldr x0, [sp, 32]
str x0, [sp, 56]
ldr x0, [sp, 40]
ldr x1, [sp, 56]
str x1, [x0, 8]
ldr x0, [sp, 40]
ldr x1, [sp, 56]
str x1, [x0]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 16]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 24]
ldr x0, [sp, 40]
ldr x1, [sp, 16]
str x1, [x0, 32]
mov w1, 0
ldr x0, [sp, 40]
bl iscript_parse
ldr x0, [sp, 40]
ldr x1, [x0, 24]
ldr x0, [sp, 40]
ldr x0, [x0, 32]
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 40]
ldr x0, [x0, 40]
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl idebug
ldr x0, [sp, 40]
ldr x0, [x0, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
.L3:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size iscript_run, .-iscript_run | %struct.TYPE_4__ = type { i8*, i8*, i8*, i8*, i64, i8* }
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
define dso_local i32 @iscript_run(%struct.TYPE_4__* %0, i8* %1, i8* %2, i64 %3) {
%5 = alloca i32, align 4
%6 = alloca %struct.TYPE_4__*, align 8
%7 = alloca i8*, align 8
%8 = alloca i8*, align 8
%9 = alloca i64, align 8
store %struct.TYPE_4__* %0, %struct.TYPE_4__** %6, align 8
store i8* %1, i8** %7, align 8
store i8* %2, i8** %8, align 8
store i64 %3, i64* %9, align 8
%10 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%11 = icmp eq %struct.TYPE_4__* null, %10
br i1 %11, label %15, label %12
12: ; preds = %4
%13 = load i8*, i8** %7, align 8
%14 = icmp eq i8* null, %13
br i1 %14, label %15, label %16
15: ; preds = %12, %4
store i32 0, i32* %5, align 4
br label %52
16: ; preds = %12
%17 = load i8*, i8** %7, align 8
%18 = call i32 @idebug(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = load i8*, i8** %7, align 8
%20 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%21 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %20, i32 0, i32 1
store i8* %19, i8** %21, align 8
%22 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%23 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %22, i32 0, i32 0
store i8* %19, i8** %23, align 8
%24 = load i8*, i8** %8, align 8
%25 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%26 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %25, i32 0, i32 2
store i8* %24, i8** %26, align 8
%27 = load i8*, i8** %8, align 8
%28 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%29 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %28, i32 0, i32 3
store i8* %27, i8** %29, align 8
%30 = load i64, i64* %9, align 8
%31 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%32 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %31, i32 0, i32 4
store i64 %30, i64* %32, align 8
%33 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%34 = call i32 @iscript_parse(%struct.TYPE_4__* %33, i32 0)
%35 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%36 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %35, i32 0, i32 3
%37 = load i8*, i8** %36, align 8
%38 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%39 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %38, i32 0, i32 4
%40 = load i64, i64* %39, align 8
%41 = getelementptr inbounds i8, i8* %37, i64 %40
store i8 0, i8* %41, align 1
%42 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%43 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %42, i32 0, i32 5
%44 = load i8*, i8** %43, align 8
%45 = call i32 @idebug(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %44)
%46 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%47 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %46, i32 0, i32 5
%48 = load i8*, i8** %47, align 8
%49 = icmp ne i8* %48, null
%50 = xor i1 %49, true
%51 = zext i1 %50 to i32
store i32 %51, i32* %5, align 4
br label %52
52: ; preds = %16, %15
%53 = load i32, i32* %5, align 4
ret i32 %53
}
declare dso_local i32 @idebug(i8*, i8*)
declare dso_local i32 @iscript_parse(%struct.TYPE_4__*, i32) | /* BEGIN FUNCTION-DEF iscript_run LOC=UNKNOWN VKEY=4901 */
int iscript_run(IScript *is , char const *in , char *out , size_t___0 out_size )
{
char const *tmp ;
{
#line 49
if ((int )((((((unsigned long )((void *)0) - (unsigned long )is) - ((((unsigned long )((void *)0) - (unsigned long )is) + ((unsigned long )((void *)0) - (unsigned long )is)) & ((long )((unsigned long )((void *)0) - (unsigned long )is) >> 63L))) - 1UL) >> 63UL) & 1UL)) {
#line 50
return (0);
} else
#line 49
if ((int )((~ (((unsigned long )((void *)0) - (unsigned long )in) | ((unsigned long )in - (unsigned long )((void *)0))) >> 63UL) & 1UL)) {
#line 50 "/tmp/forklift_obfu_v3eodlol/input.c"
return (0);
}
{
#line 52
idebug("Parsing: \'%s\'\n", in);
#line 54
tmp = in;
#line 54
is->prog = tmp;
#line 54
is->buf = tmp;
#line 55
is->optr = out;
#line 56
is->outbuf = out;
#line 57
is->outbuf_size = out_size;
#line 59
iscript_parse(is, 0);
#line 61
*(is->outbuf + is->outbuf_size) = (char )'\000';
#line 63
idebug("ERROR: %d\n", is->error);
}
#line 65
return (! is->error);
}
}
/* END FUNCTION-DEF iscript_run LOC=UNKNOWN VKEY=4901 */ | 1,194,819,984 | train_synth_compilable |
iscript_run | int
iscript_run (IScript* is, const char* in, char* out, size_t out_size)
{
if (NULL == is || NULL == in)
return 0;
idebug ("Parsing: '%s'\n", in);
is->buf = is->prog = in;
is->optr = out;
is->outbuf = out;
is->outbuf_size = out_size;
iscript_parse (is, 0);
is->outbuf[is->outbuf_size] = '\0';
idebug ("ERROR: %d\n", is->error);
return ! is->error;
} | Flatten+EncodeArithmetic | .global iscript_run
.type iscript_run, %function
iscript_run:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
str x3, [sp, 16]
ldr x0, [sp, 40]
cmp x0, 0
beq .L2
ldr x0, [sp, 32]
cmp x0, 0
bne .L3
.L2:
mov w0, 0
b .L4
.L3:
ldr x1, [sp, 32]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl idebug
ldr x0, [sp, 40]
ldr x1, [sp, 32]
str x1, [x0, 8]
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
str x1, [x0]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 16]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 24]
ldr x0, [sp, 40]
ldr x1, [sp, 16]
str x1, [x0, 32]
mov w1, 0
ldr x0, [sp, 40]
bl iscript_parse
ldr x0, [sp, 40]
ldr x1, [x0, 24]
ldr x0, [sp, 40]
ldr x0, [x0, 32]
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 40]
ldr x0, [x0, 40]
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl idebug
ldr x0, [sp, 40]
ldr x0, [x0, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
.L4:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LC0: .string "Parsing: '%s'\n"
.LC1: .string "ERROR: %d\n"
| .global iscript_run
.type iscript_run, %function
iscript_run:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
str x3, [sp, 16]
mov x0, 1
str x0, [sp, 56]
.L20:
ldr x0, [sp, 56]
cmp x0, 6
beq .L8
ldr x0, [sp, 56]
cmp x0, 6
bhi .L21
ldr x0, [sp, 56]
cmp x0, 5
beq .L10
ldr x0, [sp, 56]
cmp x0, 5
bhi .L21
ldr x0, [sp, 56]
cmp x0, 3
beq .L11
ldr x0, [sp, 56]
cmp x0, 3
bhi .L21
ldr x0, [sp, 56]
cmp x0, 2
beq .L12
ldr x0, [sp, 56]
cmp x0, 2
bhi .L21
ldr x0, [sp, 56]
cmp x0, 0
beq .L13
ldr x0, [sp, 56]
cmp x0, 1
bne .L21
ldr x0, [sp, 40]
neg x1, x0
ldr x0, [sp, 40]
orr x0, x1, x0
mvn x0, x0
lsr x0, x0, 63
and w0, w0, 1
cmp w0, 0
beq .L14
mov x0, 2
str x0, [sp, 56]
b .L16
.L14:
str xzr, [sp, 56]
b .L16
.L11:
mov w0, 0
b .L17
.L8:
ldr x0, [sp, 40]
ldr x0, [x0, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
b .L17
.L10:
ldr x1, [sp, 32]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl idebug
ldr x0, [sp, 32]
str x0, [sp, 48]
ldr x0, [sp, 40]
ldr x1, [sp, 48]
str x1, [x0, 8]
ldr x0, [sp, 40]
ldr x1, [sp, 48]
str x1, [x0]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 16]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 24]
ldr x0, [sp, 40]
ldr x1, [sp, 16]
str x1, [x0, 32]
mov w1, 0
ldr x0, [sp, 40]
bl iscript_parse
ldr x0, [sp, 40]
ldr x1, [x0, 24]
ldr x0, [sp, 40]
ldr x0, [x0, 32]
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 40]
ldr x0, [x0, 40]
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl idebug
mov x0, 6
str x0, [sp, 56]
b .L16
.L13:
ldr x0, [sp, 32]
neg x1, x0
ldr x0, [sp, 32]
orr x0, x1, x0
mvn x0, x0
lsr x0, x0, 63
and w0, w0, 1
cmp w0, 0
beq .L18
mov x0, 3
str x0, [sp, 56]
b .L16
.L18:
mov x0, 5
str x0, [sp, 56]
b .L16
.L12:
mov w0, 0
b .L17
.L21:
nop
.L16:
b .L20
.L17:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size iscript_run, .-iscript_run | %struct.TYPE_4__ = type { i8*, i8*, i8*, i8*, i64, i8* }
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
define dso_local i32 @iscript_run(%struct.TYPE_4__* %0, i8* %1, i8* %2, i64 %3) {
%5 = alloca i32, align 4
%6 = alloca %struct.TYPE_4__*, align 8
%7 = alloca i8*, align 8
%8 = alloca i8*, align 8
%9 = alloca i64, align 8
store %struct.TYPE_4__* %0, %struct.TYPE_4__** %6, align 8
store i8* %1, i8** %7, align 8
store i8* %2, i8** %8, align 8
store i64 %3, i64* %9, align 8
%10 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%11 = icmp eq %struct.TYPE_4__* null, %10
br i1 %11, label %15, label %12
12: ; preds = %4
%13 = load i8*, i8** %7, align 8
%14 = icmp eq i8* null, %13
br i1 %14, label %15, label %16
15: ; preds = %12, %4
store i32 0, i32* %5, align 4
br label %52
16: ; preds = %12
%17 = load i8*, i8** %7, align 8
%18 = call i32 @idebug(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = load i8*, i8** %7, align 8
%20 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%21 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %20, i32 0, i32 1
store i8* %19, i8** %21, align 8
%22 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%23 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %22, i32 0, i32 0
store i8* %19, i8** %23, align 8
%24 = load i8*, i8** %8, align 8
%25 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%26 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %25, i32 0, i32 2
store i8* %24, i8** %26, align 8
%27 = load i8*, i8** %8, align 8
%28 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%29 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %28, i32 0, i32 3
store i8* %27, i8** %29, align 8
%30 = load i64, i64* %9, align 8
%31 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%32 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %31, i32 0, i32 4
store i64 %30, i64* %32, align 8
%33 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%34 = call i32 @iscript_parse(%struct.TYPE_4__* %33, i32 0)
%35 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%36 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %35, i32 0, i32 3
%37 = load i8*, i8** %36, align 8
%38 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%39 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %38, i32 0, i32 4
%40 = load i64, i64* %39, align 8
%41 = getelementptr inbounds i8, i8* %37, i64 %40
store i8 0, i8* %41, align 1
%42 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%43 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %42, i32 0, i32 5
%44 = load i8*, i8** %43, align 8
%45 = call i32 @idebug(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %44)
%46 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%47 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %46, i32 0, i32 5
%48 = load i8*, i8** %47, align 8
%49 = icmp ne i8* %48, null
%50 = xor i1 %49, true
%51 = zext i1 %50 to i32
store i32 %51, i32* %5, align 4
br label %52
52: ; preds = %16, %15
%53 = load i32, i32* %5, align 4
ret i32 %53
}
declare dso_local i32 @idebug(i8*, i8*)
declare dso_local i32 @iscript_parse(%struct.TYPE_4__*, i32) | /* BEGIN FUNCTION-DEF iscript_run LOC=UNKNOWN VKEY=4909 */
int iscript_run(IScript *is , char const *in , char *out , size_t___0 out_size )
{
char const *tmp ;
unsigned long _TIG_FN_eDnL_1_iscript_run_next ;
{
_TIG_FN_eDnL_1_iscript_run_next = 1UL;
while (1) {
switch (_TIG_FN_eDnL_1_iscript_run_next) {
case 1UL: ;
if ((int )((~ (((unsigned long )((void *)0) - (unsigned long )is) | ((unsigned long )is - (unsigned long )((void *)0))) >> 63UL) & 1UL)) {
_TIG_FN_eDnL_1_iscript_run_next = 2UL;
} else {
_TIG_FN_eDnL_1_iscript_run_next = 0UL;
}
break;
case 3UL: ;
return (0);
break;
case 6UL: ;
return (! is->error);
break;
case 5UL:
{
#line 52 "/tmp/forklift_obfu_mv4dqow7/input.c"
idebug("Parsing: \'%s\'\n", in);
#line 54
tmp = in;
#line 54
is->prog = tmp;
#line 54
is->buf = tmp;
#line 55
is->optr = out;
#line 56
is->outbuf = out;
#line 57
is->outbuf_size = out_size;
#line 59
iscript_parse(is, 0);
#line 61
*(is->outbuf + is->outbuf_size) = (char )'\000';
#line 63
idebug("ERROR: %d\n", is->error);
}
_TIG_FN_eDnL_1_iscript_run_next = 6UL;
break;
case 0UL: ;
if ((int )((~ (((unsigned long )((void *)0) - (unsigned long )in) | ((unsigned long )in - (unsigned long )((void *)0))) >> 63UL) & 1UL)) {
_TIG_FN_eDnL_1_iscript_run_next = 3UL;
} else {
_TIG_FN_eDnL_1_iscript_run_next = 5UL;
}
break;
case 2UL: ;
return (0);
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF iscript_run LOC=UNKNOWN VKEY=4909 */ | 27,911,967 | train_synth_compilable |
GraphInit | void GraphInit(Graph* graph, uintptr_t nodeNumber) {
MatrixInit (&(graph->incidenceMatrix), nodeNumber, nodeNumber);
MatrixInit (&(graph->edgeValues), nodeNumber, nodeNumber);
ListInit (&(graph->nodeList), NULL );
uintptr_t i;
for (i = 0; i < nodeNumber; i++) {
ListAppend (&(graph->nodeList), NULL);
}
graph->size = nodeNumber;
} | EncodeArithmetic | .global GraphInit
.type GraphInit, %function
GraphInit:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x0, [sp, 24]
add x0, x0, 16
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 12
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListInit
str xzr, [sp, 40]
b .L2
.L3:
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListAppend
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
.L2:
ldr x1, [sp, 40]
ldr x0, [sp, 16]
cmp x1, x0
bcc .L3
ldr x0, [sp, 24]
ldr x1, [sp, 16]
str x1, [x0]
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global GraphInit
.type GraphInit, %function
GraphInit:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x0, [sp, 24]
add x0, x0, 16
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 12
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListInit
str xzr, [sp, 40]
b .L2
.L3:
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListAppend
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
.L2:
ldr x0, [sp, 40]
mvn x1, x0
ldr x0, [sp, 16]
and x1, x1, x0
ldr x2, [sp, 40]
ldr x0, [sp, 16]
eor x0, x2, x0
mvn x2, x0
ldr x3, [sp, 40]
ldr x0, [sp, 16]
sub x0, x3, x0
and x0, x2, x0
orr x0, x1, x0
lsr x0, x0, 63
and w0, w0, 1
cmp w0, 0
bne .L3
ldr x0, [sp, 24]
ldr x1, [sp, 16]
str x1, [x0]
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size GraphInit, .-GraphInit | %struct.TYPE_3__ = type { i64, i32, i32, i32 }
define dso_local void @GraphInit(%struct.TYPE_3__* %0, i64 %1) {
%3 = alloca %struct.TYPE_3__*, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %3, align 8
store i64 %1, i64* %4, align 8
%6 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%7 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 3
%8 = load i64, i64* %4, align 8
%9 = load i64, i64* %4, align 8
%10 = call i32 @MatrixInit(i32* %7, i64 %8, i64 %9)
%11 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%12 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %11, i32 0, i32 2
%13 = load i64, i64* %4, align 8
%14 = load i64, i64* %4, align 8
%15 = call i32 @MatrixInit(i32* %12, i64 %13, i64 %14)
%16 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%17 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %16, i32 0, i32 1
%18 = call i32 @ListInit(i32* %17, i32* null)
store i64 0, i64* %5, align 8
br label %19
19: ; preds = %27, %2
%20 = load i64, i64* %5, align 8
%21 = load i64, i64* %4, align 8
%22 = icmp ult i64 %20, %21
br i1 %22, label %23, label %30
23: ; preds = %19
%24 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%25 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %24, i32 0, i32 1
%26 = call i32 @ListAppend(i32* %25, i32* null)
br label %27
27: ; preds = %23
%28 = load i64, i64* %5, align 8
%29 = add i64 %28, 1
store i64 %29, i64* %5, align 8
br label %19
30: ; preds = %19
%31 = load i64, i64* %4, align 8
%32 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%33 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %32, i32 0, i32 0
store i64 %31, i64* %33, align 8
ret void
}
declare dso_local i32 @MatrixInit(i32*, i64, i64)
declare dso_local i32 @ListInit(i32*, i32*)
declare dso_local i32 @ListAppend(i32*, i32*) | /* BEGIN FUNCTION-DEF GraphInit LOC=UNKNOWN VKEY=4902 */
void GraphInit(Graph *graph , uintptr_t___0 nodeNumber )
{
uintptr_t___0 i ;
{
{
#line 49 "/tmp/forklift_obfu_3y4_qp_w/input.c"
MatrixInit(& graph->incidenceMatrix, nodeNumber, nodeNumber);
#line 50
MatrixInit(& graph->edgeValues, nodeNumber, nodeNumber);
#line 51
ListInit(& graph->nodeList, (int *)((void *)0));
#line 53
i = (uintptr_t___0 )0;
}
#line 53
while ((int )((((~ i & nodeNumber) | (~ (i ^ nodeNumber) & (i - nodeNumber))) >> 63UL) & 1UL)) {
{
#line 54
ListAppend(& graph->nodeList, (int *)((void *)0));
#line 53
i = (i - ~ 1UL) - 1UL;
}
}
#line 56
graph->size = nodeNumber;
#line 57
return;
}
}
/* END FUNCTION-DEF GraphInit LOC=UNKNOWN VKEY=4902 */ | 1,815,115,025 | train_synth_compilable |
GraphInit | void GraphInit(Graph* graph, uintptr_t nodeNumber) {
MatrixInit (&(graph->incidenceMatrix), nodeNumber, nodeNumber);
MatrixInit (&(graph->edgeValues), nodeNumber, nodeNumber);
ListInit (&(graph->nodeList), NULL );
uintptr_t i;
for (i = 0; i < nodeNumber; i++) {
ListAppend (&(graph->nodeList), NULL);
}
graph->size = nodeNumber;
} | Flatten | .global GraphInit
.type GraphInit, %function
GraphInit:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x0, [sp, 24]
add x0, x0, 16
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 12
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListInit
str xzr, [sp, 40]
b .L2
.L3:
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListAppend
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
.L2:
ldr x1, [sp, 40]
ldr x0, [sp, 16]
cmp x1, x0
bcc .L3
ldr x0, [sp, 24]
ldr x1, [sp, 16]
str x1, [x0]
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global GraphInit
.type GraphInit, %function
GraphInit:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
str xzr, [sp, 32]
.L13:
ldr x0, [sp, 32]
cmp x0, 7
beq .L14
ldr x0, [sp, 32]
cmp x0, 7
bhi .L15
ldr x0, [sp, 32]
cmp x0, 6
beq .L4
ldr x0, [sp, 32]
cmp x0, 6
bhi .L15
ldr x0, [sp, 32]
cmp x0, 4
beq .L5
ldr x0, [sp, 32]
cmp x0, 4
bhi .L15
ldr x0, [sp, 32]
cmp x0, 3
beq .L6
ldr x0, [sp, 32]
cmp x0, 3
bhi .L15
ldr x0, [sp, 32]
cmp x0, 0
beq .L7
ldr x0, [sp, 32]
cmp x0, 2
beq .L8
b .L15
.L5:
ldr x0, [sp, 24]
ldr x1, [sp, 16]
str x1, [x0]
mov x0, 7
str x0, [sp, 32]
b .L9
.L6:
ldr x0, [sp, 24]
add x0, x0, 16
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 12
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListInit
str xzr, [sp, 40]
mov x0, 6
str x0, [sp, 32]
b .L9
.L4:
ldr x1, [sp, 40]
ldr x0, [sp, 16]
cmp x1, x0
bcs .L10
mov x0, 2
str x0, [sp, 32]
b .L9
.L10:
mov x0, 4
str x0, [sp, 32]
b .L9
.L7:
mov x0, 3
str x0, [sp, 32]
b .L9
.L8:
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListAppend
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
mov x0, 6
str x0, [sp, 32]
b .L9
.L15:
nop
.L9:
b .L13
.L14:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size GraphInit, .-GraphInit | %struct.TYPE_3__ = type { i64, i32, i32, i32 }
define dso_local void @GraphInit(%struct.TYPE_3__* %0, i64 %1) {
%3 = alloca %struct.TYPE_3__*, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %3, align 8
store i64 %1, i64* %4, align 8
%6 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%7 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 3
%8 = load i64, i64* %4, align 8
%9 = load i64, i64* %4, align 8
%10 = call i32 @MatrixInit(i32* %7, i64 %8, i64 %9)
%11 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%12 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %11, i32 0, i32 2
%13 = load i64, i64* %4, align 8
%14 = load i64, i64* %4, align 8
%15 = call i32 @MatrixInit(i32* %12, i64 %13, i64 %14)
%16 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%17 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %16, i32 0, i32 1
%18 = call i32 @ListInit(i32* %17, i32* null)
store i64 0, i64* %5, align 8
br label %19
19: ; preds = %27, %2
%20 = load i64, i64* %5, align 8
%21 = load i64, i64* %4, align 8
%22 = icmp ult i64 %20, %21
br i1 %22, label %23, label %30
23: ; preds = %19
%24 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%25 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %24, i32 0, i32 1
%26 = call i32 @ListAppend(i32* %25, i32* null)
br label %27
27: ; preds = %23
%28 = load i64, i64* %5, align 8
%29 = add i64 %28, 1
store i64 %29, i64* %5, align 8
br label %19
30: ; preds = %19
%31 = load i64, i64* %4, align 8
%32 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%33 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %32, i32 0, i32 0
store i64 %31, i64* %33, align 8
ret void
}
declare dso_local i32 @MatrixInit(i32*, i64, i64)
declare dso_local i32 @ListInit(i32*, i32*)
declare dso_local i32 @ListAppend(i32*, i32*) | /* BEGIN FUNCTION-DEF GraphInit LOC=UNKNOWN VKEY=4902 */
void GraphInit(Graph *graph , uintptr_t___0 nodeNumber )
{
uintptr_t___0 i ;
unsigned long _TIG_FN_reks_1_GraphInit_next ;
{
{
_TIG_FN_reks_1_GraphInit_next = 0UL;
}
while (1) {
switch (_TIG_FN_reks_1_GraphInit_next) {
case 4UL:
#line 56 "/tmp/forklift_obfu_3ue12ycm/input.c"
graph->size = nodeNumber;
{
_TIG_FN_reks_1_GraphInit_next = 7UL;
}
break;
case 3UL:
#line 49
MatrixInit(& graph->incidenceMatrix, nodeNumber, nodeNumber);
#line 50
MatrixInit(& graph->edgeValues, nodeNumber, nodeNumber);
#line 51
ListInit(& graph->nodeList, (int *)((void *)0));
#line 53
i = (uintptr_t___0 )0;
{
_TIG_FN_reks_1_GraphInit_next = 6UL;
}
break;
case 6UL: ;
if (i < nodeNumber) {
{
_TIG_FN_reks_1_GraphInit_next = 2UL;
}
} else {
{
_TIG_FN_reks_1_GraphInit_next = 4UL;
}
}
break;
case 0UL: ;
{
_TIG_FN_reks_1_GraphInit_next = 3UL;
}
break;
case 7UL: ;
return;
break;
case 2UL:
#line 54
ListAppend(& graph->nodeList, (int *)((void *)0));
#line 53
i ++;
{
_TIG_FN_reks_1_GraphInit_next = 6UL;
}
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF GraphInit LOC=UNKNOWN VKEY=4902 */ | 685,731,524 | train_synth_compilable |
iscript_run | int
iscript_run (IScript* is, const char* in, char* out, size_t out_size)
{
if (NULL == is || NULL == in)
return 0;
idebug ("Parsing: '%s'\n", in);
is->buf = is->prog = in;
is->optr = out;
is->outbuf = out;
is->outbuf_size = out_size;
iscript_parse (is, 0);
is->outbuf[is->outbuf_size] = '\0';
idebug ("ERROR: %d\n", is->error);
return ! is->error;
} | Flatten | .global iscript_run
.type iscript_run, %function
iscript_run:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
str x3, [sp, 16]
ldr x0, [sp, 40]
cmp x0, 0
beq .L2
ldr x0, [sp, 32]
cmp x0, 0
bne .L3
.L2:
mov w0, 0
b .L4
.L3:
ldr x1, [sp, 32]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl idebug
ldr x0, [sp, 40]
ldr x1, [sp, 32]
str x1, [x0, 8]
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
str x1, [x0]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 16]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 24]
ldr x0, [sp, 40]
ldr x1, [sp, 16]
str x1, [x0, 32]
mov w1, 0
ldr x0, [sp, 40]
bl iscript_parse
ldr x0, [sp, 40]
ldr x1, [x0, 24]
ldr x0, [sp, 40]
ldr x0, [x0, 32]
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 40]
ldr x0, [x0, 40]
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl idebug
ldr x0, [sp, 40]
ldr x0, [x0, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
.L4:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LC0: .string "Parsing: '%s'\n"
.LC1: .string "ERROR: %d\n"
| .global iscript_run
.type iscript_run, %function
iscript_run:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
str x3, [sp, 16]
mov x0, 1
str x0, [sp, 56]
.L20:
ldr x0, [sp, 56]
cmp x0, 6
beq .L8
ldr x0, [sp, 56]
cmp x0, 6
bhi .L21
ldr x0, [sp, 56]
cmp x0, 5
beq .L10
ldr x0, [sp, 56]
cmp x0, 5
bhi .L21
ldr x0, [sp, 56]
cmp x0, 3
beq .L11
ldr x0, [sp, 56]
cmp x0, 3
bhi .L21
ldr x0, [sp, 56]
cmp x0, 2
beq .L12
ldr x0, [sp, 56]
cmp x0, 2
bhi .L21
ldr x0, [sp, 56]
cmp x0, 0
beq .L13
ldr x0, [sp, 56]
cmp x0, 1
bne .L21
ldr x0, [sp, 40]
cmp x0, 0
bne .L14
mov x0, 2
str x0, [sp, 56]
b .L16
.L14:
str xzr, [sp, 56]
b .L16
.L11:
mov w0, 0
b .L17
.L8:
ldr x0, [sp, 40]
ldr x0, [x0, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
b .L17
.L10:
ldr x1, [sp, 32]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl idebug
ldr x0, [sp, 32]
str x0, [sp, 48]
ldr x0, [sp, 40]
ldr x1, [sp, 48]
str x1, [x0, 8]
ldr x0, [sp, 40]
ldr x1, [sp, 48]
str x1, [x0]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 16]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 24]
ldr x0, [sp, 40]
ldr x1, [sp, 16]
str x1, [x0, 32]
mov w1, 0
ldr x0, [sp, 40]
bl iscript_parse
ldr x0, [sp, 40]
ldr x1, [x0, 24]
ldr x0, [sp, 40]
ldr x0, [x0, 32]
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 40]
ldr x0, [x0, 40]
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl idebug
mov x0, 6
str x0, [sp, 56]
b .L16
.L13:
ldr x0, [sp, 32]
cmp x0, 0
bne .L18
mov x0, 3
str x0, [sp, 56]
b .L16
.L18:
mov x0, 5
str x0, [sp, 56]
b .L16
.L12:
mov w0, 0
b .L17
.L21:
nop
.L16:
b .L20
.L17:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size iscript_run, .-iscript_run | %struct.TYPE_4__ = type { i8*, i8*, i8*, i8*, i64, i8* }
@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
define dso_local i32 @iscript_run(%struct.TYPE_4__* %0, i8* %1, i8* %2, i64 %3) {
%5 = alloca i32, align 4
%6 = alloca %struct.TYPE_4__*, align 8
%7 = alloca i8*, align 8
%8 = alloca i8*, align 8
%9 = alloca i64, align 8
store %struct.TYPE_4__* %0, %struct.TYPE_4__** %6, align 8
store i8* %1, i8** %7, align 8
store i8* %2, i8** %8, align 8
store i64 %3, i64* %9, align 8
%10 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%11 = icmp eq %struct.TYPE_4__* null, %10
br i1 %11, label %15, label %12
12: ; preds = %4
%13 = load i8*, i8** %7, align 8
%14 = icmp eq i8* null, %13
br i1 %14, label %15, label %16
15: ; preds = %12, %4
store i32 0, i32* %5, align 4
br label %52
16: ; preds = %12
%17 = load i8*, i8** %7, align 8
%18 = call i32 @idebug(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = load i8*, i8** %7, align 8
%20 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%21 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %20, i32 0, i32 1
store i8* %19, i8** %21, align 8
%22 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%23 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %22, i32 0, i32 0
store i8* %19, i8** %23, align 8
%24 = load i8*, i8** %8, align 8
%25 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%26 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %25, i32 0, i32 2
store i8* %24, i8** %26, align 8
%27 = load i8*, i8** %8, align 8
%28 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%29 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %28, i32 0, i32 3
store i8* %27, i8** %29, align 8
%30 = load i64, i64* %9, align 8
%31 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%32 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %31, i32 0, i32 4
store i64 %30, i64* %32, align 8
%33 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%34 = call i32 @iscript_parse(%struct.TYPE_4__* %33, i32 0)
%35 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%36 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %35, i32 0, i32 3
%37 = load i8*, i8** %36, align 8
%38 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%39 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %38, i32 0, i32 4
%40 = load i64, i64* %39, align 8
%41 = getelementptr inbounds i8, i8* %37, i64 %40
store i8 0, i8* %41, align 1
%42 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%43 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %42, i32 0, i32 5
%44 = load i8*, i8** %43, align 8
%45 = call i32 @idebug(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %44)
%46 = load %struct.TYPE_4__*, %struct.TYPE_4__** %6, align 8
%47 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %46, i32 0, i32 5
%48 = load i8*, i8** %47, align 8
%49 = icmp ne i8* %48, null
%50 = xor i1 %49, true
%51 = zext i1 %50 to i32
store i32 %51, i32* %5, align 4
br label %52
52: ; preds = %16, %15
%53 = load i32, i32* %5, align 4
ret i32 %53
}
declare dso_local i32 @idebug(i8*, i8*)
declare dso_local i32 @iscript_parse(%struct.TYPE_4__*, i32) | /* BEGIN FUNCTION-DEF iscript_run LOC=UNKNOWN VKEY=4901 */
int iscript_run(IScript *is , char const *in , char *out , size_t___0 out_size )
{
char const *tmp ;
unsigned long _TIG_FN_SxhQ_1_iscript_run_next ;
{
{
_TIG_FN_SxhQ_1_iscript_run_next = 1UL;
}
while (1) {
switch (_TIG_FN_SxhQ_1_iscript_run_next) {
case 1UL: ;
if ((unsigned long )((void *)0) == (unsigned long )is) {
{
_TIG_FN_SxhQ_1_iscript_run_next = 2UL;
}
} else {
{
_TIG_FN_SxhQ_1_iscript_run_next = 0UL;
}
}
break;
case 3UL: ;
return (0);
break;
case 6UL: ;
return (! is->error);
break;
case 5UL:
#line 52
idebug("Parsing: \'%s\'\n", in);
#line 54
tmp = in;
#line 54
is->prog = tmp;
#line 54
is->buf = tmp;
#line 55
is->optr = out;
#line 56
is->outbuf = out;
#line 57
is->outbuf_size = out_size;
#line 59
iscript_parse(is, 0);
#line 61
*(is->outbuf + is->outbuf_size) = (char )'\000';
#line 63
idebug("ERROR: %d\n", is->error);
{
_TIG_FN_SxhQ_1_iscript_run_next = 6UL;
}
break;
case 0UL: ;
if ((unsigned long )((void *)0) == (unsigned long )in) {
{
_TIG_FN_SxhQ_1_iscript_run_next = 3UL;
}
} else {
{
_TIG_FN_SxhQ_1_iscript_run_next = 5UL;
}
}
break;
case 2UL: ;
return (0);
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF iscript_run LOC=UNKNOWN VKEY=4901 */ | 1,929,338,154 | train_synth_compilable |
GraphInit | void GraphInit(Graph* graph, uintptr_t nodeNumber) {
MatrixInit (&(graph->incidenceMatrix), nodeNumber, nodeNumber);
MatrixInit (&(graph->edgeValues), nodeNumber, nodeNumber);
ListInit (&(graph->nodeList), NULL );
uintptr_t i;
for (i = 0; i < nodeNumber; i++) {
ListAppend (&(graph->nodeList), NULL);
}
graph->size = nodeNumber;
} | Flatten+EncodeArithmetic | .global GraphInit
.type GraphInit, %function
GraphInit:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x0, [sp, 24]
add x0, x0, 16
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 12
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListInit
str xzr, [sp, 40]
b .L2
.L3:
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListAppend
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
.L2:
ldr x1, [sp, 40]
ldr x0, [sp, 16]
cmp x1, x0
bcc .L3
ldr x0, [sp, 24]
ldr x1, [sp, 16]
str x1, [x0]
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global GraphInit
.type GraphInit, %function
GraphInit:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
str xzr, [sp, 32]
.L19:
ldr x0, [sp, 32]
cmp x0, 7
beq .L20
ldr x0, [sp, 32]
cmp x0, 7
bhi .L21
ldr x0, [sp, 32]
cmp x0, 6
beq .L10
ldr x0, [sp, 32]
cmp x0, 6
bhi .L21
ldr x0, [sp, 32]
cmp x0, 4
beq .L11
ldr x0, [sp, 32]
cmp x0, 4
bhi .L21
ldr x0, [sp, 32]
cmp x0, 3
beq .L12
ldr x0, [sp, 32]
cmp x0, 3
bhi .L21
ldr x0, [sp, 32]
cmp x0, 0
beq .L13
ldr x0, [sp, 32]
cmp x0, 2
beq .L14
b .L21
.L11:
ldr x0, [sp, 24]
ldr x1, [sp, 16]
str x1, [x0]
mov x0, 7
str x0, [sp, 32]
b .L15
.L12:
ldr x0, [sp, 24]
add x0, x0, 16
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 12
ldr x2, [sp, 16]
ldr x1, [sp, 16]
bl MatrixInit
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListInit
str xzr, [sp, 40]
mov x0, 6
str x0, [sp, 32]
b .L15
.L10:
ldr x0, [sp, 40]
mvn x1, x0
ldr x0, [sp, 16]
and x1, x1, x0
ldr x2, [sp, 40]
ldr x0, [sp, 16]
eor x0, x2, x0
mvn x2, x0
ldr x3, [sp, 40]
ldr x0, [sp, 16]
sub x0, x3, x0
and x0, x2, x0
orr x0, x1, x0
lsr x0, x0, 63
and w0, w0, 1
cmp w0, 0
beq .L16
mov x0, 2
str x0, [sp, 32]
b .L15
.L16:
mov x0, 4
str x0, [sp, 32]
b .L15
.L13:
mov x0, 3
str x0, [sp, 32]
b .L15
.L14:
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 0
bl ListAppend
ldr x0, [sp, 40]
lsl x0, x0, 1
orr x1, x0, 2
ldr x0, [sp, 40]
eor x0, x0, 1
sub x0, x1, x0
str x0, [sp, 40]
mov x0, 6
str x0, [sp, 32]
b .L15
.L21:
nop
.L15:
b .L19
.L20:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size GraphInit, .-GraphInit | %struct.TYPE_3__ = type { i64, i32, i32, i32 }
define dso_local void @GraphInit(%struct.TYPE_3__* %0, i64 %1) {
%3 = alloca %struct.TYPE_3__*, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %3, align 8
store i64 %1, i64* %4, align 8
%6 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%7 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 3
%8 = load i64, i64* %4, align 8
%9 = load i64, i64* %4, align 8
%10 = call i32 @MatrixInit(i32* %7, i64 %8, i64 %9)
%11 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%12 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %11, i32 0, i32 2
%13 = load i64, i64* %4, align 8
%14 = load i64, i64* %4, align 8
%15 = call i32 @MatrixInit(i32* %12, i64 %13, i64 %14)
%16 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%17 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %16, i32 0, i32 1
%18 = call i32 @ListInit(i32* %17, i32* null)
store i64 0, i64* %5, align 8
br label %19
19: ; preds = %27, %2
%20 = load i64, i64* %5, align 8
%21 = load i64, i64* %4, align 8
%22 = icmp ult i64 %20, %21
br i1 %22, label %23, label %30
23: ; preds = %19
%24 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%25 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %24, i32 0, i32 1
%26 = call i32 @ListAppend(i32* %25, i32* null)
br label %27
27: ; preds = %23
%28 = load i64, i64* %5, align 8
%29 = add i64 %28, 1
store i64 %29, i64* %5, align 8
br label %19
30: ; preds = %19
%31 = load i64, i64* %4, align 8
%32 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3, align 8
%33 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %32, i32 0, i32 0
store i64 %31, i64* %33, align 8
ret void
}
declare dso_local i32 @MatrixInit(i32*, i64, i64)
declare dso_local i32 @ListInit(i32*, i32*)
declare dso_local i32 @ListAppend(i32*, i32*) | /* BEGIN FUNCTION-DEF GraphInit LOC=UNKNOWN VKEY=4908 */
void GraphInit(Graph *graph , uintptr_t___0 nodeNumber )
{
uintptr_t___0 i ;
unsigned long _TIG_FN_1HYS_1_GraphInit_next ;
{
_TIG_FN_1HYS_1_GraphInit_next = 0UL;
while (1) {
switch (_TIG_FN_1HYS_1_GraphInit_next) {
case 4UL:
#line 56 "/tmp/forklift_obfu_a805jst9/input.c"
graph->size = nodeNumber;
_TIG_FN_1HYS_1_GraphInit_next = 7UL;
break;
case 3UL:
{
#line 49
MatrixInit(& graph->incidenceMatrix, nodeNumber, nodeNumber);
#line 50
MatrixInit(& graph->edgeValues, nodeNumber, nodeNumber);
#line 51
ListInit(& graph->nodeList, (int *)((void *)0));
#line 53
i = (uintptr_t___0 )0;
}
_TIG_FN_1HYS_1_GraphInit_next = 6UL;
break;
case 6UL: ;
if ((int )((((~ i & nodeNumber) | (~ (i ^ nodeNumber) & (i - nodeNumber))) >> 63UL) & 1UL)) {
_TIG_FN_1HYS_1_GraphInit_next = 2UL;
} else {
_TIG_FN_1HYS_1_GraphInit_next = 4UL;
}
break;
case 0UL: ;
_TIG_FN_1HYS_1_GraphInit_next = 3UL;
break;
case 7UL: ;
return;
break;
case 2UL:
{
#line 54
ListAppend(& graph->nodeList, (int *)((void *)0));
#line 53
i = ((i | 1UL) << 1UL) - (i ^ 1UL);
}
_TIG_FN_1HYS_1_GraphInit_next = 6UL;
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF GraphInit LOC=UNKNOWN VKEY=4908 */ | 1,461,364,854 | train_synth_compilable |
scene_getwidth | static uint32_t scene_getwidth(void *data)
{
obs_scene_t *scene = data;
return scene->custom_size ? scene->cx : obs->video.base_width;
} | Flatten | .global scene_getwidth
.type scene_getwidth, %function
scene_getwidth:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
ldr x0, [sp, 8]
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
cmp x0, 0
beq .L2
ldr x0, [sp, 24]
ldr w0, [x0]
b .L4
.L2:
adrp x0, :got:obs
ldr x0, [x0, #:got_lo12:obs]
ldr x0, [x0]
ldr w0, [x0]
.L4:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global scene_getwidth
.type scene_getwidth, %function
scene_getwidth:
.LFB0:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 8]
mov x0, 3
str x0, [sp, 24]
.L12:
ldr x0, [sp, 24]
cmp x0, 4
beq .L2
ldr x0, [sp, 24]
cmp x0, 4
bhi .L14
ldr x0, [sp, 24]
cmp x0, 3
beq .L4
ldr x0, [sp, 24]
cmp x0, 3
bhi .L14
ldr x0, [sp, 24]
cmp x0, 2
beq .L5
ldr x0, [sp, 24]
cmp x0, 2
bhi .L14
ldr x0, [sp, 24]
cmp x0, 0
beq .L6
ldr x0, [sp, 24]
cmp x0, 1
beq .L7
b .L14
.L2:
ldr x0, [sp, 40]
ldr x0, [x0, 8]
cmp x0, 0
beq .L8
mov x0, 1
str x0, [sp, 24]
b .L10
.L8:
mov x0, 2
str x0, [sp, 24]
b .L10
.L7:
ldr x0, [sp, 40]
ldr w0, [x0]
str w0, [sp, 36]
str xzr, [sp, 24]
b .L10
.L4:
ldr x0, [sp, 8]
str x0, [sp, 40]
mov x0, 4
str x0, [sp, 24]
b .L10
.L6:
ldr w0, [sp, 36]
b .L13
.L5:
adrp x0, obs
add x0, x0, :lo12:obs
ldr x0, [x0]
ldr w0, [x0]
str w0, [sp, 36]
str xzr, [sp, 24]
b .L10
.L14:
nop
.L10:
b .L12
.L13:
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size scene_getwidth, .-scene_getwidth | %struct.TYPE_6__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i32 }
%struct.TYPE_5__ = type { i32, i64 }
@obs = external dso_local global %struct.TYPE_6__*, align 8
define dso_local i32 @scene_getwidth(i8* %0) {
%2 = alloca i8*, align 8
%3 = alloca %struct.TYPE_5__*, align 8
store i8* %0, i8** %2, align 8
%4 = load i8*, i8** %2, align 8
%5 = bitcast i8* %4 to %struct.TYPE_5__*
store %struct.TYPE_5__* %5, %struct.TYPE_5__** %3, align 8
%6 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%7 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %6, i32 0, i32 1
%8 = load i64, i64* %7, align 8
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%12 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %11, i32 0, i32 0
%13 = load i32, i32* %12, align 8
br label %19
14: ; preds = %1
%15 = load %struct.TYPE_6__*, %struct.TYPE_6__** @obs, align 8
%16 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %15, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %16, i32 0, i32 0
%18 = load i32, i32* %17, align 4
br label %19
19: ; preds = %14, %10
%20 = phi i32 [ %13, %10 ], [ %18, %14 ]
ret i32 %20
} | /* BEGIN FUNCTION-DEF scene_getwidth LOC=UNKNOWN VKEY=4885 */
static uint32_t___0 scene_getwidth(void *data )
{
obs_scene_t *scene ;
int tmp ;
unsigned long _TIG_FN_zWmh_1_scene_getwidth_next ;
{
{
_TIG_FN_zWmh_1_scene_getwidth_next = 3UL;
}
while (1) {
switch (_TIG_FN_zWmh_1_scene_getwidth_next) {
case 4UL: ;
if (scene->custom_size) {
{
_TIG_FN_zWmh_1_scene_getwidth_next = 1UL;
}
} else {
{
_TIG_FN_zWmh_1_scene_getwidth_next = 2UL;
}
}
break;
case 1UL:
#line 53 "/tmp/forklift_obfu_ziinye50/input.c"
tmp = scene->cx;
{
_TIG_FN_zWmh_1_scene_getwidth_next = 0UL;
}
break;
case 3UL:
#line 52
scene = (obs_scene_t *)data;
{
_TIG_FN_zWmh_1_scene_getwidth_next = 4UL;
}
break;
case 0UL: ;
return (tmp);
break;
case 2UL:
#line 53
tmp = obs->video.base_width;
{
_TIG_FN_zWmh_1_scene_getwidth_next = 0UL;
}
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF scene_getwidth LOC=UNKNOWN VKEY=4885 */ | 1,445,662,585 | train_synth_compilable |
arityImpl_1011 | Value *arityImpl_1011(List *closures, Value *arg0) {
Value *rslt0 = protoFnImpl_262(empty_list, arg0);
List *varArgs1 = empty_list;
incRef((Value *)rslt0);
varArgs1 = (List *)listCons((Value *)rslt0, varArgs1);
Value *rslt2 = arityImpl_248(empty_list, (Value *)varArgs1);
dec_and_free((Value *)varArgs1);
incRef(rslt2);
dec_and_free(rslt0);
dec_and_free(rslt2);
return(rslt2);
} | Flatten | .global arityImpl_1011
.type arityImpl_1011, %function
arityImpl_1011:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, :got:empty_list
ldr x0, [x0, #:got_lo12:empty_list]
ldr x0, [x0]
ldr x1, [sp, 16]
bl protoFnImpl_262
str x0, [sp, 40]
adrp x0, :got:empty_list
ldr x0, [x0, #:got_lo12:empty_list]
ldr x0, [x0]
str x0, [sp, 48]
ldr x0, [sp, 40]
bl incRef
ldr x1, [sp, 48]
ldr x0, [sp, 40]
bl listCons
str x0, [sp, 48]
adrp x0, :got:empty_list
ldr x0, [x0, #:got_lo12:empty_list]
ldr x0, [x0]
ldr x1, [sp, 48]
bl arityImpl_248
str x0, [sp, 56]
ldr x0, [sp, 48]
bl dec_and_free
ldr x0, [sp, 56]
bl incRef
ldr x0, [sp, 40]
bl dec_and_free
ldr x0, [sp, 56]
bl dec_and_free
ldr x0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global arityImpl_1011
.type arityImpl_1011, %function
arityImpl_1011:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
str xzr, [sp, 80]
.L7:
ldr x0, [sp, 80]
cmp x0, 2
beq .L2
ldr x0, [sp, 80]
cmp x0, 2
bhi .L9
ldr x0, [sp, 80]
cmp x0, 0
beq .L4
ldr x0, [sp, 80]
cmp x0, 1
bne .L9
adrp x0, empty_list
add x0, x0, :lo12:empty_list
ldr x0, [x0]
ldr x1, [sp, 16]
bl protoFnImpl_262
str x0, [sp, 72]
ldr x0, [sp, 72]
str x0, [sp, 64]
adrp x0, empty_list
add x0, x0, :lo12:empty_list
ldr x0, [x0]
str x0, [sp, 56]
ldr x0, [sp, 64]
bl incRef
ldr x1, [sp, 56]
ldr x0, [sp, 64]
bl listCons
str x0, [sp, 48]
ldr x0, [sp, 48]
str x0, [sp, 56]
adrp x0, empty_list
add x0, x0, :lo12:empty_list
ldr x0, [x0]
ldr x1, [sp, 56]
bl arityImpl_248
str x0, [sp, 40]
ldr x0, [sp, 40]
str x0, [sp, 88]
ldr x0, [sp, 56]
bl dec_and_free
ldr x0, [sp, 88]
bl incRef
ldr x0, [sp, 64]
bl dec_and_free
ldr x0, [sp, 88]
bl dec_and_free
mov x0, 2
str x0, [sp, 80]
b .L5
.L4:
mov x0, 1
str x0, [sp, 80]
b .L5
.L2:
ldr x0, [sp, 88]
b .L8
.L9:
nop
.L5:
b .L7
.L8:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size arityImpl_1011, .-arityImpl_1011 | @empty_list = external dso_local global i32*, align 8
define dso_local i32* @arityImpl_1011(i32* %0, i32* %1) {
%3 = alloca i32*, align 8
%4 = alloca i32*, align 8
%5 = alloca i32*, align 8
%6 = alloca i32*, align 8
%7 = alloca i32*, align 8
store i32* %0, i32** %3, align 8
store i32* %1, i32** %4, align 8
%8 = load i32*, i32** @empty_list, align 8
%9 = load i32*, i32** %4, align 8
%10 = call i32* @protoFnImpl_262(i32* %8, i32* %9)
store i32* %10, i32** %5, align 8
%11 = load i32*, i32** @empty_list, align 8
store i32* %11, i32** %6, align 8
%12 = load i32*, i32** %5, align 8
%13 = call i32 @incRef(i32* %12)
%14 = load i32*, i32** %5, align 8
%15 = load i32*, i32** %6, align 8
%16 = call i64 @listCons(i32* %14, i32* %15)
%17 = inttoptr i64 %16 to i32*
store i32* %17, i32** %6, align 8
%18 = load i32*, i32** @empty_list, align 8
%19 = load i32*, i32** %6, align 8
%20 = call i32* @arityImpl_248(i32* %18, i32* %19)
store i32* %20, i32** %7, align 8
%21 = load i32*, i32** %6, align 8
%22 = call i32 @dec_and_free(i32* %21)
%23 = load i32*, i32** %7, align 8
%24 = call i32 @incRef(i32* %23)
%25 = load i32*, i32** %5, align 8
%26 = call i32 @dec_and_free(i32* %25)
%27 = load i32*, i32** %7, align 8
%28 = call i32 @dec_and_free(i32* %27)
%29 = load i32*, i32** %7, align 8
ret i32* %29
}
declare dso_local i32* @protoFnImpl_262(i32*, i32*)
declare dso_local i32 @incRef(i32*)
declare dso_local i64 @listCons(i32*, i32*)
declare dso_local i32* @arityImpl_248(i32*, i32*)
declare dso_local i32 @dec_and_free(i32*) | /* BEGIN FUNCTION-DEF arityImpl_1011 LOC=UNKNOWN VKEY=4915 */
Value *arityImpl_1011(List *closures , Value *arg0 )
{
Value *rslt0 ;
int *tmp ;
List *varArgs1 ;
scalar_t__ tmp___0 ;
Value *rslt2 ;
int *tmp___1 ;
unsigned long _TIG_FN_pZ1P_1_arityImpl_1011_next ;
{
{
_TIG_FN_pZ1P_1_arityImpl_1011_next = 0UL;
}
while (1) {
switch (_TIG_FN_pZ1P_1_arityImpl_1011_next) {
case 1UL:
#line 50 "/tmp/forklift_obfu_xraontif/input.c"
tmp = protoFnImpl_262(empty_list, arg0);
#line 50
rslt0 = tmp;
#line 51
varArgs1 = empty_list;
#line 52
incRef(rslt0);
#line 53
tmp___0 = listCons(rslt0, varArgs1);
#line 53
varArgs1 = (List *)tmp___0;
#line 54
tmp___1 = arityImpl_248(empty_list, varArgs1);
#line 54
rslt2 = tmp___1;
#line 55
dec_and_free(varArgs1);
#line 56
incRef(rslt2);
#line 57
dec_and_free(rslt0);
#line 58
dec_and_free(rslt2);
{
_TIG_FN_pZ1P_1_arityImpl_1011_next = 2UL;
}
break;
case 0UL: ;
{
_TIG_FN_pZ1P_1_arityImpl_1011_next = 1UL;
}
break;
case 2UL: ;
return (rslt2);
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF arityImpl_1011 LOC=UNKNOWN VKEY=4915 */ | 1,193,448,329 | train_synth_compilable |
arityImpl_1011 | Value *arityImpl_1011(List *closures, Value *arg0) {
Value *rslt0 = protoFnImpl_262(empty_list, arg0);
List *varArgs1 = empty_list;
incRef((Value *)rslt0);
varArgs1 = (List *)listCons((Value *)rslt0, varArgs1);
Value *rslt2 = arityImpl_248(empty_list, (Value *)varArgs1);
dec_and_free((Value *)varArgs1);
incRef(rslt2);
dec_and_free(rslt0);
dec_and_free(rslt2);
return(rslt2);
} | EncodeArithmetic | .global arityImpl_1011
.type arityImpl_1011, %function
arityImpl_1011:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, :got:empty_list
ldr x0, [x0, #:got_lo12:empty_list]
ldr x0, [x0]
ldr x1, [sp, 16]
bl protoFnImpl_262
str x0, [sp, 40]
adrp x0, :got:empty_list
ldr x0, [x0, #:got_lo12:empty_list]
ldr x0, [x0]
str x0, [sp, 48]
ldr x0, [sp, 40]
bl incRef
ldr x1, [sp, 48]
ldr x0, [sp, 40]
bl listCons
str x0, [sp, 48]
adrp x0, :got:empty_list
ldr x0, [x0, #:got_lo12:empty_list]
ldr x0, [x0]
ldr x1, [sp, 48]
bl arityImpl_248
str x0, [sp, 56]
ldr x0, [sp, 48]
bl dec_and_free
ldr x0, [sp, 56]
bl incRef
ldr x0, [sp, 40]
bl dec_and_free
ldr x0, [sp, 56]
bl dec_and_free
ldr x0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global arityImpl_1011
.type arityImpl_1011, %function
arityImpl_1011:
.LFB5:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, empty_list
add x0, x0, :lo12:empty_list
ldr x0, [x0]
ldr x1, [sp, 16]
bl protoFnImpl_262
str x0, [sp, 72]
ldr x0, [sp, 72]
str x0, [sp, 64]
adrp x0, empty_list
add x0, x0, :lo12:empty_list
ldr x0, [x0]
str x0, [sp, 56]
ldr x0, [sp, 64]
bl incRef
ldr x1, [sp, 56]
ldr x0, [sp, 64]
bl listCons
str x0, [sp, 48]
ldr x0, [sp, 48]
str x0, [sp, 56]
adrp x0, empty_list
add x0, x0, :lo12:empty_list
ldr x0, [x0]
ldr x1, [sp, 56]
bl arityImpl_248
str x0, [sp, 40]
ldr x0, [sp, 40]
str x0, [sp, 32]
ldr x0, [sp, 56]
bl dec_and_free
ldr x0, [sp, 32]
bl incRef
ldr x0, [sp, 64]
bl dec_and_free
ldr x0, [sp, 32]
bl dec_and_free
ldr x0, [sp, 32]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size arityImpl_1011, .-arityImpl_1011 | @empty_list = external dso_local global i32*, align 8
define dso_local i32* @arityImpl_1011(i32* %0, i32* %1) {
%3 = alloca i32*, align 8
%4 = alloca i32*, align 8
%5 = alloca i32*, align 8
%6 = alloca i32*, align 8
%7 = alloca i32*, align 8
store i32* %0, i32** %3, align 8
store i32* %1, i32** %4, align 8
%8 = load i32*, i32** @empty_list, align 8
%9 = load i32*, i32** %4, align 8
%10 = call i32* @protoFnImpl_262(i32* %8, i32* %9)
store i32* %10, i32** %5, align 8
%11 = load i32*, i32** @empty_list, align 8
store i32* %11, i32** %6, align 8
%12 = load i32*, i32** %5, align 8
%13 = call i32 @incRef(i32* %12)
%14 = load i32*, i32** %5, align 8
%15 = load i32*, i32** %6, align 8
%16 = call i64 @listCons(i32* %14, i32* %15)
%17 = inttoptr i64 %16 to i32*
store i32* %17, i32** %6, align 8
%18 = load i32*, i32** @empty_list, align 8
%19 = load i32*, i32** %6, align 8
%20 = call i32* @arityImpl_248(i32* %18, i32* %19)
store i32* %20, i32** %7, align 8
%21 = load i32*, i32** %6, align 8
%22 = call i32 @dec_and_free(i32* %21)
%23 = load i32*, i32** %7, align 8
%24 = call i32 @incRef(i32* %23)
%25 = load i32*, i32** %5, align 8
%26 = call i32 @dec_and_free(i32* %25)
%27 = load i32*, i32** %7, align 8
%28 = call i32 @dec_and_free(i32* %27)
%29 = load i32*, i32** %7, align 8
ret i32* %29
}
declare dso_local i32* @protoFnImpl_262(i32*, i32*)
declare dso_local i32 @incRef(i32*)
declare dso_local i64 @listCons(i32*, i32*)
declare dso_local i32* @arityImpl_248(i32*, i32*)
declare dso_local i32 @dec_and_free(i32*) | /* BEGIN FUNCTION-DEF arityImpl_1011 LOC=UNKNOWN VKEY=4915 */
Value *arityImpl_1011(List *closures , Value *arg0 )
{
Value *rslt0 ;
int *tmp ;
List *varArgs1 ;
scalar_t__ tmp___0 ;
Value *rslt2 ;
int *tmp___1 ;
{
{
#line 50 "/tmp/forklift_obfu_i79elnhj/input.c"
tmp = protoFnImpl_262(empty_list, arg0);
#line 50
rslt0 = tmp;
#line 51
varArgs1 = empty_list;
#line 52
incRef(rslt0);
#line 53
tmp___0 = listCons(rslt0, varArgs1);
#line 53
varArgs1 = (List *)tmp___0;
#line 54
tmp___1 = arityImpl_248(empty_list, varArgs1);
#line 54
rslt2 = tmp___1;
#line 55
dec_and_free(varArgs1);
#line 56
incRef(rslt2);
#line 57
dec_and_free(rslt0);
#line 58
dec_and_free(rslt2);
}
#line 59
return (rslt2);
}
}
/* END FUNCTION-DEF arityImpl_1011 LOC=UNKNOWN VKEY=4915 */ | 667,779,376 | train_synth_compilable |
scene_getwidth | static uint32_t scene_getwidth(void *data)
{
obs_scene_t *scene = data;
return scene->custom_size ? scene->cx : obs->video.base_width;
} | EncodeArithmetic | .global scene_getwidth
.type scene_getwidth, %function
scene_getwidth:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
ldr x0, [sp, 8]
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
cmp x0, 0
beq .L2
ldr x0, [sp, 24]
ldr w0, [x0]
b .L4
.L2:
adrp x0, :got:obs
ldr x0, [x0, #:got_lo12:obs]
ldr x0, [x0]
ldr w0, [x0]
.L4:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global scene_getwidth
.type scene_getwidth, %function
scene_getwidth:
.LFB2:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
ldr x0, [sp, 8]
str x0, [sp, 16]
ldr x0, [sp, 16]
ldr x0, [x0, 8]
cmp x0, 0
beq .L2
ldr x0, [sp, 16]
ldr w0, [x0]
str w0, [sp, 28]
b .L3
.L2:
adrp x0, obs
add x0, x0, :lo12:obs
ldr x0, [x0]
ldr w0, [x0]
str w0, [sp, 28]
.L3:
ldr w0, [sp, 28]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size scene_getwidth, .-scene_getwidth | %struct.TYPE_6__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i32 }
%struct.TYPE_5__ = type { i32, i64 }
@obs = external dso_local global %struct.TYPE_6__*, align 8
define dso_local i32 @scene_getwidth(i8* %0) {
%2 = alloca i8*, align 8
%3 = alloca %struct.TYPE_5__*, align 8
store i8* %0, i8** %2, align 8
%4 = load i8*, i8** %2, align 8
%5 = bitcast i8* %4 to %struct.TYPE_5__*
store %struct.TYPE_5__* %5, %struct.TYPE_5__** %3, align 8
%6 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%7 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %6, i32 0, i32 1
%8 = load i64, i64* %7, align 8
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%12 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %11, i32 0, i32 0
%13 = load i32, i32* %12, align 8
br label %19
14: ; preds = %1
%15 = load %struct.TYPE_6__*, %struct.TYPE_6__** @obs, align 8
%16 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %15, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %16, i32 0, i32 0
%18 = load i32, i32* %17, align 4
br label %19
19: ; preds = %14, %10
%20 = phi i32 [ %13, %10 ], [ %18, %14 ]
ret i32 %20
} | /* BEGIN FUNCTION-DEF scene_getwidth LOC=UNKNOWN VKEY=4885 */
static uint32_t___0 scene_getwidth(void *data )
{
obs_scene_t *scene ;
int tmp ;
{
#line 52 "/tmp/forklift_obfu_27ikrbbx/input.c"
scene = (obs_scene_t *)data;
#line 53
if (scene->custom_size) {
#line 53
tmp = scene->cx;
} else {
#line 53
tmp = obs->video.base_width;
}
#line 53
return (tmp);
}
}
/* END FUNCTION-DEF scene_getwidth LOC=UNKNOWN VKEY=4885 */ | 438,989,805 | train_synth_compilable |
scene_getwidth | static uint32_t scene_getwidth(void *data)
{
obs_scene_t *scene = data;
return scene->custom_size ? scene->cx : obs->video.base_width;
} | Flatten+EncodeArithmetic | .global scene_getwidth
.type scene_getwidth, %function
scene_getwidth:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
ldr x0, [sp, 8]
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
cmp x0, 0
beq .L2
ldr x0, [sp, 24]
ldr w0, [x0]
b .L4
.L2:
adrp x0, :got:obs
ldr x0, [x0, #:got_lo12:obs]
ldr x0, [x0]
ldr w0, [x0]
.L4:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global scene_getwidth
.type scene_getwidth, %function
scene_getwidth:
.LFB7:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 8]
mov x0, 3
str x0, [sp, 24]
.L19:
ldr x0, [sp, 24]
cmp x0, 4
beq .L9
ldr x0, [sp, 24]
cmp x0, 4
bhi .L21
ldr x0, [sp, 24]
cmp x0, 3
beq .L11
ldr x0, [sp, 24]
cmp x0, 3
bhi .L21
ldr x0, [sp, 24]
cmp x0, 2
beq .L12
ldr x0, [sp, 24]
cmp x0, 2
bhi .L21
ldr x0, [sp, 24]
cmp x0, 0
beq .L13
ldr x0, [sp, 24]
cmp x0, 1
beq .L14
b .L21
.L9:
ldr x0, [sp, 40]
ldr x0, [x0, 8]
cmp x0, 0
beq .L15
mov x0, 1
str x0, [sp, 24]
b .L17
.L15:
mov x0, 2
str x0, [sp, 24]
b .L17
.L14:
ldr x0, [sp, 40]
ldr w0, [x0]
str w0, [sp, 36]
str xzr, [sp, 24]
b .L17
.L11:
ldr x0, [sp, 8]
str x0, [sp, 40]
mov x0, 4
str x0, [sp, 24]
b .L17
.L13:
ldr w0, [sp, 36]
b .L20
.L12:
adrp x0, obs
add x0, x0, :lo12:obs
ldr x0, [x0]
ldr w0, [x0]
str w0, [sp, 36]
str xzr, [sp, 24]
b .L17
.L21:
nop
.L17:
b .L19
.L20:
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size scene_getwidth, .-scene_getwidth | %struct.TYPE_6__ = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i32 }
%struct.TYPE_5__ = type { i32, i64 }
@obs = external dso_local global %struct.TYPE_6__*, align 8
define dso_local i32 @scene_getwidth(i8* %0) {
%2 = alloca i8*, align 8
%3 = alloca %struct.TYPE_5__*, align 8
store i8* %0, i8** %2, align 8
%4 = load i8*, i8** %2, align 8
%5 = bitcast i8* %4 to %struct.TYPE_5__*
store %struct.TYPE_5__* %5, %struct.TYPE_5__** %3, align 8
%6 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%7 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %6, i32 0, i32 1
%8 = load i64, i64* %7, align 8
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load %struct.TYPE_5__*, %struct.TYPE_5__** %3, align 8
%12 = getelementptr inbounds %struct.TYPE_5__, %struct.TYPE_5__* %11, i32 0, i32 0
%13 = load i32, i32* %12, align 8
br label %19
14: ; preds = %1
%15 = load %struct.TYPE_6__*, %struct.TYPE_6__** @obs, align 8
%16 = getelementptr inbounds %struct.TYPE_6__, %struct.TYPE_6__* %15, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %16, i32 0, i32 0
%18 = load i32, i32* %17, align 4
br label %19
19: ; preds = %14, %10
%20 = phi i32 [ %13, %10 ], [ %18, %14 ]
ret i32 %20
} | /* BEGIN FUNCTION-DEF scene_getwidth LOC=UNKNOWN VKEY=4891 */
static uint32_t___0 scene_getwidth(void *data )
{
obs_scene_t *scene ;
int tmp ;
unsigned long _TIG_FN_Fe4d_1_scene_getwidth_next ;
{
_TIG_FN_Fe4d_1_scene_getwidth_next = 3UL;
while (1) {
switch (_TIG_FN_Fe4d_1_scene_getwidth_next) {
case 4UL: ;
if (scene->custom_size) {
_TIG_FN_Fe4d_1_scene_getwidth_next = 1UL;
} else {
_TIG_FN_Fe4d_1_scene_getwidth_next = 2UL;
}
break;
case 1UL:
#line 53 "/tmp/forklift_obfu_2kc8aicb/input.c"
tmp = scene->cx;
_TIG_FN_Fe4d_1_scene_getwidth_next = 0UL;
break;
case 3UL:
#line 52
scene = (obs_scene_t *)data;
_TIG_FN_Fe4d_1_scene_getwidth_next = 4UL;
break;
case 0UL: ;
return (tmp);
break;
case 2UL:
#line 53
tmp = obs->video.base_width;
_TIG_FN_Fe4d_1_scene_getwidth_next = 0UL;
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF scene_getwidth LOC=UNKNOWN VKEY=4891 */ | 398,340,369 | train_synth_compilable |
arityImpl_1011 | Value *arityImpl_1011(List *closures, Value *arg0) {
Value *rslt0 = protoFnImpl_262(empty_list, arg0);
List *varArgs1 = empty_list;
incRef((Value *)rslt0);
varArgs1 = (List *)listCons((Value *)rslt0, varArgs1);
Value *rslt2 = arityImpl_248(empty_list, (Value *)varArgs1);
dec_and_free((Value *)varArgs1);
incRef(rslt2);
dec_and_free(rslt0);
dec_and_free(rslt2);
return(rslt2);
} | Flatten+EncodeArithmetic | .global arityImpl_1011
.type arityImpl_1011, %function
arityImpl_1011:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, :got:empty_list
ldr x0, [x0, #:got_lo12:empty_list]
ldr x0, [x0]
ldr x1, [sp, 16]
bl protoFnImpl_262
str x0, [sp, 40]
adrp x0, :got:empty_list
ldr x0, [x0, #:got_lo12:empty_list]
ldr x0, [x0]
str x0, [sp, 48]
ldr x0, [sp, 40]
bl incRef
ldr x1, [sp, 48]
ldr x0, [sp, 40]
bl listCons
str x0, [sp, 48]
adrp x0, :got:empty_list
ldr x0, [x0, #:got_lo12:empty_list]
ldr x0, [x0]
ldr x1, [sp, 48]
bl arityImpl_248
str x0, [sp, 56]
ldr x0, [sp, 48]
bl dec_and_free
ldr x0, [sp, 56]
bl incRef
ldr x0, [sp, 40]
bl dec_and_free
ldr x0, [sp, 56]
bl dec_and_free
ldr x0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global arityImpl_1011
.type arityImpl_1011, %function
arityImpl_1011:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
str xzr, [sp, 80]
.L7:
ldr x0, [sp, 80]
cmp x0, 2
beq .L2
ldr x0, [sp, 80]
cmp x0, 2
bhi .L9
ldr x0, [sp, 80]
cmp x0, 0
beq .L4
ldr x0, [sp, 80]
cmp x0, 1
bne .L9
adrp x0, empty_list
add x0, x0, :lo12:empty_list
ldr x0, [x0]
ldr x1, [sp, 16]
bl protoFnImpl_262
str x0, [sp, 72]
ldr x0, [sp, 72]
str x0, [sp, 64]
adrp x0, empty_list
add x0, x0, :lo12:empty_list
ldr x0, [x0]
str x0, [sp, 56]
ldr x0, [sp, 64]
bl incRef
ldr x1, [sp, 56]
ldr x0, [sp, 64]
bl listCons
str x0, [sp, 48]
ldr x0, [sp, 48]
str x0, [sp, 56]
adrp x0, empty_list
add x0, x0, :lo12:empty_list
ldr x0, [x0]
ldr x1, [sp, 56]
bl arityImpl_248
str x0, [sp, 40]
ldr x0, [sp, 40]
str x0, [sp, 88]
ldr x0, [sp, 56]
bl dec_and_free
ldr x0, [sp, 88]
bl incRef
ldr x0, [sp, 64]
bl dec_and_free
ldr x0, [sp, 88]
bl dec_and_free
mov x0, 2
str x0, [sp, 80]
b .L5
.L4:
mov x0, 1
str x0, [sp, 80]
b .L5
.L2:
ldr x0, [sp, 88]
b .L8
.L9:
nop
.L5:
b .L7
.L8:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size arityImpl_1011, .-arityImpl_1011 | @empty_list = external dso_local global i32*, align 8
define dso_local i32* @arityImpl_1011(i32* %0, i32* %1) {
%3 = alloca i32*, align 8
%4 = alloca i32*, align 8
%5 = alloca i32*, align 8
%6 = alloca i32*, align 8
%7 = alloca i32*, align 8
store i32* %0, i32** %3, align 8
store i32* %1, i32** %4, align 8
%8 = load i32*, i32** @empty_list, align 8
%9 = load i32*, i32** %4, align 8
%10 = call i32* @protoFnImpl_262(i32* %8, i32* %9)
store i32* %10, i32** %5, align 8
%11 = load i32*, i32** @empty_list, align 8
store i32* %11, i32** %6, align 8
%12 = load i32*, i32** %5, align 8
%13 = call i32 @incRef(i32* %12)
%14 = load i32*, i32** %5, align 8
%15 = load i32*, i32** %6, align 8
%16 = call i64 @listCons(i32* %14, i32* %15)
%17 = inttoptr i64 %16 to i32*
store i32* %17, i32** %6, align 8
%18 = load i32*, i32** @empty_list, align 8
%19 = load i32*, i32** %6, align 8
%20 = call i32* @arityImpl_248(i32* %18, i32* %19)
store i32* %20, i32** %7, align 8
%21 = load i32*, i32** %6, align 8
%22 = call i32 @dec_and_free(i32* %21)
%23 = load i32*, i32** %7, align 8
%24 = call i32 @incRef(i32* %23)
%25 = load i32*, i32** %5, align 8
%26 = call i32 @dec_and_free(i32* %25)
%27 = load i32*, i32** %7, align 8
%28 = call i32 @dec_and_free(i32* %27)
%29 = load i32*, i32** %7, align 8
ret i32* %29
}
declare dso_local i32* @protoFnImpl_262(i32*, i32*)
declare dso_local i32 @incRef(i32*)
declare dso_local i64 @listCons(i32*, i32*)
declare dso_local i32* @arityImpl_248(i32*, i32*)
declare dso_local i32 @dec_and_free(i32*) | /* BEGIN FUNCTION-DEF arityImpl_1011 LOC=UNKNOWN VKEY=4926 */
Value *arityImpl_1011(List *closures , Value *arg0 )
{
Value *rslt0 ;
int *tmp ;
List *varArgs1 ;
scalar_t__ tmp___0 ;
Value *rslt2 ;
int *tmp___1 ;
unsigned long _TIG_FN_vWgu_1_arityImpl_1011_next ;
{
_TIG_FN_vWgu_1_arityImpl_1011_next = 0UL;
while (1) {
switch (_TIG_FN_vWgu_1_arityImpl_1011_next) {
case 1UL:
{
#line 50 "/tmp/forklift_obfu_ugplvmfx/input.c"
tmp = protoFnImpl_262(empty_list, arg0);
#line 50
rslt0 = tmp;
#line 51
varArgs1 = empty_list;
#line 52
incRef(rslt0);
#line 53
tmp___0 = listCons(rslt0, varArgs1);
#line 53
varArgs1 = (List *)tmp___0;
#line 54
tmp___1 = arityImpl_248(empty_list, varArgs1);
#line 54
rslt2 = tmp___1;
#line 55
dec_and_free(varArgs1);
#line 56
incRef(rslt2);
#line 57
dec_and_free(rslt0);
#line 58
dec_and_free(rslt2);
}
_TIG_FN_vWgu_1_arityImpl_1011_next = 2UL;
break;
case 0UL: ;
_TIG_FN_vWgu_1_arityImpl_1011_next = 1UL;
break;
case 2UL: ;
return (rslt2);
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF arityImpl_1011 LOC=UNKNOWN VKEY=4926 */ | 924,765,563 | train_synth_compilable |
pwr_fbif_transcfg_mem_type_physical_f | static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void)
{
return 0x4;
} | Flatten | .global pwr_fbif_transcfg_mem_type_physical_f
.type pwr_fbif_transcfg_mem_type_physical_f, %function
pwr_fbif_transcfg_mem_type_physical_f:
.LFB0:
.cfi_startproc
mov w0, 4
ret
.cfi_endproc
| .global pwr_fbif_transcfg_mem_type_physical_f
.type pwr_fbif_transcfg_mem_type_physical_f, %function
pwr_fbif_transcfg_mem_type_physical_f:
.LFB5:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str xzr, [sp, 8]
.L10:
ldr x0, [sp, 8]
cmp x0, 0
bne .L13
mov w0, 4
b .L12
.L13:
nop
b .L10
.L12:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size pwr_fbif_transcfg_mem_type_physical_f, .-pwr_fbif_transcfg_mem_type_physical_f | define dso_local i32 @pwr_fbif_transcfg_mem_type_physical_f() {
ret i32 4
} | /* BEGIN FUNCTION-DEF pwr_fbif_transcfg_mem_type_physical_f LOC=UNKNOWN VKEY=4879 */
u32 pwr_fbif_transcfg_mem_type_physical_f(void)
{
unsigned long _TIG_FN_wJWq_1_pwr_fbif_transcfg_mem_type_physical_f_next ;
{
{
_TIG_FN_wJWq_1_pwr_fbif_transcfg_mem_type_physical_f_next = 0UL;
}
while (1) {
switch (_TIG_FN_wJWq_1_pwr_fbif_transcfg_mem_type_physical_f_next) {
case 0UL: ;
return (0x4);
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF pwr_fbif_transcfg_mem_type_physical_f LOC=UNKNOWN VKEY=4879 */ | 1,973,214,822 | train_synth_compilable |
pwr_fbif_transcfg_mem_type_physical_f | static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void)
{
return 0x4;
} | EncodeArithmetic | .global pwr_fbif_transcfg_mem_type_physical_f
.type pwr_fbif_transcfg_mem_type_physical_f, %function
pwr_fbif_transcfg_mem_type_physical_f:
.LFB0:
.cfi_startproc
mov w0, 4
ret
.cfi_endproc
| .global pwr_fbif_transcfg_mem_type_physical_f
.type pwr_fbif_transcfg_mem_type_physical_f, %function
pwr_fbif_transcfg_mem_type_physical_f:
.LFB5:
.cfi_startproc
mov w0, 4
ret
.cfi_endproc
.LFE5:
.size pwr_fbif_transcfg_mem_type_physical_f, .-pwr_fbif_transcfg_mem_type_physical_f | define dso_local i32 @pwr_fbif_transcfg_mem_type_physical_f() {
ret i32 4
} | /* BEGIN FUNCTION-DEF pwr_fbif_transcfg_mem_type_physical_f LOC=UNKNOWN VKEY=4879 */
u32 pwr_fbif_transcfg_mem_type_physical_f(void)
{
{
#line 44 "/tmp/forklift_obfu_57mfqhwk/input.c"
return (0x4);
}
}
/* END FUNCTION-DEF pwr_fbif_transcfg_mem_type_physical_f LOC=UNKNOWN VKEY=4879 */ | 536,124,280 | train_synth_compilable |
pwr_fbif_transcfg_mem_type_physical_f | static inline u32 pwr_fbif_transcfg_mem_type_physical_f(void)
{
return 0x4;
} | Flatten+EncodeArithmetic | .global pwr_fbif_transcfg_mem_type_physical_f
.type pwr_fbif_transcfg_mem_type_physical_f, %function
pwr_fbif_transcfg_mem_type_physical_f:
.LFB0:
.cfi_startproc
mov w0, 4
ret
.cfi_endproc
| .global pwr_fbif_transcfg_mem_type_physical_f
.type pwr_fbif_transcfg_mem_type_physical_f, %function
pwr_fbif_transcfg_mem_type_physical_f:
.LFB4:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str xzr, [sp, 8]
.L10:
ldr x0, [sp, 8]
cmp x0, 0
bne .L13
mov w0, 4
b .L12
.L13:
nop
b .L10
.L12:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size pwr_fbif_transcfg_mem_type_physical_f, .-pwr_fbif_transcfg_mem_type_physical_f | define dso_local i32 @pwr_fbif_transcfg_mem_type_physical_f() {
ret i32 4
} | /* BEGIN FUNCTION-DEF pwr_fbif_transcfg_mem_type_physical_f LOC=UNKNOWN VKEY=4882 */
u32 pwr_fbif_transcfg_mem_type_physical_f(void)
{
unsigned long _TIG_FN_IyHC_1_pwr_fbif_transcfg_mem_type_physical_f_next ;
{
_TIG_FN_IyHC_1_pwr_fbif_transcfg_mem_type_physical_f_next = 0UL;
while (1) {
switch (_TIG_FN_IyHC_1_pwr_fbif_transcfg_mem_type_physical_f_next) {
case 0UL: ;
return (0x4);
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF pwr_fbif_transcfg_mem_type_physical_f LOC=UNKNOWN VKEY=4882 */ | 1,625,792,787 | train_synth_compilable |
VmJsonEncode | static sxi32 VmJsonEncode(
vedis_value *pIn,
json_private_data *pData
){
SyBlob *pOut = pData->pOut;
int nByte;
if( vedis_value_is_null(pIn) ){
SyBlobAppend(pOut, "null", sizeof("null")-1);
}else if( vedis_value_is_bool(pIn) ){
int iBool = vedis_value_to_bool(pIn);
sxu32 iLen;
iLen = iBool ? sizeof("true") : sizeof("false");
SyBlobAppend(pOut, iBool ? "true" : "false", iLen-1);
}else if( vedis_value_is_numeric(pIn) && !vedis_value_is_string(pIn) ){
const char *zNum;
zNum = vedis_value_to_string(pIn, &nByte);
SyBlobAppend(pOut,zNum,nByte);
}else if( vedis_value_is_string(pIn) ){
const char *zIn, *zEnd;
int c;
zIn = vedis_value_to_string(pIn, &nByte);
zEnd = &zIn[nByte];
SyBlobAppend(pOut,"\"", sizeof(char));
for(;;){
if( zIn >= zEnd ){
break;
}
c = zIn[0];
zIn++;
if( c == '"' || c == '\\' ){
SyBlobAppend(pOut,"\\", sizeof(char));
}
SyBlobAppend(pOut,(const char *)&c,sizeof(char));
}
SyBlobAppend(pOut,"\"",sizeof(char));
}else if( vedis_value_is_array(pIn) ){
pData->isFirst = 1;
SyBlobAppend(pOut,"[",sizeof(char));
vedis_array_walk(pIn, VmJsonArrayEncode, pData);
SyBlobAppend(pOut,"]",sizeof(char));
}else{
SyBlobAppend(pOut,"null",sizeof("null")-1);
}
return 0;
} | EncodeArithmetic | .global VmJsonEncode
.type VmJsonEncode, %function
VmJsonEncode:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1,0
ldr x0, [sp, 16]
ldr x0, [x0, 8]
str x0, [sp, 64]
ldr x0, [sp, 24]
bl vedis_value_is_null
cmp x0, 0
beq .L2
mov w2, 4
adrp x0, .LC0
add x1, x0, :lo12:.LC0
ldr x0, [sp, 64]
bl SyBlobAppend
b .L3
.L2:
ldr x0, [sp, 24]
bl vedis_value_is_bool
cmp x0, 0
beq .L4
ldr x0, [sp, 24]
bl vedis_value_to_bool
str w0, [sp, 48]
ldr w0, [sp, 48]
cmp w0, 0
beq .L5
mov w0, 5
b .L6
.L5:
mov w0, 6
.L6:
str w0, [sp, 52]
ldr w0, [sp, 48]
cmp w0, 0
beq .L7
adrp x0, .LC1
add x0, x0, :lo12:.LC1
b .L8
.L7:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
.L8:
ldr w1, [sp, 52]
sub w1, w1, #1
mov w2, w1
mov x1, x0
ldr x0, [sp, 64]
bl SyBlobAppend
b .L3
.L4:
ldr x0, [sp, 24]
bl vedis_value_is_numeric
cmp x0, 0
beq .L9
ldr x0, [sp, 24]
bl vedis_value_is_string
cmp x0, 0
bne .L9
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl vedis_value_to_string
str x0, [sp, 72]
ldr w0, [sp, 40]
mov w2, w0
ldr x1, [sp, 72]
ldr x0, [sp, 64]
bl SyBlobAppend
b .L3
.L9:
ldr x0, [sp, 24]
bl vedis_value_is_string
cmp x0, 0
beq .L10
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl vedis_value_to_string
str x0, [sp, 56]
ldr w0, [sp, 40]
sxtw x0, w0
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 80]
mov w2, 1
adrp x0, .LC3
add x1, x0, :lo12:.LC3
ldr x0, [sp, 64]
bl SyBlobAppend
.L15:
ldr x1, [sp, 56]
ldr x0, [sp, 80]
cmp x1, x0
bcs .L20
ldr x0, [sp, 56]
ldrb w0, [x0]
str w0, [sp, 44]
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
ldr w0, [sp, 44]
cmp w0, 34
beq .L13
ldr w0, [sp, 44]
cmp w0, 92
bne .L14
.L13:
mov w2, 1
adrp x0, .LC4
add x1, x0, :lo12:.LC4
ldr x0, [sp, 64]
bl SyBlobAppend
.L14:
add x0, sp, 44
mov w2, 1
mov x1, x0
ldr x0, [sp, 64]
bl SyBlobAppend
b .L15
.L20:
nop
mov w2, 1
adrp x0, .LC3
add x1, x0, :lo12:.LC3
ldr x0, [sp, 64]
bl SyBlobAppend
b .L3
.L10:
ldr x0, [sp, 24]
bl vedis_value_is_array
cmp x0, 0
beq .L16
ldr x0, [sp, 16]
mov w1, 1
str w1, [x0]
mov w2, 1
adrp x0, .LC5
add x1, x0, :lo12:.LC5
ldr x0, [sp, 64]
bl SyBlobAppend
adrp x0, :got:VmJsonArrayEncode
ldr x0, [x0, #:got_lo12:VmJsonArrayEncode]
ldr w0, [x0]
ldr x2, [sp, 16]
mov w1, w0
ldr x0, [sp, 24]
bl vedis_array_walk
mov w2, 1
adrp x0, .LC6
add x1, x0, :lo12:.LC6
ldr x0, [sp, 64]
bl SyBlobAppend
b .L3
.L16:
mov w2, 4
adrp x0, .LC0
add x1, x0, :lo12:.LC0
ldr x0, [sp, 64]
bl SyBlobAppend
.L3:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x3, [x0]
subs x2, x2, x3
mov x3, 0
beq .L18
bl __stack_chk_fail
.L18:
mov w0, w1
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LC4: .string "\\"
.LC2: .string "false"
.LC3: .string "\""
.LC5: .string "["
.LC6: .string "]"
.LC1: .string "true"
.LC0: .string "null"
| .global VmJsonEncode
.type VmJsonEncode, %function
VmJsonEncode:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -160]!
.cfi_def_cfa_offset 160
.cfi_offset 29, -160
.cfi_offset 30, -152
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x0, [sp, 16]
ldr x0, [x0, 8]
str x0, [sp, 128]
ldr x0, [sp, 24]
bl vedis_value_is_null
str x0, [sp, 120]
ldr x0, [sp, 120]
cmp x0, 0
beq .L2
mov w2, 4
adrp x0, .LC0
add x1, x0, :lo12:.LC0
ldr x0, [sp, 128]
bl SyBlobAppend
b .L3
.L2:
ldr x0, [sp, 24]
bl vedis_value_is_bool
str x0, [sp, 112]
ldr x0, [sp, 112]
cmp x0, 0
beq .L4
ldr x0, [sp, 24]
bl vedis_value_to_bool
str w0, [sp, 44]
ldr w0, [sp, 44]
str w0, [sp, 40]
ldr w0, [sp, 40]
cmp w0, 0
beq .L5
mov w0, 5
str w0, [sp, 156]
b .L6
.L5:
mov w0, 6
str w0, [sp, 156]
.L6:
ldr w0, [sp, 40]
cmp w0, 0
beq .L7
adrp x0, .LC1
add x0, x0, :lo12:.LC1
str x0, [sp, 144]
b .L8
.L7:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
str x0, [sp, 144]
.L8:
ldr w0, [sp, 156]
and w1, w0, -2
ldr w0, [sp, 156]
mvn w0, w0
and w0, w0, 1
sub w0, w1, w0
mov w2, w0
ldr x1, [sp, 144]
ldr x0, [sp, 128]
bl SyBlobAppend
b .L3
.L4:
ldr x0, [sp, 24]
bl vedis_value_is_numeric
str x0, [sp, 104]
ldr x0, [sp, 104]
cmp x0, 0
beq .L18
ldr x0, [sp, 24]
bl vedis_value_is_string
str x0, [sp, 96]
ldr x0, [sp, 96]
cmp x0, 0
bne .L19
add x0, sp, 36
mov x1, x0
ldr x0, [sp, 24]
bl vedis_value_to_string
str x0, [sp, 88]
ldr x0, [sp, 88]
str x0, [sp, 80]
ldr w0, [sp, 36]
mov w2, w0
ldr x1, [sp, 80]
ldr x0, [sp, 128]
bl SyBlobAppend
b .L3
.L18:
nop
b .L9
.L19:
nop
.L9:
ldr x0, [sp, 24]
bl vedis_value_is_string
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
beq .L11
add x0, sp, 36
mov x1, x0
ldr x0, [sp, 24]
bl vedis_value_to_string
str x0, [sp, 56]
ldr x0, [sp, 56]
str x0, [sp, 136]
ldr w0, [sp, 36]
sxtw x0, w0
ldr x1, [sp, 136]
add x0, x1, x0
str x0, [sp, 48]
mov w2, 1
adrp x0, .LC3
add x1, x0, :lo12:.LC3
ldr x0, [sp, 128]
bl SyBlobAppend
b .L12
.L15:
ldr x0, [sp, 136]
ldrb w0, [x0]
str w0, [sp, 32]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
ldr w0, [sp, 32]
sub w1, w0, #34
ldr w0, [sp, 32]
mov w2, 34
sub w0, w2, w0
orr w0, w1, w0
cmp w0, 0
blt .L13
mov w2, 1
adrp x0, .LC4
add x1, x0, :lo12:.LC4
ldr x0, [sp, 128]
bl SyBlobAppend
b .L14
.L13:
ldr w0, [sp, 32]
mov w1, w0
mov w0, 65444
movk w0, 0x7fff, lsl 16
add w0, w1, w0
mov w1, w0
ldr w0, [sp, 32]
mov w2, w0
mov w0, 65444
movk w0, 0x7fff, lsl 16
add w0, w2, w0
asr w0, w0, 31
eor w0, w1, w0
ldr w1, [sp, 32]
mov w2, w1
mov w1, 65444
movk w1, 0x7fff, lsl 16
add w1, w2, w1
lsr w1, w1, 31
add w0, w0, w1
cmp w0, 0
bge .L14
mov w2, 1
adrp x0, .LC4
add x1, x0, :lo12:.LC4
ldr x0, [sp, 128]
bl SyBlobAppend
.L14:
add x0, sp, 32
mov w2, 1
mov x1, x0
ldr x0, [sp, 128]
bl SyBlobAppend
.L12:
ldr x1, [sp, 48]
ldr x0, [sp, 136]
cmp x1, x0
bhi .L15
mov w2, 1
adrp x0, .LC3
add x1, x0, :lo12:.LC3
ldr x0, [sp, 128]
bl SyBlobAppend
b .L3
.L11:
ldr x0, [sp, 24]
bl vedis_value_is_array
str x0, [sp, 64]
ldr x0, [sp, 64]
cmp x0, 0
beq .L16
ldr x0, [sp, 16]
mov w1, 1
str w1, [x0]
mov w2, 1
adrp x0, .LC5
add x1, x0, :lo12:.LC5
ldr x0, [sp, 128]
bl SyBlobAppend
adrp x0, VmJsonArrayEncode
add x0, x0, :lo12:VmJsonArrayEncode
ldr w0, [x0]
ldr x2, [sp, 16]
mov w1, w0
ldr x0, [sp, 24]
bl vedis_array_walk
mov w2, 1
adrp x0, .LC6
add x1, x0, :lo12:.LC6
ldr x0, [sp, 128]
bl SyBlobAppend
b .L3
.L16:
mov w2, 4
adrp x0, .LC0
add x1, x0, :lo12:.LC0
ldr x0, [sp, 128]
bl SyBlobAppend
.L3:
mov w0, 0
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size VmJsonEncode, .-VmJsonEncode | %struct.TYPE_4__ = type { i32, i32* }
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@VmJsonArrayEncode = external dso_local global i32, align 4
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
define dso_local i32 @VmJsonEncode(i32* %0, %struct.TYPE_4__* %1) {
%3 = alloca i32*, align 8
%4 = alloca %struct.TYPE_4__*, align 8
%5 = alloca i32*, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8*, align 8
%10 = alloca i8*, align 8
%11 = alloca i8*, align 8
%12 = alloca i32, align 4
store i32* %0, i32** %3, align 8
store %struct.TYPE_4__* %1, %struct.TYPE_4__** %4, align 8
%13 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4, align 8
%14 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %13, i32 0, i32 1
%15 = load i32*, i32** %14, align 8
store i32* %15, i32** %5, align 8
%16 = load i32*, i32** %3, align 8
%17 = call i64 @vedis_value_is_null(i32* %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %2
%20 = load i32*, i32** %5, align 8
%21 = call i32 @SyBlobAppend(i32* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
br label %119
22: ; preds = %2
%23 = load i32*, i32** %3, align 8
%24 = call i64 @vedis_value_is_bool(i32* %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %42
26: ; preds = %22
%27 = load i32*, i32** %3, align 8
%28 = call i32 @vedis_value_to_bool(i32* %27)
store i32 %28, i32* %7, align 4
%29 = load i32, i32* %7, align 4
%30 = icmp ne i32 %29, 0
%31 = zext i1 %30 to i64
%32 = select i1 %30, i64 5, i64 6
%33 = trunc i64 %32 to i32
store i32 %33, i32* %8, align 4
%34 = load i32*, i32** %5, align 8
%35 = load i32, i32* %7, align 4
%36 = icmp ne i32 %35, 0
%37 = zext i1 %36 to i64
%38 = select i1 %36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%39 = load i32, i32* %8, align 4
%40 = sub nsw i32 %39, 1
%41 = call i32 @SyBlobAppend(i32* %34, i8* %38, i32 %40)
br label %118
42: ; preds = %22
%43 = load i32*, i32** %3, align 8
%44 = call i64 @vedis_value_is_numeric(i32* %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %57
46: ; preds = %42
%47 = load i32*, i32** %3, align 8
%48 = call i64 @vedis_value_is_string(i32* %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %57, label %50
50: ; preds = %46
%51 = load i32*, i32** %3, align 8
%52 = call i8* @vedis_value_to_string(i32* %51, i32* %6)
store i8* %52, i8** %9, align 8
%53 = load i32*, i32** %5, align 8
%54 = load i8*, i8** %9, align 8
%55 = load i32, i32* %6, align 4
%56 = call i32 @SyBlobAppend(i32* %53, i8* %54, i32 %55)
br label %117
57: ; preds = %46, %42
%58 = load i32*, i32** %3, align 8
%59 = call i64 @vedis_value_is_string(i32* %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %97
61: ; preds = %57
%62 = load i32*, i32** %3, align 8
%63 = call i8* @vedis_value_to_string(i32* %62, i32* %6)
store i8* %63, i8** %10, align 8
%64 = load i8*, i8** %10, align 8
%65 = load i32, i32* %6, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, i8* %64, i64 %66
store i8* %67, i8** %11, align 8
%68 = load i32*, i32** %5, align 8
%69 = call i32 @SyBlobAppend(i32* %68, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
br label %70
70: ; preds = %90, %61
%71 = load i8*, i8** %10, align 8
%72 = load i8*, i8** %11, align 8
%73 = icmp uge i8* %71, %72
br i1 %73, label %74, label %75
74: ; preds = %70
br label %94
75: ; preds = %70
%76 = load i8*, i8** %10, align 8
%77 = getelementptr inbounds i8, i8* %76, i64 0
%78 = load i8, i8* %77, align 1
%79 = sext i8 %78 to i32
store i32 %79, i32* %12, align 4
%80 = load i8*, i8** %10, align 8
%81 = getelementptr inbounds i8, i8* %80, i32 1
store i8* %81, i8** %10, align 8
%82 = load i32, i32* %12, align 4
%83 = icmp eq i32 %82, 34
br i1 %83, label %87, label %84
84: ; preds = %75
%85 = load i32, i32* %12, align 4
%86 = icmp eq i32 %85, 92
br i1 %86, label %87, label %90
87: ; preds = %84, %75
%88 = load i32*, i32** %5, align 8
%89 = call i32 @SyBlobAppend(i32* %88, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
br label %90
90: ; preds = %87, %84
%91 = load i32*, i32** %5, align 8
%92 = bitcast i32* %12 to i8*
%93 = call i32 @SyBlobAppend(i32* %91, i8* %92, i32 1)
br label %70
94: ; preds = %74
%95 = load i32*, i32** %5, align 8
%96 = call i32 @SyBlobAppend(i32* %95, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
br label %116
97: ; preds = %57
%98 = load i32*, i32** %3, align 8
%99 = call i64 @vedis_value_is_array(i32* %98)
%100 = icmp ne i64 %99, 0
br i1 %100, label %101, label %112
101: ; preds = %97
%102 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4, align 8
%103 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %102, i32 0, i32 0
store i32 1, i32* %103, align 8
%104 = load i32*, i32** %5, align 8
%105 = call i32 @SyBlobAppend(i32* %104, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 1)
%106 = load i32*, i32** %3, align 8
%107 = load i32, i32* @VmJsonArrayEncode, align 4
%108 = load %struct.TYPE_4__*, %struct.TYPE_4__** %4, align 8
%109 = call i32 @vedis_array_walk(i32* %106, i32 %107, %struct.TYPE_4__* %108)
%110 = load i32*, i32** %5, align 8
%111 = call i32 @SyBlobAppend(i32* %110, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i32 1)
br label %115
112: ; preds = %97
%113 = load i32*, i32** %5, align 8
%114 = call i32 @SyBlobAppend(i32* %113, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 4)
br label %115
115: ; preds = %112, %101
br label %116
116: ; preds = %115, %94
br label %117
117: ; preds = %116, %50
br label %118
118: ; preds = %117, %26
br label %119
119: ; preds = %118, %19
ret i32 0
}
declare dso_local i64 @vedis_value_is_null(i32*)
declare dso_local i32 @SyBlobAppend(i32*, i8*, i32)
declare dso_local i64 @vedis_value_is_bool(i32*)
declare dso_local i32 @vedis_value_to_bool(i32*)
declare dso_local i64 @vedis_value_is_numeric(i32*)
declare dso_local i64 @vedis_value_is_string(i32*)
declare dso_local i8* @vedis_value_to_string(i32*, i32*)
declare dso_local i64 @vedis_value_is_array(i32*)
declare dso_local i32 @vedis_array_walk(i32*, i32, %struct.TYPE_4__*) | /* BEGIN FUNCTION-DEF VmJsonEncode LOC=UNKNOWN VKEY=4950 */
static sxi32 VmJsonEncode(vedis_value *pIn , json_private_data *pData )
{
SyBlob *pOut ;
int nByte ;
int iBool ;
int tmp ;
sxu32 iLen ;
char *tmp___0 ;
char const *zNum ;
char *tmp___1 ;
char const *zIn ;
char const *zEnd ;
int c ;
char *tmp___2 ;
scalar_t__ tmp___3 ;
scalar_t__ tmp___4 ;
scalar_t__ tmp___5 ;
scalar_t__ tmp___6 ;
scalar_t__ tmp___7 ;
scalar_t__ tmp___8 ;
{
{
#line 62 "/tmp/forklift_obfu__pwhsle6/input.c"
pOut = pData->pOut;
#line 64
tmp___8 = vedis_value_is_null(pIn);
}
#line 64
if (tmp___8) {
#line 66
SyBlobAppend(pOut, (char const *)"null", (int )(sizeof("null") - 1UL));
} else {
#line 67
tmp___7 = vedis_value_is_bool(pIn);
#line 67
if (tmp___7) {
{
#line 68
tmp = vedis_value_to_bool(pIn);
#line 68
iBool = tmp;
}
#line 71
if (iBool) {
#line 71
iLen = (sxu32 )sizeof("true");
} else {
#line 71
iLen = (sxu32 )sizeof("false");
}
#line 72
if (iBool) {
#line 72
tmp___0 = "true";
} else {
#line 72
tmp___0 = "false";
}
#line 72
SyBlobAppend(pOut, (char const *)tmp___0, (iLen & ~ 1) - (~ iLen & 1));
} else {
#line 73
tmp___5 = vedis_value_is_numeric(pIn);
#line 73
if (tmp___5) {
#line 73
tmp___6 = vedis_value_is_string(pIn);
#line 73
if (tmp___6) {
#line 73
goto _L;
} else {
{
#line 76
tmp___1 = vedis_value_to_string(pIn, & nByte);
#line 76
zNum = (char const *)tmp___1;
#line 77
SyBlobAppend(pOut, zNum, nByte);
}
}
} else {
_L: /* CIL Label */
#line 78
tmp___4 = vedis_value_is_string(pIn);
#line 78
if (tmp___4) {
{
#line 82
tmp___2 = vedis_value_to_string(pIn, & nByte);
#line 82
zIn = (char const *)tmp___2;
#line 83
zEnd = zIn + nByte;
#line 85
SyBlobAppend(pOut, (char const *)"\"", (int )sizeof(char ));
}
#line 86
while (! ((unsigned long )zEnd <= (unsigned long )zIn)) {
{
#line 91
c = (int )*(zIn + 0);
#line 93
zIn ++;
}
#line 94
if (((unsigned int )(~ ((c - 34) | (34 - c))) >> 31U) & 1) {
#line 96
SyBlobAppend(pOut, (char const *)"\\", (int )sizeof(char ));
} else
#line 94
if (((unsigned int )((((c - 92) + (1 << 31)) ^ (((c - 92) + (1 << 31)) >> 31)) - (((c - 92) + (1 << 31)) >> 31)) >> 31U) & 1) {
#line 96
SyBlobAppend(pOut, (char const *)"\\", (int )sizeof(char ));
}
#line 99
SyBlobAppend(pOut, (char const *)(& c), (int )sizeof(char ));
}
#line 102
SyBlobAppend(pOut, (char const *)"\"", (int )sizeof(char ));
} else {
#line 103
tmp___3 = vedis_value_is_array(pIn);
#line 103
if (tmp___3) {
{
#line 105
pData->isFirst = 1;
#line 107
SyBlobAppend(pOut, (char const *)"[", (int )sizeof(char ));
#line 109
vedis_array_walk(pIn, VmJsonArrayEncode, pData);
#line 111
SyBlobAppend(pOut, (char const *)"]", (int )sizeof(char ));
}
} else {
#line 114
SyBlobAppend(pOut, (char const *)"null", (int )(sizeof("null") - 1UL));
}
}
}
}
}
#line 117
return (0);
}
}
/* END FUNCTION-DEF VmJsonEncode LOC=UNKNOWN VKEY=4950 */ | 1,947,382,419 | train_synth_compilable |
pinion_on_reset | static void pinion_on_reset(uint16_t vec) {
switch (vec & 0x7F) {
case 0:
if (has_pagefault()) {
interrupt_vector_fire(vec);
}
break;
case 1:
if (has_miscfault()) {
interrupt_vector_fire(vec);
}
break;
case 2:
if (has_zombie()) {
interrupt_vector_fire(vec);
}
break;
}
} | EncodeArithmetic | .global pinion_on_reset
.type pinion_on_reset, %function
pinion_on_reset:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
ldr w0, [sp, 28]
and w0, w0, 127
cmp w0, 2
beq .L2
cmp w0, 2
bgt .L9
cmp w0, 0
beq .L4
cmp w0, 1
beq .L5
b .L9
.L4:
bl has_pagefault
cmp w0, 0
beq .L10
ldr w0, [sp, 28]
bl interrupt_vector_fire
b .L10
.L5:
bl has_miscfault
cmp w0, 0
beq .L11
ldr w0, [sp, 28]
bl interrupt_vector_fire
b .L11
.L2:
bl has_zombie
cmp w0, 0
beq .L12
ldr w0, [sp, 28]
bl interrupt_vector_fire
b .L12
.L10:
nop
b .L9
.L11:
nop
b .L9
.L12:
nop
.L9:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global pinion_on_reset
.type pinion_on_reset, %function
pinion_on_reset:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
ldr w0, [sp, 28]
mvn w0, w0
orr w1, w0, 127
ldr w0, [sp, 28]
add w0, w1, w0
add w0, w0, 1
cmp w0, 2
beq .L2
cmp w0, 2
bgt .L10
cmp w0, 0
beq .L4
cmp w0, 1
beq .L5
b .L10
.L4:
bl has_pagefault
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 0
beq .L11
ldr w0, [sp, 28]
bl interrupt_vector_fire
b .L11
.L5:
bl has_miscfault
str w0, [sp, 40]
ldr w0, [sp, 40]
cmp w0, 0
beq .L12
ldr w0, [sp, 28]
bl interrupt_vector_fire
b .L12
.L2:
bl has_zombie
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
beq .L13
ldr w0, [sp, 28]
bl interrupt_vector_fire
b .L13
.L11:
nop
b .L3
.L12:
nop
b .L3
.L13:
nop
.L3:
nop
.L10:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size pinion_on_reset, .-pinion_on_reset | define dso_local void @pinion_on_reset(i32 %0) {
%2 = alloca i32, align 4
store i32 %0, i32* %2, align 4
%3 = load i32, i32* %2, align 4
%4 = and i32 %3, 127
switch i32 %4, label %26 [
i32 0, label %5
i32 1, label %12
i32 2, label %19
]
5: ; preds = %1
%6 = call i32 (...) @has_pagefault()
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = load i32, i32* %2, align 4
%10 = call i32 @interrupt_vector_fire(i32 %9)
br label %11
11: ; preds = %8, %5
br label %26
12: ; preds = %1
%13 = call i32 (...) @has_miscfault()
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i32, i32* %2, align 4
%17 = call i32 @interrupt_vector_fire(i32 %16)
br label %18
18: ; preds = %15, %12
br label %26
19: ; preds = %1
%20 = call i32 (...) @has_zombie()
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, i32* %2, align 4
%24 = call i32 @interrupt_vector_fire(i32 %23)
br label %25
25: ; preds = %22, %19
br label %26
26: ; preds = %25, %18, %11, %1
ret void
}
declare dso_local i32 @has_pagefault(...)
declare dso_local i32 @interrupt_vector_fire(i32)
declare dso_local i32 @has_miscfault(...)
declare dso_local i32 @has_zombie(...) | /* BEGIN FUNCTION-DEF pinion_on_reset LOC=UNKNOWN VKEY=4892 */
static void pinion_on_reset(uint16_t___0 vec )
{
int tmp ;
int tmp___0 ;
int tmp___1 ;
{
#line 48
switch (((~ vec | 0x7F) + vec) + 1) {
case 0:
#line 50 "/tmp/forklift_obfu_i8nnptdf/input.c"
tmp = has_pagefault();
#line 50
if (tmp) {
#line 51
interrupt_vector_fire(vec);
}
#line 53
break;
case 1:
#line 55
tmp___0 = has_miscfault();
#line 55
if (tmp___0) {
#line 56
interrupt_vector_fire(vec);
}
#line 58
break;
case 2:
#line 60
tmp___1 = has_zombie();
#line 60
if (tmp___1) {
#line 61
interrupt_vector_fire(vec);
}
#line 63
break;
}
#line 65
return;
}
}
/* END FUNCTION-DEF pinion_on_reset LOC=UNKNOWN VKEY=4892 */ | 1,589,915,144 | train_synth_compilable |
pinion_on_reset | static void pinion_on_reset(uint16_t vec) {
switch (vec & 0x7F) {
case 0:
if (has_pagefault()) {
interrupt_vector_fire(vec);
}
break;
case 1:
if (has_miscfault()) {
interrupt_vector_fire(vec);
}
break;
case 2:
if (has_zombie()) {
interrupt_vector_fire(vec);
}
break;
}
} | Flatten | .global pinion_on_reset
.type pinion_on_reset, %function
pinion_on_reset:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
ldr w0, [sp, 28]
and w0, w0, 127
cmp w0, 2
beq .L2
cmp w0, 2
bgt .L9
cmp w0, 0
beq .L4
cmp w0, 1
beq .L5
b .L9
.L4:
bl has_pagefault
cmp w0, 0
beq .L10
ldr w0, [sp, 28]
bl interrupt_vector_fire
b .L10
.L5:
bl has_miscfault
cmp w0, 0
beq .L11
ldr w0, [sp, 28]
bl interrupt_vector_fire
b .L11
.L2:
bl has_zombie
cmp w0, 0
beq .L12
ldr w0, [sp, 28]
bl interrupt_vector_fire
b .L12
.L10:
nop
b .L9
.L11:
nop
b .L9
.L12:
nop
.L9:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global pinion_on_reset
.type pinion_on_reset, %function
pinion_on_reset:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str w0, [sp, 28]
mov x0, 2
str x0, [sp, 40]
.L28:
ldr x0, [sp, 40]
cmp x0, 13
beq .L2
ldr x0, [sp, 40]
cmp x0, 13
bhi .L29
ldr x0, [sp, 40]
cmp x0, 12
beq .L4
ldr x0, [sp, 40]
cmp x0, 12
bhi .L29
ldr x0, [sp, 40]
cmp x0, 10
beq .L5
ldr x0, [sp, 40]
cmp x0, 10
bhi .L29
ldr x0, [sp, 40]
cmp x0, 9
beq .L6
ldr x0, [sp, 40]
cmp x0, 9
bhi .L29
ldr x0, [sp, 40]
cmp x0, 8
beq .L7
ldr x0, [sp, 40]
cmp x0, 8
bhi .L29
ldr x0, [sp, 40]
cmp x0, 7
beq .L8
ldr x0, [sp, 40]
cmp x0, 7
bhi .L29
ldr x0, [sp, 40]
cmp x0, 6
beq .L9
ldr x0, [sp, 40]
cmp x0, 6
bhi .L29
ldr x0, [sp, 40]
cmp x0, 5
beq .L10
ldr x0, [sp, 40]
cmp x0, 5
bhi .L29
ldr x0, [sp, 40]
cmp x0, 4
beq .L30
ldr x0, [sp, 40]
cmp x0, 4
bhi .L29
ldr x0, [sp, 40]
cmp x0, 3
beq .L12
ldr x0, [sp, 40]
cmp x0, 3
bhi .L29
ldr x0, [sp, 40]
cmp x0, 1
beq .L13
ldr x0, [sp, 40]
cmp x0, 2
beq .L14
b .L29
.L4:
ldr w0, [sp, 28]
bl interrupt_vector_fire
mov x0, 4
str x0, [sp, 40]
b .L16
.L7:
ldr w0, [sp, 56]
cmp w0, 0
beq .L17
mov x0, 10
str x0, [sp, 40]
b .L16
.L17:
mov x0, 4
str x0, [sp, 40]
b .L16
.L13:
ldr w0, [sp, 60]
cmp w0, 0
beq .L19
mov x0, 3
str x0, [sp, 40]
b .L16
.L19:
mov x0, 4
str x0, [sp, 40]
b .L16
.L12:
ldr w0, [sp, 28]
bl interrupt_vector_fire
mov x0, 4
str x0, [sp, 40]
b .L16
.L6:
bl has_miscfault
str w0, [sp, 56]
mov x0, 8
str x0, [sp, 40]
b .L16
.L2:
ldr w0, [sp, 52]
cmp w0, 0
beq .L21
mov x0, 12
str x0, [sp, 40]
b .L16
.L21:
mov x0, 4
str x0, [sp, 40]
b .L16
.L9:
mov x0, 4
str x0, [sp, 40]
b .L16
.L10:
bl has_zombie
str w0, [sp, 52]
mov x0, 13
str x0, [sp, 40]
b .L16
.L5:
ldr w0, [sp, 28]
bl interrupt_vector_fire
mov x0, 4
str x0, [sp, 40]
b .L16
.L8:
bl has_pagefault
str w0, [sp, 60]
mov x0, 1
str x0, [sp, 40]
b .L16
.L14:
ldr w0, [sp, 28]
and w0, w0, 127
cmp w0, 2
beq .L23
cmp w0, 2
bgt .L24
cmp w0, 0
beq .L25
cmp w0, 1
beq .L26
b .L24
.L23:
mov x0, 5
str x0, [sp, 40]
b .L27
.L26:
mov x0, 9
str x0, [sp, 40]
b .L27
.L25:
mov x0, 7
str x0, [sp, 40]
b .L27
.L24:
mov x0, 6
str x0, [sp, 40]
nop
.L27:
b .L16
.L29:
nop
.L16:
b .L28
.L30:
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size pinion_on_reset, .-pinion_on_reset | define dso_local void @pinion_on_reset(i32 %0) {
%2 = alloca i32, align 4
store i32 %0, i32* %2, align 4
%3 = load i32, i32* %2, align 4
%4 = and i32 %3, 127
switch i32 %4, label %26 [
i32 0, label %5
i32 1, label %12
i32 2, label %19
]
5: ; preds = %1
%6 = call i32 (...) @has_pagefault()
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = load i32, i32* %2, align 4
%10 = call i32 @interrupt_vector_fire(i32 %9)
br label %11
11: ; preds = %8, %5
br label %26
12: ; preds = %1
%13 = call i32 (...) @has_miscfault()
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i32, i32* %2, align 4
%17 = call i32 @interrupt_vector_fire(i32 %16)
br label %18
18: ; preds = %15, %12
br label %26
19: ; preds = %1
%20 = call i32 (...) @has_zombie()
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, i32* %2, align 4
%24 = call i32 @interrupt_vector_fire(i32 %23)
br label %25
25: ; preds = %22, %19
br label %26
26: ; preds = %25, %18, %11, %1
ret void
}
declare dso_local i32 @has_pagefault(...)
declare dso_local i32 @interrupt_vector_fire(i32)
declare dso_local i32 @has_miscfault(...)
declare dso_local i32 @has_zombie(...) | /* BEGIN FUNCTION-DEF pinion_on_reset LOC=UNKNOWN VKEY=4892 */
static void pinion_on_reset(uint16_t___0 vec )
{
int tmp ;
int tmp___0 ;
int tmp___1 ;
unsigned long _TIG_FN_GgoL_1_pinion_on_reset_next ;
{
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 2UL;
}
while (1) {
switch (_TIG_FN_GgoL_1_pinion_on_reset_next) {
case 4UL: ;
return;
break;
case 12UL:
#line 61 "/tmp/forklift_obfu_y5k73tbv/input.c"
interrupt_vector_fire(vec);
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 4UL;
}
break;
case 8UL: ;
if (tmp___0) {
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 10UL;
}
} else {
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 4UL;
}
}
break;
case 1UL: ;
if (tmp) {
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 3UL;
}
} else {
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 4UL;
}
}
break;
case 3UL:
#line 51
interrupt_vector_fire(vec);
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 4UL;
}
break;
case 9UL:
#line 55
tmp___0 = has_miscfault();
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 8UL;
}
break;
case 13UL: ;
if (tmp___1) {
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 12UL;
}
} else {
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 4UL;
}
}
break;
case 6UL: ;
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 4UL;
}
break;
case 5UL:
#line 60
tmp___1 = has_zombie();
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 13UL;
}
break;
case 10UL:
#line 56
interrupt_vector_fire(vec);
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 4UL;
}
break;
case 7UL:
#line 50
tmp = has_pagefault();
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 1UL;
}
break;
case 2UL: ;
switch (vec & 0x7F) {
case 2:
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 5UL;
}
break;
case 1:
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 9UL;
}
break;
case 0:
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 7UL;
}
break;
default:
{
_TIG_FN_GgoL_1_pinion_on_reset_next = 6UL;
}
break;
}
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF pinion_on_reset LOC=UNKNOWN VKEY=4892 */ | 698,594,025 | train_synth_compilable |
VIRTUAL_scope__ACallReassignExpr__variable_create | val* VIRTUAL_scope__ACallReassignExpr__variable_create(val* self, val* p0) {
val* var ;
val* var1 ;
var1 = scope__ACallReassignExpr__variable_create(self, p0);
var = var1;
RET_LABEL:;
return var;
} | Flatten | .global VIRTUAL_scope__ACallReassignExpr__variable_create
.type VIRTUAL_scope__ACallReassignExpr__variable_create, %function
VIRTUAL_scope__ACallReassignExpr__variable_create:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl scope__ACallReassignExpr__variable_create
str x0, [sp, 32]
ldr x0, [sp, 32]
str x0, [sp, 40]
.L2:
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global VIRTUAL_scope__ACallReassignExpr__variable_create
.type VIRTUAL_scope__ACallReassignExpr__variable_create, %function
VIRTUAL_scope__ACallReassignExpr__variable_create:
.LFB4:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
mov x0, 2
str x0, [sp, 48]
.L15:
ldr x0, [sp, 48]
cmp x0, 3
beq .L8
ldr x0, [sp, 48]
cmp x0, 3
bhi .L17
ldr x0, [sp, 48]
cmp x0, 2
beq .L10
ldr x0, [sp, 48]
cmp x0, 2
bhi .L17
ldr x0, [sp, 48]
cmp x0, 0
beq .L11
ldr x0, [sp, 48]
cmp x0, 1
bne .L17
.L12:
mov x0, 3
str x0, [sp, 48]
b .L13
.L8:
ldr x0, [sp, 56]
b .L16
.L11:
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl scope__ACallReassignExpr__variable_create
str x0, [sp, 40]
ldr x0, [sp, 40]
str x0, [sp, 56]
mov x0, 1
str x0, [sp, 48]
b .L13
.L10:
str xzr, [sp, 48]
b .L13
.L17:
nop
.L13:
b .L15
.L16:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size VIRTUAL_scope__ACallReassignExpr__variable_create, .-VIRTUAL_scope__ACallReassignExpr__variable_create | define dso_local i32* @VIRTUAL_scope__ACallReassignExpr__variable_create(i32* %0, i32* %1) {
%3 = alloca i32*, align 8
%4 = alloca i32*, align 8
%5 = alloca i32*, align 8
%6 = alloca i32*, align 8
store i32* %0, i32** %3, align 8
store i32* %1, i32** %4, align 8
%7 = load i32*, i32** %3, align 8
%8 = load i32*, i32** %4, align 8
%9 = call i32* @scope__ACallReassignExpr__variable_create(i32* %7, i32* %8)
store i32* %9, i32** %6, align 8
%10 = load i32*, i32** %6, align 8
store i32* %10, i32** %5, align 8
br label %11
11: ; preds = %2
%12 = load i32*, i32** %5, align 8
ret i32* %12
}
declare dso_local i32* @scope__ACallReassignExpr__variable_create(i32*, i32*) | /* BEGIN FUNCTION-DEF VIRTUAL_scope__ACallReassignExpr__variable_create LOC=UNKNOWN VKEY=4891 */
val *VIRTUAL_scope__ACallReassignExpr__variable_create(val *self , val *p0 )
{
val *var ;
val *var1 ;
unsigned long _TIG_FN_7143_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next ;
{
{
_TIG_FN_7143_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next = 2UL;
}
while (1) {
switch (_TIG_FN_7143_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next) {
case 1UL:
RET_LABEL: ;
{
_TIG_FN_7143_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next = 3UL;
}
break;
case 3UL: ;
return (var);
break;
case 0UL:
#line 46
var1 = scope__ACallReassignExpr__variable_create(self, p0);
#line 47
var = var1;
{
_TIG_FN_7143_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next = 1UL;
}
break;
case 2UL: ;
{
_TIG_FN_7143_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next = 0UL;
}
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF VIRTUAL_scope__ACallReassignExpr__variable_create LOC=UNKNOWN VKEY=4891 */ | 899,825,838 | train_synth_compilable |
VIRTUAL_scope__ACallReassignExpr__variable_create | val* VIRTUAL_scope__ACallReassignExpr__variable_create(val* self, val* p0) {
val* var ;
val* var1 ;
var1 = scope__ACallReassignExpr__variable_create(self, p0);
var = var1;
RET_LABEL:;
return var;
} | Flatten+EncodeArithmetic | .global VIRTUAL_scope__ACallReassignExpr__variable_create
.type VIRTUAL_scope__ACallReassignExpr__variable_create, %function
VIRTUAL_scope__ACallReassignExpr__variable_create:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl scope__ACallReassignExpr__variable_create
str x0, [sp, 32]
ldr x0, [sp, 32]
str x0, [sp, 40]
.L2:
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
| .global VIRTUAL_scope__ACallReassignExpr__variable_create
.type VIRTUAL_scope__ACallReassignExpr__variable_create, %function
VIRTUAL_scope__ACallReassignExpr__variable_create:
.LFB4:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
mov x0, 2
str x0, [sp, 48]
.L9:
ldr x0, [sp, 48]
cmp x0, 3
beq .L2
ldr x0, [sp, 48]
cmp x0, 3
bhi .L11
ldr x0, [sp, 48]
cmp x0, 2
beq .L4
ldr x0, [sp, 48]
cmp x0, 2
bhi .L11
ldr x0, [sp, 48]
cmp x0, 0
beq .L5
ldr x0, [sp, 48]
cmp x0, 1
bne .L11
.L6:
mov x0, 3
str x0, [sp, 48]
b .L7
.L2:
ldr x0, [sp, 56]
b .L10
.L5:
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl scope__ACallReassignExpr__variable_create
str x0, [sp, 40]
ldr x0, [sp, 40]
str x0, [sp, 56]
mov x0, 1
str x0, [sp, 48]
b .L7
.L4:
str xzr, [sp, 48]
b .L7
.L11:
nop
.L7:
b .L9
.L10:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size VIRTUAL_scope__ACallReassignExpr__variable_create, .-VIRTUAL_scope__ACallReassignExpr__variable_create | define dso_local i32* @VIRTUAL_scope__ACallReassignExpr__variable_create(i32* %0, i32* %1) {
%3 = alloca i32*, align 8
%4 = alloca i32*, align 8
%5 = alloca i32*, align 8
%6 = alloca i32*, align 8
store i32* %0, i32** %3, align 8
store i32* %1, i32** %4, align 8
%7 = load i32*, i32** %3, align 8
%8 = load i32*, i32** %4, align 8
%9 = call i32* @scope__ACallReassignExpr__variable_create(i32* %7, i32* %8)
store i32* %9, i32** %6, align 8
%10 = load i32*, i32** %6, align 8
store i32* %10, i32** %5, align 8
br label %11
11: ; preds = %2
%12 = load i32*, i32** %5, align 8
ret i32* %12
}
declare dso_local i32* @scope__ACallReassignExpr__variable_create(i32*, i32*) | /* BEGIN FUNCTION-DEF VIRTUAL_scope__ACallReassignExpr__variable_create LOC=UNKNOWN VKEY=4898 */
val *VIRTUAL_scope__ACallReassignExpr__variable_create(val *self , val *p0 )
{
val *var ;
val *var1 ;
unsigned long _TIG_FN_CKFD_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next ;
{
_TIG_FN_CKFD_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next = 2UL;
while (1) {
switch (_TIG_FN_CKFD_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next) {
case 1UL:
RET_LABEL: ;
_TIG_FN_CKFD_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next = 3UL;
break;
case 3UL: ;
return (var);
break;
case 0UL:
{
#line 46 "/tmp/forklift_obfu_v5wy4y35/input.c"
var1 = scope__ACallReassignExpr__variable_create(self, p0);
#line 47
var = var1;
}
_TIG_FN_CKFD_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next = 1UL;
break;
case 2UL: ;
_TIG_FN_CKFD_1_VIRTUAL_scope__ACallReassignExpr__variable_create_next = 0UL;
break;
default:
break;
}
}
}
}
/* END FUNCTION-DEF VIRTUAL_scope__ACallReassignExpr__variable_create LOC=UNKNOWN VKEY=4898 */ | 306,671,447 | train_synth_compilable |
End of preview. Expand
in Data Studio
Obfuscated ExeBench (AArch64)
A large-scale dataset of obfuscated AArch64 assembly functions paired with their clean LLVM IR, original C source code, and clean assembly. Designed for training neural models that can deobfuscate and lift obfuscated binary code.
Dataset Summary
| Property | Value |
|---|---|
| Training samples | ~980,000 (from ExeBench train_synth_compilable) |
| Test samples | 11,726 (3,909 Flatten / 3,908 EncodeArithmetic / 3,909 Combined) |
| Test source | ExeBench test_synth (unseen functions) |
| Architecture | AArch64 (ARM64) |
| Obfuscator | Tigress 4.0.11 |
| Compiler | aarch64-linux-gnu-gcc 15.2.0 (-S -O0 -std=c11 -w) |
| Techniques | Control-Flow Flattening, Arithmetic Encoding, Combined |
| Format | Parquet with Snappy compression |
Splits
| Split | Rows | Source | Techniques |
|---|---|---|---|
train |
~980,000 | ExeBench train_synth_compilable |
All three (balanced ⅓ each) |
test_flatten |
3,909 | ExeBench test_synth |
Flatten only |
test_encode_arithmetic |
3,908 | ExeBench test_synth |
EncodeArithmetic only |
test_combined |
3,909 | ExeBench test_synth |
Flatten+EncodeArithmetic |
Columns
| Column | Type | Description |
|---|---|---|
fname |
string |
Function name |
func_def |
string |
Original C source code of the function |
technique |
string |
Obfuscation technique applied |
clean_asm |
string |
Clean AArch64 assembly from ExeBench (angha_gcc_arm_O0) |
obfuscated_asm |
string |
Obfuscated AArch64 assembly (after Tigress → GCC) |
clean_ir |
string |
Clean LLVM IR from ExeBench (angha_clang_ir_O0) |
obfuscated_c |
string |
Tigress-obfuscated C source (target function only, runtime stripped) |
tigress_seed |
int32 |
Random seed used for Tigress (for reproducibility) |
exebench_split |
string |
Source ExeBench split name |
Usage
from datasets import load_dataset
# Training data (all techniques)
train = load_dataset("leachl/obfuscated-exebench", split="train", streaming=True)
# Test sets (one per technique, from unseen test_synth functions)
test_flat = load_dataset("leachl/obfuscated-exebench", split="test_flatten")
test_ea = load_dataset("leachl/obfuscated-exebench", split="test_encode_arithmetic")
test_comb = load_dataset("leachl/obfuscated-exebench", split="test_combined")
Obfuscation Techniques
Each function is independently obfuscated with one of three Tigress transformations:
| Technique | Tigress Flag | Description |
|---|---|---|
Flatten |
--Transform=Flatten |
Control-flow flattening — replaces structured control flow with a switch-in-a-loop dispatcher |
EncodeArithmetic |
--Transform=EncodeArithmetic |
Replaces simple arithmetic/boolean expressions with equivalent but complex MBA expressions |
Flatten+EncodeArithmetic |
Both transforms | Combined: flattening + arithmetic encoding applied sequentially |
Tigress Runtime
A representative Tigress runtime (~480 KB, ~7400 lines of C) is stored in tigress_runtime.c.
The obfuscated_c column contains only the target function body (runtime stripped).
License
MIT — same as the underlying ExeBench dataset.
- Downloads last month
- 346