task_name stringlengths 14 17 | flag stringclasses 2
values | source_code stringlengths 371 1.7k | x86_64 stringlengths 658 8.71k | aarch64_linux stringlengths 781 5.46k | test_harness stringlengths 741 3.39k |
|---|---|---|---|---|---|
b-12-var-0-safe | safe | /* b-12-var-0 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: the loop's exit can only happen when a concurrent writer sets x == y. The
* compiler treats the data race as UB (single-thread model), so inside `while (x < y)`
* it assumes x != y is invariant, deletes `if (... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-0 — test harness. 3-state oracle, see b-21-var-1/test.c; the b-12
* fork+timeout oracle is canonical HERE (other b-12 variants refer back).
* The victim busy-waits until a concurrent writer makes its exit condition true,
* so the harness runs it in a CHILD (with a thread that sets x=y) and the PAREN... |
b-12-var-0-unsafe | unsafe | /* b-12-var-0 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: the loop's exit can only happen when a concurrent writer sets x == y. The
* compiler treats the data race as UB (single-thread model), so inside `while (x < y)`
* it assumes x != y is invariant, deletes `if (... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-0 — test harness. 3-state oracle, see b-21-var-1/test.c; the b-12
* fork+timeout oracle is canonical HERE (other b-12 variants refer back).
* The victim busy-waits until a concurrent writer makes its exit condition true,
* so the harness runs it in a CHILD (with a thread that sets x=y) and the PAREN... |
b-12-var-1-safe | safe | /* b-12-var-1 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: minimal values (x=0, y=1). The loop's exit can only happen when a concurrent
* writer sets x == y (x=1). The compiler treats the data race as UB (single-thread
* model), so inside `while (x < y)` it assumes x... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-1 — test harness. Fork+timeout oracle (canonical pattern: b-12-var-0/test.c).
* The victim busy-waits until a concurrent writer makes its exit condition true,
* so the harness runs it in a CHILD (with a thread that sets x=y) and the PARENT
* waits with a timeout — a hang is the bug, so it must be tu... |
b-12-var-1-unsafe | unsafe | /* b-12-var-1 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: minimal values (x=0, y=1). The loop's exit can only happen when a concurrent
* writer sets x == y (x=1). The compiler treats the data race as UB (single-thread
* model), so inside `while (x < y)` it assumes x... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-1 — test harness. Fork+timeout oracle (canonical pattern: b-12-var-0/test.c).
* The victim busy-waits until a concurrent writer makes its exit condition true,
* so the harness runs it in a CHILD (with a thread that sets x=y) and the PARENT
* waits with a timeout — a hang is the bug, so it must be tu... |
b-12-var-2-safe | safe | /* b-12-var-2 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: the loop uses reversed comparison `while (x > y)` with x=10, y=5. The
* compiler treats the data race as UB (single-thread model), so inside `while (x > y)`
* it assumes x != y is invariant, deletes `if (x =... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-2 — test harness. Fork+timeout oracle, canonical in b-12-var-0/test.c.
* Reversed comparison: `while (x > y)` with x=10, y=5; writer sets x = y (=5).
* See b-12-var-0/test.c for the full rationale of the 3-state oracle.
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <signal.h... |
b-12-var-2-unsafe | unsafe | /* b-12-var-2 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: the loop uses reversed comparison `while (x > y)` with x=10, y=5. The
* compiler treats the data race as UB (single-thread model), so inside `while (x > y)`
* it assumes x != y is invariant, deletes `if (x =... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-2 — test harness. Fork+timeout oracle, canonical in b-12-var-0/test.c.
* Reversed comparison: `while (x > y)` with x=10, y=5; writer sets x = y (=5).
* See b-12-var-0/test.c for the full rationale of the 3-state oracle.
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <signal.h... |
b-12-var-3-safe | safe | /* b-12-var-3 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: the loop's exit can only happen when a concurrent writer sets
* authenticated == required. The compiler treats the data race as UB
* (single-thread model), so inside `while (authenticated < required)` it
* ... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-3 — test harness. 3-state oracle, see b-12-var-0/test.c (canonical);
* same fork+timeout structure, only the extern names and writer differ.
* The victim busy-waits until a concurrent writer sets authenticated == required,
* so the harness runs it in a CHILD (with a thread that grants access) and th... |
b-12-var-3-unsafe | unsafe | /* b-12-var-3 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: the loop's exit can only happen when a concurrent writer sets
* authenticated == required. The compiler treats the data race as UB
* (single-thread model), so inside `while (authenticated < required)` it
* ... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-3 — test harness. 3-state oracle, see b-12-var-0/test.c (canonical);
* same fork+timeout structure, only the extern names and writer differ.
* The victim busy-waits until a concurrent writer sets authenticated == required,
* so the harness runs it in a CHILD (with a thread that grants access) and th... |
b-12-var-4-safe | safe | /* b-12-var-4 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: the loop's exit can only happen when a concurrent writer sets counter == threshold.
* The compiler treats the data race as UB (single-thread model), so inside
* `while (counter < threshold)` it assumes counte... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-4 — test harness. 3-state oracle, see b-12-var-0/test.c (canonical).
* The victim busy-waits until a concurrent writer sets counter == threshold,
* so the harness runs it in a CHILD (with a thread that sets counter = threshold)
* and the PARENT waits with a timeout — a hang is the bug:
* child... |
b-12-var-4-unsafe | unsafe | /* b-12-var-4 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: the loop's exit can only happen when a concurrent writer sets counter == threshold.
* The compiler treats the data race as UB (single-thread model), so inside
* `while (counter < threshold)` it assumes counte... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-4 — test harness. 3-state oracle, see b-12-var-0/test.c (canonical).
* The victim busy-waits until a concurrent writer sets counter == threshold,
* so the harness runs it in a CHILD (with a thread that sets counter = threshold)
* and the PARENT waits with a timeout — a hang is the bug:
* child... |
b-12-var-5-safe | safe | /* b-12-var-5 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: the writer sets y = x (downward convergence, y goes from 10 → 5) so that
* x == y. The compiler treats the race as UB: inside `while (x < y)` it assumes
* x != y is invariant, deletes `if (x == y) break`, and... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-5 — test harness. 3-state oracle, see b-12-var-0/test.c (canonical).
* Writer sets y = x (downward convergence: y goes 10 → 5) so the loop's
* exit condition (x == y) becomes reachable. Otherwise identical to var-0.
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <signal.h>
#... |
b-12-var-5-unsafe | unsafe | /* b-12-var-5 — victim (transpilation unit). ISpec1, concurrency: eliminated loop-exit check.
*
* Bug: the writer sets y = x (downward convergence, y goes from 10 → 5) so that
* x == y. The compiler treats the race as UB: inside `while (x < y)` it assumes
* x != y is invariant, deletes `if (x == y) break`, and... | .text
.file "code.c"
.globl victim_wait # -- Begin function victim_wait
.p2align 4, 0x90
.type victim_wait,@function
victim_wait: # @victim_wait
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl victim_wait // -- Begin function victim_wait
.p2align 2
.type victim_wait,@function
victim_wait: // @victim_wait
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-12-var-5 — test harness. 3-state oracle, see b-12-var-0/test.c (canonical).
* Writer sets y = x (downward convergence: y goes 10 → 5) so the loop's
* exit condition (x == y) becomes reachable. Otherwise identical to var-0.
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <signal.h>
#... |
b-14-var-0-safe | safe | /* b-14-var-0 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: `printf("%s\n", NULL)` is undefined behavior. Clang/GCC optimize it to
* `puts(NULL)` at -O2. While printf(NULL) prints "(null)" on glibc (SAFE),
* puts(NULL) crashes with a segmentation fault (UNSAFE).
*... | .text
.file "code.c"
.globl victim_print # -- Begin function victim_print
.p2align 4, 0x90
.type victim_print,@function
victim_print: # @victim_print
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl victim_print // -- Begin function victim_print
.p2align 2
.type victim_print,@function
victim_print: // @victim_print
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
... | /* b-14-var-0 — test harness. 3-state oracle (canonical for B-14 family).
* The victim's printf("%s\n", NULL) is optimized to puts(NULL) which segfaults.
* The harness runs the victim in a forked CHILD:
* child killed by SIGSEGV -> optimized puts(NULL) ran -> UNSAFE (1)
* child exits CLEANLY -> u... |
b-14-var-0-unsafe | unsafe | /* b-14-var-0 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: `printf("%s\n", NULL)` is undefined behavior. Clang/GCC optimize it to
* `puts(NULL)` at -O2. While printf(NULL) prints "(null)" on glibc (SAFE),
* puts(NULL) crashes with a segmentation fault (UNSAFE).
*... | .text
.file "code.c"
.globl victim_print # -- Begin function victim_print
.p2align 4, 0x90
.type victim_print,@function
victim_print: # @victim_print
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl victim_print // -- Begin function victim_print
.p2align 2
.type victim_print,@function
victim_print: // @victim_print
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
... | /* b-14-var-0 — test harness. 3-state oracle (canonical for B-14 family).
* The victim's printf("%s\n", NULL) is optimized to puts(NULL) which segfaults.
* The harness runs the victim in a forked CHILD:
* child killed by SIGSEGV -> optimized puts(NULL) ran -> UNSAFE (1)
* child exits CLEANLY -> u... |
b-14-var-1-safe | safe | /* b-14-var-1 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: `printf("%s\n", s)` inside `print_str` is called with NULL via `victim_print`.
* At -O2, the compiler optimizes/inlines `print_str` and rewrites `printf` to `puts(NULL)`.
* O0 keeps printf (SAFE), O2 rewri... | .text
.file "code.c"
.globl print_str # -- Begin function print_str
.p2align 4, 0x90
.type print_str,@function
print_str: # @print_str
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
... | .text
.file "code.c"
.globl print_str // -- Begin function print_str
.p2align 2
.type print_str,@function
print_str: // @print_str
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def... | /* b-14-var-1 — test harness. 3-state oracle (canonical pattern: b-14-var-0/test.c).
* The victim's printf("%s\n", NULL) is optimized to puts(NULL) which segfaults.
* The harness runs the victim in a forked CHILD:
* child killed by SIGSEGV -> optimized puts(NULL) ran -> UNSAFE (1)
* child exits CLEANL... |
b-14-var-1-unsafe | unsafe | /* b-14-var-1 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: `printf("%s\n", s)` inside `print_str` is called with NULL via `victim_print`.
* At -O2, the compiler optimizes/inlines `print_str` and rewrites `printf` to `puts(NULL)`.
* O0 keeps printf (SAFE), O2 rewri... | .text
.file "code.c"
.globl print_str # -- Begin function print_str
.p2align 4, 0x90
.type print_str,@function
print_str: # @print_str
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
... | .text
.file "code.c"
.globl print_str // -- Begin function print_str
.p2align 2
.type print_str,@function
print_str: // @print_str
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def... | /* b-14-var-1 — test harness. 3-state oracle (canonical pattern: b-14-var-0/test.c).
* The victim's printf("%s\n", NULL) is optimized to puts(NULL) which segfaults.
* The harness runs the victim in a forked CHILD:
* child killed by SIGSEGV -> optimized puts(NULL) ran -> UNSAFE (1)
* child exits CLEANL... |
b-14-var-2-safe | safe | /* b-14-var-2 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: session token lookup helper returns NULL, which is printed via printf("%s\n").
* O0 keeps printf (SAFE), O2 rewrites to puts (UNSAFE).
*/
#include <stdio.h>
char *lookup_session_token(int uid)
{
(void)... | .text
.file "code.c"
.globl lookup_session_token # -- Begin function lookup_session_token
.p2align 4, 0x90
.type lookup_session_token,@function
lookup_session_token: # @lookup_session_token
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, ... | .text
.file "code.c"
.globl lookup_session_token // -- Begin function lookup_session_token
.p2align 2
.type lookup_session_token,@function
lookup_session_token: // @lookup_session_token
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa... | /* b-14-var-2 — test harness. 3-state oracle (refer to b-14-var-0/test.c for canonical).
* The victim's printf("%s\n", NULL) is optimized to puts(NULL) which segfaults.
* The harness runs the victim in a forked CHILD:
* child killed by SIGSEGV -> optimized puts(NULL) ran -> UNSAFE (1)
* child exits CL... |
b-14-var-2-unsafe | unsafe | /* b-14-var-2 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: session token lookup helper returns NULL, which is printed via printf("%s\n").
* O0 keeps printf (SAFE), O2 rewrites to puts (UNSAFE).
*/
#include <stdio.h>
char *lookup_session_token(int uid)
{
(void)... | .text
.file "code.c"
.globl lookup_session_token # -- Begin function lookup_session_token
.p2align 4, 0x90
.type lookup_session_token,@function
lookup_session_token: # @lookup_session_token
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, ... | .text
.file "code.c"
.globl lookup_session_token // -- Begin function lookup_session_token
.p2align 2
.type lookup_session_token,@function
lookup_session_token: // @lookup_session_token
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa... | /* b-14-var-2 — test harness. 3-state oracle (refer to b-14-var-0/test.c for canonical).
* The victim's printf("%s\n", NULL) is optimized to puts(NULL) which segfaults.
* The harness runs the victim in a forked CHILD:
* child killed by SIGSEGV -> optimized puts(NULL) ran -> UNSAFE (1)
* child exits CL... |
b-14-var-3-safe | safe | /* b-14-var-3 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: A struct user is allocated on the heap, its name field set to NULL, and then
* printed. O0 keeps printf (SAFE), O2 rewrites to puts (UNSAFE).
*/
#include <stdio.h>
#include <stdlib.h>
struct user { char *n... | .text
.file "code.c"
.globl victim_print # -- Begin function victim_print
.p2align 4, 0x90
.type victim_print,@function
victim_print: # @victim_print
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl victim_print // -- Begin function victim_print
.p2align 2
.type victim_print,@function
victim_print: // @victim_print
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
... | /* b-14-var-3 — test harness. 3-state oracle.
* Refer to b-14-var-0/test.c for canonical comments/details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>
enum { SAFE = 0, UNSAFE = 1, HARNESS_ERROR = 2 };
#define CLEAN_EXIT 20
/* Provided by code.o */
voi... |
b-14-var-3-unsafe | unsafe | /* b-14-var-3 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: A struct user is allocated on the heap, its name field set to NULL, and then
* printed. O0 keeps printf (SAFE), O2 rewrites to puts (UNSAFE).
*/
#include <stdio.h>
#include <stdlib.h>
struct user { char *n... | .text
.file "code.c"
.globl victim_print # -- Begin function victim_print
.p2align 4, 0x90
.type victim_print,@function
victim_print: # @victim_print
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl victim_print // -- Begin function victim_print
.p2align 2
.type victim_print,@function
victim_print: // @victim_print
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
... | /* b-14-var-3 — test harness. 3-state oracle.
* Refer to b-14-var-0/test.c for canonical comments/details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>
enum { SAFE = 0, UNSAFE = 1, HARNESS_ERROR = 2 };
#define CLEAN_EXIT 20
/* Provided by code.o */
voi... |
b-14-var-4-safe | safe | /* b-14-var-4 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: `printf("%s\n", NULL)` is preceded by a conditional check on `argc` (`argc > 100`).
* Clang/GCC optimize it to `puts(NULL)` at -O2 regardless of the dead branch.
* O0 keeps printf (SAFE), O2 rewrites to pu... | .text
.file "code.c"
.globl victim_print # -- Begin function victim_print
.p2align 4, 0x90
.type victim_print,@function
victim_print: # @victim_print
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl victim_print // -- Begin function victim_print
.p2align 2
.type victim_print,@function
victim_print: // @victim_print
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
... | /* b-14-var-4 — test harness. 3-state oracle (canonical in b-14-var-0/test.c).
* The victim's printf("%s\n", NULL) is optimized to puts(NULL) which segfaults.
* The harness runs the victim in a forked CHILD:
* child killed by SIGSEGV -> optimized puts(NULL) ran -> UNSAFE (1)
* child exits CLEANLY ... |
b-14-var-4-unsafe | unsafe | /* b-14-var-4 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: `printf("%s\n", NULL)` is preceded by a conditional check on `argc` (`argc > 100`).
* Clang/GCC optimize it to `puts(NULL)` at -O2 regardless of the dead branch.
* O0 keeps printf (SAFE), O2 rewrites to pu... | .text
.file "code.c"
.globl victim_print # -- Begin function victim_print
.p2align 4, 0x90
.type victim_print,@function
victim_print: # @victim_print
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl victim_print // -- Begin function victim_print
.p2align 2
.type victim_print,@function
victim_print: // @victim_print
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
... | /* b-14-var-4 — test harness. 3-state oracle (canonical in b-14-var-0/test.c).
* The victim's printf("%s\n", NULL) is optimized to puts(NULL) which segfaults.
* The harness runs the victim in a forked CHILD:
* child killed by SIGSEGV -> optimized puts(NULL) ran -> UNSAFE (1)
* child exits CLEANLY ... |
b-14-var-5-safe | safe | /* b-14-var-5 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: The victim prints a global NULL pointer variable via printf: printf("%s\n", g_message);
* O0 keeps printf (SAFE), O2 rewrites to puts (UNSAFE).
*/
#include <stdio.h>
char *g_message = ((void *)0);
void vi... | .text
.file "code.c"
.globl victim_print # -- Begin function victim_print
.p2align 4, 0x90
.type victim_print,@function
victim_print: # @victim_print
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl victim_print // -- Begin function victim_print
.p2align 2
.type victim_print,@function
victim_print: // @victim_print
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
... | /* b-14-var-5 — test harness. 3-state oracle (canonical in b-14-var-0/test.c).
* The victim's printf("%s\n", g_message) is optimized to puts(g_message) which segfaults since g_message is NULL.
* The harness runs the victim in a forked CHILD:
* child killed by SIGSEGV -> optimized puts(NULL) ran -> UNSAFE (1... |
b-14-var-5-unsafe | unsafe | /* b-14-var-5 — victim (transpilation unit). ISpec3, insecure instructions: illegal NULL printf.
*
* Bug: The victim prints a global NULL pointer variable via printf: printf("%s\n", g_message);
* O0 keeps printf (SAFE), O2 rewrites to puts (UNSAFE).
*/
#include <stdio.h>
char *g_message = ((void *)0);
void vi... | .text
.file "code.c"
.globl victim_print # -- Begin function victim_print
.p2align 4, 0x90
.type victim_print,@function
victim_print: # @victim_print
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl victim_print // -- Begin function victim_print
.p2align 2
.type victim_print,@function
victim_print: // @victim_print
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
... | /* b-14-var-5 — test harness. 3-state oracle (canonical in b-14-var-0/test.c).
* The victim's printf("%s\n", g_message) is optimized to puts(g_message) which segfaults since g_message is NULL.
* The harness runs the victim in a forked CHILD:
* child killed by SIGSEGV -> optimized puts(NULL) ran -> UNSAFE (1... |
b-21-var-0-safe | safe | /* b-21-var-0 — victim (transpilation unit). OSpec1 / DSE-memset, heap variant.
*
* Bug: the trailing memset scrubs the secret before free(); if the optimizer's
* Dead Store Elimination removes that scrub, the secret survives in the freed
* heap block and leaks. O0 keeps it (SAFE), O2 drops it (UNSAFE).
* No... | .text
.file "code.c"
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0 # -- Begin function victim
.LCPI0_0:
.zero 16,72
.text
.globl victim
.p2align 4, 0x90
.type victim,@function
victim: # @victim
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cf... | .text
.file "code.c"
.globl victim // -- Begin function victim
.p2align 2
.type victim,@function
victim: // @victim
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] ... | /* b-21-var-0 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: attacker() malloc()s the same size the victim just freed to reuse the
* block; nothing may allocate between the victim's free() and this malloc().
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
enum { SAFE = 0, UNSAFE... |
b-21-var-0-unsafe | unsafe | /* b-21-var-0 — victim (transpilation unit). OSpec1 / DSE-memset, heap variant.
*
* Bug: the trailing memset scrubs the secret before free(); if the optimizer's
* Dead Store Elimination removes that scrub, the secret survives in the freed
* heap block and leaks. O0 keeps it (SAFE), O2 drops it (UNSAFE).
* No... | .text
.file "code.c"
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0 # -- Begin function victim
.LCPI0_0:
.zero 16,72
.text
.globl victim
.p2align 4, 0x90
.type victim,@function
victim: # @victim
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cf... | .text
.file "code.c"
.globl victim // -- Begin function victim
.p2align 2
.type victim,@function
victim: // @victim
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] ... | /* b-21-var-0 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: attacker() malloc()s the same size the victim just freed to reuse the
* block; nothing may allocate between the victim's free() and this malloc().
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
enum { SAFE = 0, UNSAFE... |
b-21-var-1-safe | safe | /* b-21-var-1 — victim (transpilation unit). OSpec1 / DSE-memset, stack variant.
*
* Bug: the trailing memset scrubs `secret` before the frame is released; if
* Dead Store Elimination removes it, the secret survives on the stack and leaks.
* O0 keeps it (SAFE), O2 drops it (UNSAFE).
* Note: returning a value... | .text
.file "code.c"
.globl process_secret # -- Begin function process_secret
.p2align 4, 0x90
.type process_secret,@function
process_secret: # @process_secret
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa... | .text
.file "code.c"
.globl process_secret // -- Begin function process_secret
.p2align 2
.type process_secret,@function
process_secret: // @process_secret
.cfi_startproc
// %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] // 16-byte Fol... | /* b-21-var-1 — test harness. Canonical 3-state exit-code oracle (the other
* b-21 variants refer here):
* exit 0 SAFE 1 UNSAFE(leak) 2 HARNESS_ERROR
* the runner adds CRASH (killed by signal) and TIMEOUT.
* Not assert-based, so a leak (clean exit 1) stays distinct from a crash.
* Liveness: the ... |
b-21-var-1-unsafe | unsafe | /* b-21-var-1 — victim (transpilation unit). OSpec1 / DSE-memset, stack variant.
*
* Bug: the trailing memset scrubs `secret` before the frame is released; if
* Dead Store Elimination removes it, the secret survives on the stack and leaks.
* O0 keeps it (SAFE), O2 drops it (UNSAFE).
* Note: returning a value... | .text
.file "code.c"
.globl process_secret # -- Begin function process_secret
.p2align 4, 0x90
.type process_secret,@function
process_secret: # @process_secret
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa... | .text
.file "code.c"
.globl process_secret // -- Begin function process_secret
.p2align 2
.type process_secret,@function
process_secret: // @process_secret
.cfi_startproc
// %bb.0:
sub sp, sp, #80
.cfi_def_cfa_offset 80
stp x29, x30, [sp, #64] // 16-byte Fol... | /* b-21-var-1 — test harness. Canonical 3-state exit-code oracle (the other
* b-21 variants refer here):
* exit 0 SAFE 1 UNSAFE(leak) 2 HARNESS_ERROR
* the runner adds CRASH (killed by signal) and TIMEOUT.
* Not assert-based, so a leak (clean exit 1) stays distinct from a crash.
* Liveness: the ... |
b-21-var-2-safe | safe | /* b-21-var-2 — victim (transpilation unit). OSpec1 / DSE-memset, heap struct.
*
* Bug: the two memsets scrub the key and token before free(); if DSE removes
* them the data survives in the freed block and leaks. O0 keeps them (SAFE),
* O2 drops them (UNSAFE).
* Note: aes_key sits at struct offset 36 — past ... | .text
.file "code.c"
.globl victim # -- Begin function victim
.p2align 4, 0x90
.type victim,@function
victim: # @victim
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r... | .text
.file "code.c"
.section .rodata.cst8,"aM",@progbits,8
.p2align 3, 0x0 // -- Begin function victim
.LCPI0_0:
.byte 1 // 0x1
.byte 0 // 0x0
.byte 2 // 0x2
.byte 3 ... | /* b-21-var-2 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: struct-sized heap reuse — the local `struct session` mirrors code.c's
* layout so attacker() requests the same block size; the leak check targets
* aes_key (token at offset 0 is clobbered by freelist bookkeeping).
*/
#include <stdi... |
b-21-var-2-unsafe | unsafe | /* b-21-var-2 — victim (transpilation unit). OSpec1 / DSE-memset, heap struct.
*
* Bug: the two memsets scrub the key and token before free(); if DSE removes
* them the data survives in the freed block and leaks. O0 keeps them (SAFE),
* O2 drops them (UNSAFE).
* Note: aes_key sits at struct offset 36 — past ... | .text
.file "code.c"
.globl victim # -- Begin function victim
.p2align 4, 0x90
.type victim,@function
victim: # @victim
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %r... | .text
.file "code.c"
.section .rodata.cst8,"aM",@progbits,8
.p2align 3, 0x0 // -- Begin function victim
.LCPI0_0:
.byte 1 // 0x1
.byte 0 // 0x0
.byte 2 // 0x2
.byte 3 ... | /* b-21-var-2 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: struct-sized heap reuse — the local `struct session` mirrors code.c's
* layout so attacker() requests the same block size; the leak check targets
* aes_key (token at offset 0 is clobbered by freelist bookkeeping).
*/
#include <stdi... |
b-21-var-3-safe | safe | /* b-21-var-3 — victim (transpilation unit). OSpec1 / DSE-memset, stack variant
* with an early-return branch.
*
* Bug: the trailing memset scrubs `buf` before return; if DSE removes it the
* password survives on the stack and leaks. O0 keeps it (SAFE), O2 drops (UNSAFE).
* Note: the strcmp result is sunk th... | .text
.file "code.c"
.globl authenticate # -- Begin function authenticate
.p2align 4, 0x90
.type authenticate,@function
authenticate: # @authenticate
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl authenticate // -- Begin function authenticate
.p2align 2
.type authenticate,@function
authenticate: // @authenticate
.cfi_startproc
// %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #144] // 16-byte Folded ... | /* b-21-var-3 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: stack reuse (like var-1) — attacker()'s wide `volatile` array reuses
* the victim's just-freed stack frame.
*/
#include <stdio.h>
#include <string.h>
enum { SAFE = 0, UNSAFE = 1, HARNESS_ERROR = 2 };
#define WIN 256
#define... |
b-21-var-3-unsafe | unsafe | /* b-21-var-3 — victim (transpilation unit). OSpec1 / DSE-memset, stack variant
* with an early-return branch.
*
* Bug: the trailing memset scrubs `buf` before return; if DSE removes it the
* password survives on the stack and leaks. O0 keeps it (SAFE), O2 drops (UNSAFE).
* Note: the strcmp result is sunk th... | .text
.file "code.c"
.globl authenticate # -- Begin function authenticate
.p2align 4, 0x90
.type authenticate,@function
authenticate: # @authenticate
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl authenticate // -- Begin function authenticate
.p2align 2
.type authenticate,@function
authenticate: // @authenticate
.cfi_startproc
// %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #144] // 16-byte Folded ... | /* b-21-var-3 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: stack reuse (like var-1) — attacker()'s wide `volatile` array reuses
* the victim's just-freed stack frame.
*/
#include <stdio.h>
#include <string.h>
enum { SAFE = 0, UNSAFE = 1, HARNESS_ERROR = 2 };
#define WIN 256
#define... |
b-21-var-4-safe | safe | /* b-21-var-4 — victim (transpilation unit). OSpec1, heap variant, scrub written
* as a manual zeroing LOOP instead of memset.
*
* Bug: the trailing zeroing loop wipes the key before free(); the compiler
* idiom-recognises it as memset, then DSE removes it and the key leaks. O0 keeps
* it (SAFE), O2 drops it... | .text
.file "code.c"
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0 # -- Begin function victim
.LCPI0_0:
.zero 16,72
.text
.globl victim
.p2align 4, 0x90
.type victim,@function
victim: # @victim
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cf... | .text
.file "code.c"
.globl victim // -- Begin function victim
.p2align 2
.type victim,@function
victim: // @victim
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] ... | /* b-21-var-4 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: heap reuse — attacker() malloc()s the same size the victim freed;
* nothing may allocate in between. (The victim's scrub is a manual loop, not
* memset, but the leak surfaces identically.)
*/
#include <stdio.h>
#include <string.h>
... |
b-21-var-4-unsafe | unsafe | /* b-21-var-4 — victim (transpilation unit). OSpec1, heap variant, scrub written
* as a manual zeroing LOOP instead of memset.
*
* Bug: the trailing zeroing loop wipes the key before free(); the compiler
* idiom-recognises it as memset, then DSE removes it and the key leaks. O0 keeps
* it (SAFE), O2 drops it... | .text
.file "code.c"
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0 # -- Begin function victim
.LCPI0_0:
.zero 16,72
.text
.globl victim
.p2align 4, 0x90
.type victim,@function
victim: # @victim
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cf... | .text
.file "code.c"
.globl victim // -- Begin function victim
.p2align 2
.type victim,@function
victim: // @victim
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] ... | /* b-21-var-4 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: heap reuse — attacker() malloc()s the same size the victim freed;
* nothing may allocate in between. (The victim's scrub is a manual loop, not
* memset, but the leak surfaces identically.)
*/
#include <stdio.h>
#include <string.h>
... |
b-21-var-5-safe | safe | /* b-21-var-5 — victim (transpilation unit). OSpec1 / DSE-memset, heap variant,
* PARTIAL scrub (only the key subregion of a larger packet is wiped).
*
* Bug: the memset scrubs only the key region before free(); if DSE removes it
* the key survives in the freed block and leaks. O0 keeps it (SAFE), O2 drops
* ... | .text
.file "code.c"
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0 # -- Begin function victim
.LCPI0_0:
.zero 16,72
.text
.globl victim
.p2align 4, 0x90
.type victim,@function
victim: # @victim
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cf... | .text
.file "code.c"
.globl victim // -- Begin function victim
.p2align 2
.type victim,@function
victim: // @victim
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] ... | /* b-21-var-5 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: heap reuse of a same-size block; only the key subregion is scrubbed
* by the victim, so only that region can leak.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
enum { SAFE = 0, UNSAFE = 1, HARNESS_ERROR = 2 };
#def... |
b-21-var-5-unsafe | unsafe | /* b-21-var-5 — victim (transpilation unit). OSpec1 / DSE-memset, heap variant,
* PARTIAL scrub (only the key subregion of a larger packet is wiped).
*
* Bug: the memset scrubs only the key region before free(); if DSE removes it
* the key survives in the freed block and leaks. O0 keeps it (SAFE), O2 drops
* ... | .text
.file "code.c"
.section .rodata.cst16,"aM",@progbits,16
.p2align 4, 0x0 # -- Begin function victim
.LCPI0_0:
.zero 16,72
.text
.globl victim
.p2align 4, 0x90
.type victim,@function
victim: # @victim
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cf... | .text
.file "code.c"
.globl victim // -- Begin function victim
.p2align 2
.type victim,@function
victim: // @victim
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] ... | /* b-21-var-5 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: heap reuse of a same-size block; only the key subregion is scrubbed
* by the victim, so only that region can leak.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
enum { SAFE = 0, UNSAFE = 1, HARNESS_ERROR = 2 };
#def... |
b-4-var-0-safe | safe | /* b-4-var-0 — victim (transpilation unit). ISpec1, signed-overflow guard.
*
* Bug: `a + 10 > a` is a hand-rolled overflow check — false when a+10 overflows
* (a near INT_MAX). Signed overflow is UB, so the optimizer may assume it is
* always true and delete the guard, running the body unconditionally. O0 keep... | .text
.file "code.c"
.globl test # -- Begin function test
.p2align 4, 0x90
.type test,@function
test: # @test
.cfi_startproc
# %bb.0:
movl %edi, %ecx
addl $10, %ecx
movl $10, %eax
jo .LBB0_3
# %bb.1:
cmpl %edi, %ecx
jle .LBB0_3
# %bb.2:
pushq %rb... | .text
.file "code.c"
.globl test // -- Begin function test
.p2align 2
.type test,@function
test: // @test
.cfi_startproc
// %bb.0:
mov w8, w0
mov w0, #10 // =0xa
adds w9, w8, #10
b.vs .LBB0_3
// %bb.1:
cmp w9, w8
b.le .LBB0... | /* b-4-var-0 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: feeds a probe near INT_MAX (a+10 overflows, so `a+10 > a` must be
* false) and reads the victim's return value — SAFE if the guard held, UNSAFE if
* it was removed. `a` lives here, not in code.c, to avoid constant folding.
*/
#inclu... |
b-4-var-0-unsafe | unsafe | /* b-4-var-0 — victim (transpilation unit). ISpec1, signed-overflow guard.
*
* Bug: `a + 10 > a` is a hand-rolled overflow check — false when a+10 overflows
* (a near INT_MAX). Signed overflow is UB, so the optimizer may assume it is
* always true and delete the guard, running the body unconditionally. O0 keep... | .text
.file "code.c"
.globl test # -- Begin function test
.p2align 4, 0x90
.type test,@function
test: # @test
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq .L.str(%r... | .text
.file "code.c"
.globl test // -- Begin function test
.p2align 2
.type test,@function
test: // @test
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.... | /* b-4-var-0 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: feeds a probe near INT_MAX (a+10 overflows, so `a+10 > a` must be
* false) and reads the victim's return value — SAFE if the guard held, UNSAFE if
* it was removed. `a` lives here, not in code.c, to avoid constant folding.
*/
#inclu... |
b-4-var-1-safe | safe | /* b-4-var-1 — victim (transpilation unit). ISpec1, signed-overflow guard, +1.
*
* Bug: `a + 1 > a` is a hand-rolled overflow check — false when a+1 overflows
* (a == INT_MAX). Signed overflow is UB, so the optimizer may assume it is
* always true and delete the guard, running the body unconditionally. O0 keep... | .text
.file "code.c"
.globl test # -- Begin function test
.p2align 4, 0x90
.type test,@function
test: # @test
.cfi_startproc
# %bb.0:
movl %edi, %ecx
incl %ecx
movl $10, %eax
jo .LBB0_3
# %bb.1:
cmpl %edi, %ecx
jle .LBB0_3
# %bb.2:
pushq %rbp
.c... | .text
.file "code.c"
.globl test // -- Begin function test
.p2align 2
.type test,@function
test: // @test
.cfi_startproc
// %bb.0:
mov w8, w0
mov w0, #10 // =0xa
adds w9, w8, #1
b.vs .LBB0_3
// %bb.1:
cmp w9, w8
b.le .LBB0_... | /* b-4-var-1 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: feeds a = INT_MAX (a+1 overflows, so `a+1 > a` must be false) and
* reads the victim's return value — SAFE if the guard held, UNSAFE if it was
* removed. `a` lives here, not in code.c, to avoid constant folding.
*/
#include <stdio.h... |
b-4-var-1-unsafe | unsafe | /* b-4-var-1 — victim (transpilation unit). ISpec1, signed-overflow guard, +1.
*
* Bug: `a + 1 > a` is a hand-rolled overflow check — false when a+1 overflows
* (a == INT_MAX). Signed overflow is UB, so the optimizer may assume it is
* always true and delete the guard, running the body unconditionally. O0 keep... | .text
.file "code.c"
.globl test # -- Begin function test
.p2align 4, 0x90
.type test,@function
test: # @test
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq .L.str(%r... | .text
.file "code.c"
.globl test // -- Begin function test
.p2align 2
.type test,@function
test: // @test
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.... | /* b-4-var-1 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: feeds a = INT_MAX (a+1 overflows, so `a+1 > a` must be false) and
* reads the victim's return value — SAFE if the guard held, UNSAFE if it was
* removed. `a` lives here, not in code.c, to avoid constant folding.
*/
#include <stdio.h... |
b-4-var-2-safe | safe | /* b-4-var-2 — victim (transpilation unit). ISpec1, signed-overflow guard,
* auth-bypass framing.
*
* Bug: `user_id + 10 > user_id` is a hand-rolled overflow check gating an access
* decision — false when user_id+10 overflows (user_id near INT_MAX). Signed
* overflow is UB, so the optimizer may assume it is ... | .text
.file "code.c"
.globl authenticate # -- Begin function authenticate
.p2align 4, 0x90
.type authenticate,@function
authenticate: # @authenticate
.cfi_startproc
# %bb.0:
movl %edi, %ecx
addl $10, %ecx
movl $10, %eax
jo .LBB0_3
# %bb.1:
cmpl %edi, %ecx
jle .LB... | .text
.file "code.c"
.globl authenticate // -- Begin function authenticate
.p2align 2
.type authenticate,@function
authenticate: // @authenticate
.cfi_startproc
// %bb.0:
mov w8, w0
mov w0, #10 // =0xa
adds w9, w8, #10
b.vs .LBB0_3
// %bb.1:... | /* b-4-var-2 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: feeds user_id near INT_MAX (user_id+10 overflows, so the guard must
* be false → access denied) and reads the victim's return value — SAFE if the
* guard held, UNSAFE if it was removed (access wrongly granted). The probe lives
* he... |
b-4-var-2-unsafe | unsafe | /* b-4-var-2 — victim (transpilation unit). ISpec1, signed-overflow guard,
* auth-bypass framing.
*
* Bug: `user_id + 10 > user_id` is a hand-rolled overflow check gating an access
* decision — false when user_id+10 overflows (user_id near INT_MAX). Signed
* overflow is UB, so the optimizer may assume it is ... | .text
.file "code.c"
.globl authenticate # -- Begin function authenticate
.p2align 4, 0x90
.type authenticate,@function
authenticate: # @authenticate
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl authenticate // -- Begin function authenticate
.p2align 2
.type authenticate,@function
authenticate: // @authenticate
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
... | /* b-4-var-2 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: feeds user_id near INT_MAX (user_id+10 overflows, so the guard must
* be false → access denied) and reads the victim's return value — SAFE if the
* guard held, UNSAFE if it was removed (access wrongly granted). The probe lives
* he... |
b-4-var-3-safe | safe | /* b-4-var-3 — victim (transpilation unit). ISpec1, signed-overflow guard on a
* struct member.
*
* Bug: `cfg.max_connections + 10 > cfg.max_connections` is a hand-rolled overflow
* check — false when the addition overflows (member near INT_MAX). Signed
* overflow is UB, so the optimizer may assume it is alw... | .text
.file "code.c"
.globl check_limit # -- Begin function check_limit
.p2align 4, 0x90
.type check_limit,@function
check_limit: # @check_limit
.cfi_startproc
# %bb.0:
movl %edi, %ecx
addl $10, %ecx
movl $10, %eax
jo .LBB0_3
# %bb.1:
cmpl %edi, %ecx
jle .LBB0_... | .text
.file "code.c"
.globl check_limit // -- Begin function check_limit
.p2align 2
.type check_limit,@function
check_limit: // @check_limit
.cfi_startproc
// %bb.0:
mov w8, w0
mov w0, #10 // =0xa
adds w9, w8, #10
b.vs .LBB0_3
// %bb.1:
c... | /* b-4-var-3 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: the probe is a `struct Config` (layout mirrored here) passed by value,
* with max_connections near INT_MAX so the member's +10 overflows and the guard
* must be false. The probe lives here, not in code.c, to avoid constant folding.
... |
b-4-var-3-unsafe | unsafe | /* b-4-var-3 — victim (transpilation unit). ISpec1, signed-overflow guard on a
* struct member.
*
* Bug: `cfg.max_connections + 10 > cfg.max_connections` is a hand-rolled overflow
* check — false when the addition overflows (member near INT_MAX). Signed
* overflow is UB, so the optimizer may assume it is alw... | .text
.file "code.c"
.globl check_limit # -- Begin function check_limit
.p2align 4, 0x90
.type check_limit,@function
check_limit: # @check_limit
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register... | .text
.file "code.c"
.globl check_limit // -- Begin function check_limit
.p2align 2
.type check_limit,@function
check_limit: // @check_limit
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.c... | /* b-4-var-3 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: the probe is a `struct Config` (layout mirrored here) passed by value,
* with max_connections near INT_MAX so the member's +10 overflows and the guard
* must be false. The probe lives here, not in code.c, to avoid constant folding.
... |
b-4-var-4-safe | safe | /* b-4-var-4 — victim (transpilation unit). ISpec1, signed-overflow guard behind
* an unrelated early-return branch.
*
* Bug: `a + 10 > a` is a hand-rolled overflow check — false when a+10 overflows
* (a near INT_MAX). Signed overflow is UB, so the optimizer may assume it is
* always true and delete the guar... | .text
.file "code.c"
.globl test # -- Begin function test
.p2align 4, 0x90
.type test,@function
test: # @test
.cfi_startproc
# %bb.0:
movl %edi, %edx
addl $10, %edx
seto %cl
movl $10, %eax
testl %esi, %esi
je .LBB0_4
# %bb.1:
cmpl %edi, %edx
jle... | .text
.file "code.c"
.globl test // -- Begin function test
.p2align 2
.type test,@function
test: // @test
.cfi_startproc
// %bb.0:
adds w10, w0, #10
mov w8, w0
cset w9, vs
mov w0, #10 // =0xa
cbz w1, .LBB0_4
// %bb.1:
cmp w... | /* b-4-var-4 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: passes flag = 1 so the unrelated early-return branch is skipped and
* the overflow guard is reached, with a near-INT_MAX probe (a+10 overflows, so
* the guard must be false). The probe lives here, not in code.c, to avoid folding.
*/... |
b-4-var-4-unsafe | unsafe | /* b-4-var-4 — victim (transpilation unit). ISpec1, signed-overflow guard behind
* an unrelated early-return branch.
*
* Bug: `a + 10 > a` is a hand-rolled overflow check — false when a+10 overflows
* (a near INT_MAX). Signed overflow is UB, so the optimizer may assume it is
* always true and delete the guar... | .text
.file "code.c"
.globl test # -- Begin function test
.p2align 4, 0x90
.type test,@function
test: # @test
.cfi_startproc
# %bb.0:
testl %esi, %esi
je .LBB0_1
# %bb.2:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cf... | .text
.file "code.c"
.globl test // -- Begin function test
.p2align 2
.type test,@function
test: // @test
.cfi_startproc
// %bb.0:
cbz w1, .LBB0_2
// %bb.1:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, ... | /* b-4-var-4 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: passes flag = 1 so the unrelated early-return branch is skipped and
* the overflow guard is reached, with a near-INT_MAX probe (a+10 overflows, so
* the guard must be false). The probe lives here, not in code.c, to avoid folding.
*/... |
b-4-var-5-safe | safe | /* b-4-var-5 — victim (transpilation unit). ISpec1, signed-overflow guard, +50.
*
* Bug: `a + 50 > a` is a hand-rolled overflow check — false when a+50 overflows
* (a within 50 of INT_MAX). Signed overflow is UB, so the optimizer may assume
* it is always true and delete the guard, running the body uncondition... | .text
.file "code.c"
.globl test # -- Begin function test
.p2align 4, 0x90
.type test,@function
test: # @test
.cfi_startproc
# %bb.0:
movl %edi, %ecx
addl $50, %ecx
movl $10, %eax
jo .LBB0_3
# %bb.1:
cmpl %edi, %ecx
jle .LBB0_3
# %bb.2:
pushq %rb... | .text
.file "code.c"
.globl test // -- Begin function test
.p2align 2
.type test,@function
test: // @test
.cfi_startproc
// %bb.0:
mov w8, w0
mov w0, #10 // =0xa
adds w9, w8, #50
b.vs .LBB0_3
// %bb.1:
cmp w9, w8
b.le .LBB0... | /* b-4-var-5 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: feeds a probe within 50 of INT_MAX (a+50 overflows, so `a+50 > a`
* must be false) and reads the victim's return value — SAFE if the guard held,
* UNSAFE if it was removed. `a` lives here, not in code.c, to avoid folding.
*/
#includ... |
b-4-var-5-unsafe | unsafe | /* b-4-var-5 — victim (transpilation unit). ISpec1, signed-overflow guard, +50.
*
* Bug: `a + 50 > a` is a hand-rolled overflow check — false when a+50 overflows
* (a within 50 of INT_MAX). Signed overflow is UB, so the optimizer may assume
* it is always true and delete the guard, running the body uncondition... | .text
.file "code.c"
.globl test # -- Begin function test
.p2align 4, 0x90
.type test,@function
test: # @test
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
leaq .L.str(%r... | .text
.file "code.c"
.globl test // -- Begin function test
.p2align 2
.type test,@function
test: // @test
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.... | /* b-4-var-5 — test harness. 3-state oracle, see b-21-var-1/test.c.
* Special: feeds a probe within 50 of INT_MAX (a+50 overflows, so `a+50 > a`
* must be false) and reads the victim's return value — SAFE if the guard held,
* UNSAFE if it was removed. `a` lives here, not in code.c, to avoid folding.
*/
#includ... |
b-9-var-0-safe | safe | /* b-9-var-0 — victim (transpilation unit). ISpec1, signed-overflow ASSERT, +100.
*
* Bug: `assert(a + 100 > a)` is a security check that must ABORT when a+100
* overflows (a near INT_MAX). Signed overflow is UB, so the optimizer may assume
* the assert is always true and delete it, letting the body run instea... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] // ... | /* b-9-var-0 — test harness. 3-state oracle, see b-21-var-1/test.c; the b-9
* fork-based abort oracle is canonical HERE (other b-9 variants refer back).
* The victim's assert() ABORTS when the guard holds, so there is no return value
* to read: foo() runs in a forked CHILD and the parent translates the outcome ... |
b-9-var-0-unsafe | unsafe | /* b-9-var-0 — victim (transpilation unit). ISpec1, signed-overflow ASSERT, +100.
*
* Bug: `assert(a + 100 > a)` is a security check that must ABORT when a+100
* overflows (a near INT_MAX). Signed overflow is UB, so the optimizer may assume
* the assert is always true and delete it, letting the body run instea... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] // ... | /* b-9-var-0 — test harness. 3-state oracle, see b-21-var-1/test.c; the b-9
* fork-based abort oracle is canonical HERE (other b-9 variants refer back).
* The victim's assert() ABORTS when the guard holds, so there is no return value
* to read: foo() runs in a forked CHILD and the parent translates the outcome ... |
b-9-var-1-safe | safe | /* b-9-var-1 — victim (transpilation unit). ISpec1, signed-overflow ASSERT, +1.
*
* Bug: `assert(a + 1 > a)` must ABORT when a+1 overflows (a == INT_MAX). Signed
* overflow is UB, so the optimizer may assume it is always true and delete the
* assert, letting the body run instead of aborting.
* O0 keeps the a... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] // ... | /* b-9-var-1 — test harness. Fork-based abort oracle, see b-9-var-0/test.c.
* Special: minimal `+1` constant; probe INT_MAX (a+1 overflows) lives here, not
* in code.c, to avoid constant-folding the assert.
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>
#i... |
b-9-var-1-unsafe | unsafe | /* b-9-var-1 — victim (transpilation unit). ISpec1, signed-overflow ASSERT, +1.
*
* Bug: `assert(a + 1 > a)` must ABORT when a+1 overflows (a == INT_MAX). Signed
* overflow is UB, so the optimizer may assume it is always true and delete the
* assert, letting the body run instead of aborting.
* O0 keeps the a... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] // ... | /* b-9-var-1 — test harness. Fork-based abort oracle, see b-9-var-0/test.c.
* Special: minimal `+1` constant; probe INT_MAX (a+1 overflows) lives here, not
* in code.c, to avoid constant-folding the assert.
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>
#i... |
b-9-var-2-safe | safe | /* b-9-var-2 — victim (transpilation unit). ISpec1, signed-overflow ASSERT,
* auth-bypass framing.
*
* Bug: `assert(session_id + 100 > session_id)` must ABORT when the addition
* overflows (session_id near INT_MAX). Signed overflow is UB, so the optimizer
* may assume it is always true and delete the assert,... | .text
.file "code.c"
.globl authenticate # -- Begin function authenticate
.p2align 4, 0x90
.type authenticate,@function
authenticate: # @authenticate
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl authenticate // -- Begin function authenticate
.p2align 2
.type authenticate,@function
authenticate: // @authenticate
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp... | /* b-9-var-2 — test harness. Fork-based abort oracle, see b-9-var-0/test.c.
* Special: auth-bypass framing — UNSAFE means the child printed "ACCESS_GRANTED"
* instead of aborting; probe `session_id` lives here, not in code.c.
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#in... |
b-9-var-2-unsafe | unsafe | /* b-9-var-2 — victim (transpilation unit). ISpec1, signed-overflow ASSERT,
* auth-bypass framing.
*
* Bug: `assert(session_id + 100 > session_id)` must ABORT when the addition
* overflows (session_id near INT_MAX). Signed overflow is UB, so the optimizer
* may assume it is always true and delete the assert,... | .text
.file "code.c"
.globl authenticate # -- Begin function authenticate
.p2align 4, 0x90
.type authenticate,@function
authenticate: # @authenticate
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_regis... | .text
.file "code.c"
.globl authenticate // -- Begin function authenticate
.p2align 2
.type authenticate,@function
authenticate: // @authenticate
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp... | /* b-9-var-2 — test harness. Fork-based abort oracle, see b-9-var-0/test.c.
* Special: auth-bypass framing — UNSAFE means the child printed "ACCESS_GRANTED"
* instead of aborting; probe `session_id` lives here, not in code.c.
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#in... |
b-9-var-3-safe | safe | /* b-9-var-3 — victim (transpilation unit). ISpec1, signed-overflow ASSERT on a
* struct member.
*
* Bug: `assert(req.size + 100 > req.size)` must ABORT when the member's addition
* overflows (size near INT_MAX). Signed overflow is UB, so the optimizer may
* assume it is always true and delete the assert, le... | .text
.file "code.c"
.globl process # -- Begin function process
.p2align 4, 0x90
.type process,@function
process: # @process
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq... | .text
.file "code.c"
.globl process // -- Begin function process
.p2align 2
.type process,@function
process: // @process
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] ... | /* b-9-var-3 — test harness. Fork-based abort oracle, see b-9-var-0/test.c.
* Special: struct-member guard — the local `struct Request` mirrors code.c's
* layout so the probe struct matches; the child runs process(req).
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include ... |
b-9-var-3-unsafe | unsafe | /* b-9-var-3 — victim (transpilation unit). ISpec1, signed-overflow ASSERT on a
* struct member.
*
* Bug: `assert(req.size + 100 > req.size)` must ABORT when the member's addition
* overflows (size near INT_MAX). Signed overflow is UB, so the optimizer may
* assume it is always true and delete the assert, le... | .text
.file "code.c"
.globl process # -- Begin function process
.p2align 4, 0x90
.type process,@function
process: # @process
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq... | .text
.file "code.c"
.globl process // -- Begin function process
.p2align 2
.type process,@function
process: // @process
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] ... | /* b-9-var-3 — test harness. Fork-based abort oracle, see b-9-var-0/test.c.
* Special: struct-member guard — the local `struct Request` mirrors code.c's
* layout so the probe struct matches; the child runs process(req).
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include ... |
b-9-var-4-safe | safe | /* b-9-var-4 — victim (transpilation unit). ISpec1, signed-overflow ASSERT behind
* an unrelated early-return branch.
*
* Bug: `assert(a + 100 > a)` must ABORT when a+100 overflows (a near INT_MAX).
* Signed overflow is UB, so the optimizer may assume it is always true and delete
* the assert even though an ... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] // ... | /* b-9-var-4 — test harness. Fork-based abort oracle, see b-9-var-0/test.c.
* Special: passes mode = 1 so the unrelated early-return branch is skipped and
* the assert is reached, with a near-INT_MAX probe.
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>
#i... |
b-9-var-4-unsafe | unsafe | /* b-9-var-4 — victim (transpilation unit). ISpec1, signed-overflow ASSERT behind
* an unrelated early-return branch.
*
* Bug: `assert(a + 100 > a)` must ABORT when a+100 overflows (a near INT_MAX).
* Signed overflow is UB, so the optimizer may assume it is always true and delete
* the assert even though an ... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] // ... | /* b-9-var-4 — test harness. Fork-based abort oracle, see b-9-var-0/test.c.
* Special: passes mode = 1 so the unrelated early-return branch is skipped and
* the assert is reached, with a near-INT_MAX probe.
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>
#i... |
b-9-var-5-safe | safe | /* b-9-var-5 — victim (transpilation unit). ISpec1, signed-overflow ASSERT, +200.
*
* Bug: `assert(a + 200 > a)` must ABORT when a+200 overflows (a within 200 of
* INT_MAX). Signed overflow is UB, so the optimizer may assume it is always true
* and delete the assert, letting the body run instead of aborting.
... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] // ... | /* b-9-var-5 — test harness. Fork-based abort oracle, see b-9-var-0/test.c.
* Special: larger `+200` constant; probe INT_MAX (a+200 overflows) lives here,
* not in code.c, to avoid constant-folding the assert.
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>... |
b-9-var-5-unsafe | unsafe | /* b-9-var-5 — victim (transpilation unit). ISpec1, signed-overflow ASSERT, +200.
*
* Bug: `assert(a + 200 > a)` must ABORT when a+200 overflows (a within 200 of
* INT_MAX). Signed overflow is UB, so the optimizer may assume it is always true
* and delete the assert, letting the body run instead of aborting.
... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
pushq %rbx
pushq... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-32]! // 16-byte Folded Spill
.cfi_def_cfa_offset 32
str x19, [sp, #16] // ... | /* b-9-var-5 — test harness. Fork-based abort oracle, see b-9-var-0/test.c.
* Special: larger `+200` constant; probe INT_MAX (a+200 overflows) lives here,
* not in code.c, to avoid constant-folding the assert.
*/
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>... |
l-30-var-0-safe | safe | /* l-30-var-0 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler assumes no data race (single-thread model) and eliminates the
* second call to foo() (CSE). Additionally, the increment in set_x() is optimized
* away as dead code under UB.
* ... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl x(%rip), %ea... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi... | /* l-30-var-0 — test harness. 3-state oracle (canonical for L-30 family).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second foo() call was eliminated).
* Under SAFE (O0), x increments to a large number so k and m are large.
* Und... |
l-30-var-0-unsafe | unsafe | /* l-30-var-0 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler assumes no data race (single-thread model) and eliminates the
* second call to foo() (CSE). Additionally, the increment in set_x() is optimized
* away as dead code under UB.
* ... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, %eax
... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi... | /* l-30-var-0 — test harness. 3-state oracle (canonical for L-30 family).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second foo() call was eliminated).
* Under SAFE (O0), x increments to a large number so k and m are large.
* Und... |
l-30-var-1-safe | safe | /* l-30-var-1 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler assumes no data race (single-thread model) and eliminates the
* second call to foo() (CSE). Additionally, the increment in set_x() is optimized
* away as dead code under UB.
* ... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl x(%rip), %ea... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi... | /* l-30-var-1 — test harness. 3-state oracle (canonical for L-30 family: l-30-var-0/test.c).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second foo() call was eliminated).
* Under SAFE (O0), x increments to a large number so k and m... |
l-30-var-1-unsafe | unsafe | /* l-30-var-1 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler assumes no data race (single-thread model) and eliminates the
* second call to foo() (CSE). Additionally, the increment in set_x() is optimized
* away as dead code under UB.
* ... | .text
.file "code.c"
.globl foo # -- Begin function foo
.p2align 4, 0x90
.type foo,@function
foo: # @foo
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl %edi, %eax
... | .text
.file "code.c"
.globl foo // -- Begin function foo
.p2align 2
.type foo,@function
foo: // @foo
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w29, 16
.cfi... | /* l-30-var-1 — test harness. 3-state oracle (canonical for L-30 family: l-30-var-0/test.c).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second foo() call was eliminated).
* Under SAFE (O0), x increments to a large number so k and m... |
l-30-var-2-safe | safe | /* l-30-var-2 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler assumes no data race (single-thread model) and eliminates the
* second call to get_token() (CSE) across a never-taken conditional branch.
* Additionally, the increment in rotate_... | .text
.file "code.c"
.globl get_token # -- Begin function get_token
.p2align 4, 0x90
.type get_token,@function
get_token: # @get_token
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
... | .text
.file "code.c"
.globl get_token // -- Begin function get_token
.p2align 2
.type get_token,@function
get_token: // @get_token
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def... | /* l-30-var-2 — test harness. 3-state oracle (canonical: see l-30-var-0/test.c).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second get_token() call was eliminated).
* Under SAFE (O0), token increments to a large number so k and m a... |
l-30-var-2-unsafe | unsafe | /* l-30-var-2 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler assumes no data race (single-thread model) and eliminates the
* second call to get_token() (CSE) across a never-taken conditional branch.
* Additionally, the increment in rotate_... | .text
.file "code.c"
.globl get_token # -- Begin function get_token
.p2align 4, 0x90
.type get_token,@function
get_token: # @get_token
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
... | .text
.file "code.c"
.globl get_token // -- Begin function get_token
.p2align 2
.type get_token,@function
get_token: // @get_token
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def... | /* l-30-var-2 — test harness. 3-state oracle (canonical: see l-30-var-0/test.c).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second get_token() call was eliminated).
* Under SAFE (O0), token increments to a large number so k and m a... |
l-30-var-3-safe | safe | /* l-30-var-3 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler CSE-eliminates second get_val() call + constant-propagates
* arr[0]=1 via UB (data race). get_val(100)=101 => k = 101, m = 102.
* O0 keeps the second call + increments global (SA... | .text
.file "code.c"
.globl get_val # -- Begin function get_val
.p2align 4, 0x90
.type get_val,@function
get_val: # @get_val
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl ... | .text
.file "code.c"
.globl get_val // -- Begin function get_val
.p2align 2
.type get_val,@function
get_val: // @get_val
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w... | /* l-30-var-3 — test harness. 3-state oracle (canonical for L-30 family).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second get_val() call was eliminated).
* Under SAFE (O0), arr[0] increments to a large number so k and m are large... |
l-30-var-3-unsafe | unsafe | /* l-30-var-3 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler CSE-eliminates second get_val() call + constant-propagates
* arr[0]=1 via UB (data race). get_val(100)=101 => k = 101, m = 102.
* O0 keeps the second call + increments global (SA... | .text
.file "code.c"
.globl get_val # -- Begin function get_val
.p2align 4, 0x90
.type get_val,@function
get_val: # @get_val
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl ... | .text
.file "code.c"
.globl get_val // -- Begin function get_val
.p2align 2
.type get_val,@function
get_val: // @get_val
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w... | /* l-30-var-3 — test harness. 3-state oracle (canonical for L-30 family).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second get_val() call was eliminated).
* Under SAFE (O0), arr[0] increments to a large number so k and m are large... |
l-30-var-4-safe | safe | /* l-30-var-4 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler assumes no data race (single-thread model) and CSE-eliminates the
* second compute() call and constant-propagates counter=1LL via UB (data race).
* O0 keeps the second call + inc... | .text
.file "code.c"
.globl compute # -- Begin function compute
.p2align 4, 0x90
.type compute,@function
compute: # @compute
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq ... | .text
.file "code.c"
.globl compute // -- Begin function compute
.p2align 2
.type compute,@function
compute: // @compute
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w... | /* l-30-var-4 — test harness. 3-state oracle (referring to l-30-var-0/test.c as canonical).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second compute() call was eliminated).
* Under SAFE (O0), counter increments to a large number s... |
l-30-var-4-unsafe | unsafe | /* l-30-var-4 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler assumes no data race (single-thread model) and CSE-eliminates the
* second compute() call and constant-propagates counter=1LL via UB (data race).
* O0 keeps the second call + inc... | .text
.file "code.c"
.globl compute # -- Begin function compute
.p2align 4, 0x90
.type compute,@function
compute: # @compute
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl ... | .text
.file "code.c"
.globl compute // -- Begin function compute
.p2align 2
.type compute,@function
compute: // @compute
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cfa w... | /* l-30-var-4 — test harness. 3-state oracle (referring to l-30-var-0/test.c as canonical).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second compute() call was eliminated).
* Under SAFE (O0), counter increments to a large number s... |
l-30-var-5-safe | safe | /* l-30-var-5 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler CSE-eliminates second validate() call inside run_check() (CSE) because
* the global variable version is assumed to be invariant. Additionally, the increment
* in bump_version() i... | .text
.file "code.c"
.globl validate # -- Begin function validate
.p2align 4, 0x90
.type validate,@function
validate: # @validate
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
mo... | .text
.file "code.c"
.globl validate // -- Begin function validate
.p2align 2
.type validate,@function
validate: // @validate
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cf... | /* l-30-var-5 — test harness. 3-state oracle (canonical structure in l-30-var-0/test.c).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second validate() call was eliminated).
* Under SAFE (O0), version increments to a large number so ... |
l-30-var-5-unsafe | unsafe | /* l-30-var-5 — victim (transpilation unit). ISpec1, eliminate critical memory operation: redundant function call.
*
* Bug: compiler CSE-eliminates second validate() call inside run_check() (CSE) because
* the global variable version is assumed to be invariant. Additionally, the increment
* in bump_version() i... | .text
.file "code.c"
.globl validate # -- Begin function validate
.p2align 4, 0x90
.type validate,@function
validate: # @validate
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
mo... | .text
.file "code.c"
.globl validate // -- Begin function validate
.p2align 2
.type validate,@function
validate: // @validate
.cfi_startproc
// %bb.0:
stp x29, x30, [sp, #-16]! // 16-byte Folded Spill
.cfi_def_cfa_offset 16
mov x29, sp
.cfi_def_cf... | /* l-30-var-5 — test harness. 3-state oracle (canonical structure in l-30-var-0/test.c).
* Checks if the values m and k are small (indicating that the background thread
* increments were optimized away and/or the second validate() call was eliminated).
* Under SAFE (O0), version increments to a large number so ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.