	.file	"15762425.c"
	.intel_syntax noprefix
	.text
	.local	top
	.comm	top,4,4
	.local	arr
	.comm	arr,20,16
	.globl	m
	.bss
	.align 32
	.type	m, @object
	.size	m, 40
m:
	.zero	40
	.globl	flag
	.type	flag, @object
	.size	flag, 1
flag:
	.zero	1
	.text
	.globl	error
	.type	error, @function
error:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
.L2:
	mov	eax, 0
	call	__VERIFIER_error@PLT
	.cfi_endproc
.LFE0:
	.size	error, .-error
	.globl	inc_top
	.type	inc_top, @function
inc_top:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR top[rip]
	add	eax, 1
	mov	DWORD PTR top[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	inc_top, .-inc_top
	.globl	dec_top
	.type	dec_top, @function
dec_top:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR top[rip]
	sub	eax, 1
	mov	DWORD PTR top[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	dec_top, .-dec_top
	.globl	get_top
	.type	get_top, @function
get_top:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR top[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	get_top, .-get_top
	.globl	stack_empty
	.type	stack_empty, @function
stack_empty:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	stack_empty, .-stack_empty
	.section	.rodata
.LC0:
	.string	"stack overflow"
	.text
	.globl	push
	.type	push, @function
push:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR top[rip]
	cmp	eax, 5
	jne	.L9
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L10
.L9:
	call	get_top
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	call	inc_top
	mov	eax, 0
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	push, .-push
	.section	.rodata
.LC1:
	.string	"stack underflow"
	.text
	.globl	pop
	.type	pop, @function
pop:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, DWORD PTR top[rip]
	test	eax, eax
	jne	.L12
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, -2
	jmp	.L13
.L12:
	call	dec_top
	call	get_top
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pop, .-pop
	.globl	t1
	.type	t1, @function
t1:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L15
.L21:
	mov	eax, 5
	sub	eax, DWORD PTR -8[rbp]
	test	eax, eax
	js	.L16
	cmp	DWORD PTR -8[rbp], 0
	js	.L16
	mov	eax, 1
	jmp	.L17
.L16:
	mov	eax, 0
.L17:
	mov	edi, eax
	mov	eax, 0
	call	__CPROVER_assume@PLT
	mov	eax, 5
	sub	eax, DWORD PTR -8[rbp]
	test	eax, eax
	js	.L18
	cmp	DWORD PTR -8[rbp], 0
	js	.L18
	mov	eax, 1
	jmp	.L19
.L18:
	mov	eax, 0
.L19:
	mov	edi, eax
	mov	eax, 0
	call	__CPROVER_assume@PLT
	lea	rdi, m[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, 0
	call	__VERIFIER_nondet_uint@PLT
	mov	edx, eax
	mov	ecx, edx
	mov	eax, 3435973837
	imul	rax, rcx
	shr	rax, 32
	shr	eax, 2
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	sub	edx, eax
	mov	DWORD PTR -4[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, arr[rip]
	call	push
	cmp	eax, -1
	jne	.L20
	call	error
.L20:
	lea	rdi, m[rip]
	call	pthread_mutex_unlock@PLT
	add	DWORD PTR -8[rbp], 1
.L15:
	cmp	DWORD PTR -8[rbp], 4
	jle	.L21
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	t1, .-t1
	.globl	t2
	.type	t2, @function
t2:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L23
.L27:
	mov	eax, 5
	sub	eax, DWORD PTR -4[rbp]
	test	eax, eax
	js	.L24
	cmp	DWORD PTR -4[rbp], 0
	js	.L24
	mov	eax, 1
	jmp	.L25
.L24:
	mov	eax, 0
.L25:
	mov	edi, eax
	mov	eax, 0
	call	__CPROVER_assume@PLT
	lea	rdi, m[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR top[rip]
	test	eax, eax
	jle	.L26
	lea	rdi, arr[rip]
	call	pop
	cmp	eax, -2
	jne	.L26
	call	error
.L26:
	lea	rdi, m[rip]
	call	pthread_mutex_unlock@PLT
	add	DWORD PTR -4[rbp], 1
.L23:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L27
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	t2, .-t2
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	lea	rdi, m[rip]
	call	pthread_mutex_init@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, t1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, t2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"15762425.c"
	.text
	.local	top
	.comm	top,4,4
	.local	arr
	.comm	arr,20,4
	.comm	m,24,4
	.global	flag
	.bss
	.type	flag, %object
	.size	flag, 1
flag:
	.space	1
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
.L2:
	bl	__VERIFIER_error
	.size	error, .-error
	.align	2
	.global	inc_top
	.syntax unified
	.arm
	.fpu softvfp
	.type	inc_top, %function
inc_top:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L4
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	top
	.size	inc_top, .-inc_top
	.align	2
	.global	dec_top
	.syntax unified
	.arm
	.fpu softvfp
	.type	dec_top, %function
dec_top:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L7
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L7
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	top
	.size	dec_top, .-dec_top
	.align	2
	.global	get_top
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_top, %function
get_top:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	top
	.size	get_top, .-get_top
	.align	2
	.global	stack_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_empty, %function
stack_empty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	stack_empty, .-stack_empty
	.section	.rodata
	.align	2
.LC0:
	.ascii	"stack overflow\000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L15
	ldr	r0, .L17+4
	bl	puts
	mvn	r3, #0
	b	.L16
.L15:
	bl	get_top
	mov	r3, r0
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	bl	inc_top
	mov	r3, #0
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	top
	.word	.LC0
	.size	push, .-push
	.section	.rodata
	.align	2
.LC1:
	.ascii	"stack underflow\000"
	.text
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L22
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L22+4
	bl	puts
	mvn	r3, #1
	b	.L21
.L20:
	bl	dec_top
	bl	get_top
	mov	r3, r0
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	top
	.word	.LC1
	.size	pop, .-pop
	.align	2
	.global	t1
	.syntax unified
	.arm
	.fpu softvfp
	.type	t1, %function
t1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L25
.L31:
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #5
	cmp	r3, #0
	blt	.L26
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L26
	mov	r3, #1
	b	.L27
.L26:
	mov	r3, #0
.L27:
	mov	r0, r3
	bl	__CPROVER_assume
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #5
	cmp	r3, #0
	blt	.L28
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L28
	mov	r3, #1
	b	.L29
.L28:
	mov	r3, #0
.L29:
	mov	r0, r3
	bl	__CPROVER_assume
	ldr	r0, .L32
	bl	pthread_mutex_lock
	bl	__VERIFIER_nondet_uint
	mov	r2, r0
	ldr	r3, .L32+4
	umull	r1, r3, r2, r3
	lsr	r1, r3, #2
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L32+8
	bl	push
	mov	r3, r0
	cmn	r3, #1
	bne	.L30
	bl	error
.L30:
	ldr	r0, .L32
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L31
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	m
	.word	-858993459
	.word	arr
	.size	t1, .-t1
	.align	2
	.global	t2
	.syntax unified
	.arm
	.fpu softvfp
	.type	t2, %function
t2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L35
.L39:
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #5
	cmp	r3, #0
	blt	.L36
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L36
	mov	r3, #1
	b	.L37
.L36:
	mov	r3, #0
.L37:
	mov	r0, r3
	bl	__CPROVER_assume
	ldr	r0, .L40
	bl	pthread_mutex_lock
	ldr	r3, .L40+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L38
	ldr	r0, .L40+8
	bl	pop
	mov	r3, r0
	cmn	r3, #2
	bne	.L38
	bl	error
.L38:
	ldr	r0, .L40
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L35:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L39
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	m
	.word	top
	.word	arr
	.size	t2, .-t2
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, .L45+4
	bl	pthread_mutex_init
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L45+8
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L45+12
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC2
	.word	m
	.word	t1
	.word	t2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
