	.file	"54825891.c"
	.intel_syntax noprefix
	.text
	.globl	__VERIFIER_assert
	.type	__VERIFIER_assert, @function
__VERIFIER_assert:
.LFB0:
	.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	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L5
	nop
.L3:
	mov	eax, 0
	call	__VERIFIER_error@PLT
.L5:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	__VERIFIER_assert, .-__VERIFIER_assert
	.globl	bar
	.type	bar, @function
bar:
.LFB1:
	.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
	call	__VERIFIER_nondet_int@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	bar, .-bar
	.globl	foo
	.type	foo, @function
foo:
.LFB2:
	.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
	call	__VERIFIER_nondet_int@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	foo, .-foo
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1040
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1032[rbp], 0
	jmp	.L11
.L12:
	call	__VERIFIER_nondet_int@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	mov	BYTE PTR -1008[rbp+rax], dl
	add	DWORD PTR -1032[rbp], 1
.L11:
	cmp	DWORD PTR -1032[rbp], 999
	jle	.L12
	mov	DWORD PTR -1032[rbp], 0
	jmp	.L13
.L28:
	call	__VERIFIER_nondet_int@PLT
	mov	DWORD PTR -1020[rbp], eax
	cmp	DWORD PTR -1020[rbp], 0
	je	.L14
	mov	eax, -1
	jmp	.L31
.L14:
	call	__VERIFIER_nondet_int@PLT
	mov	DWORD PTR -1016[rbp], eax
	cmp	DWORD PTR -1016[rbp], 0
	jns	.L16
	mov	eax, -1
	jmp	.L31
.L16:
	mov	DWORD PTR -1024[rbp], 0
	jmp	.L17
.L27:
	lea	rax, -1036[rbp]
	mov	rdi, rax
	call	foo
	mov	DWORD PTR -1020[rbp], eax
	cmp	DWORD PTR -1020[rbp], 0
	je	.L18
	cmp	DWORD PTR -1020[rbp], 1
	jne	.L19
.L18:
	mov	eax, 1
	jmp	.L31
.L19:
	cmp	DWORD PTR -1020[rbp], -1
	je	.L33
	mov	DWORD PTR -1028[rbp], 0
	jmp	.L22
.L24:
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	cmp	al, 1
	jne	.L23
	mov	eax, 1000
	sub	eax, DWORD PTR -1032[rbp]
	cdqe
	mov	edx, DWORD PTR -1032[rbp]
	add	edx, 1
	lea	rcx, -1008[rbp]
	movsx	rdx, edx
	lea	rsi, [rcx+rdx]
	lea	rcx, -1008[rbp]
	mov	edx, DWORD PTR -1032[rbp]
	movsx	rdx, edx
	add	rcx, rdx
	mov	rdx, rax
	mov	rdi, rcx
	call	memmove@PLT
.L23:
	add	DWORD PTR -1028[rbp], 1
.L22:
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	test	al, al
	jne	.L24
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	bar
	mov	DWORD PTR -1020[rbp], eax
	cmp	DWORD PTR -1020[rbp], -1
	jne	.L34
	lea	rax, -1008[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1012[rbp], eax
	cmp	DWORD PTR -1012[rbp], 20
	jle	.L26
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	mov	BYTE PTR -1008[rbp+rax], 0
	jmp	.L21
.L26:
	cmp	DWORD PTR -1012[rbp], 0
	jle	.L21
	mov	eax, DWORD PTR -1032[rbp]
	cdqe
	mov	BYTE PTR -1008[rbp+rax], -1
	jmp	.L21
.L33:
	nop
	jmp	.L21
.L34:
	nop
.L21:
	add	DWORD PTR -1024[rbp], 1
.L17:
	mov	eax, DWORD PTR -1024[rbp]
	cmp	eax, DWORD PTR -1016[rbp]
	jl	.L27
	add	DWORD PTR -1032[rbp], 1
.L13:
	cmp	DWORD PTR -1032[rbp], 999
	jle	.L28
	cmp	DWORD PTR -1024[rbp], 0
	js	.L29
	cmp	DWORD PTR -1024[rbp], 1000
	jg	.L29
	mov	eax, 1
	jmp	.L30
.L29:
	mov	eax, 0
.L30:
	mov	edi, eax
	call	__VERIFIER_assert
	mov	eax, 1
.L31:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"54825891.c"
	.text
	.align	2
	.global	__VERIFIER_assert
	.syntax unified
	.arm
	.fpu softvfp
	.type	__VERIFIER_assert, %function
__VERIFIER_assert:
	@ 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, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	nop
.L3:
	bl	__VERIFIER_error
.L5:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	__VERIFIER_assert, .-__VERIFIER_assert
	.align	2
	.global	bar
	.syntax unified
	.arm
	.fpu softvfp
	.type	bar, %function
bar:
	@ 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]
	bl	__VERIFIER_nondet_int
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	bar, .-bar
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ 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]
	bl	__VERIFIER_nondet_int
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	foo, .-foo
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	sub	sp, sp, #8
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1032]
	b	.L11
.L12:
	bl	__VERIFIER_nondet_int
	mov	r3, r0
	and	r1, r3, #255
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1032]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-1032]
	add	r3, r3, #1
	str	r3, [fp, #-1032]
.L11:
	ldr	r3, [fp, #-1032]
	cmp	r3, #1000
	blt	.L12
	mov	r3, #0
	str	r3, [fp, #-1032]
	b	.L13
.L28:
	bl	__VERIFIER_nondet_int
	str	r0, [fp, #-1020]
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	beq	.L14
	mvn	r3, #0
	b	.L31
.L14:
	bl	__VERIFIER_nondet_int
	str	r0, [fp, #-1016]
	ldr	r3, [fp, #-1016]
	cmp	r3, #0
	bge	.L16
	mvn	r3, #0
	b	.L31
.L16:
	mov	r3, #0
	str	r3, [fp, #-1024]
	b	.L17
.L27:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	foo
	str	r0, [fp, #-1020]
	ldr	r3, [fp, #-1020]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-1020]
	cmp	r3, #1
	bne	.L19
.L18:
	mov	r3, #1
	b	.L31
.L19:
	ldr	r3, [fp, #-1020]
	cmn	r3, #1
	beq	.L33
	mov	r3, #0
	str	r3, [fp, #-1028]
	b	.L22
.L24:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1032]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L23
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1032]
	add	r0, r2, r3
	ldr	r3, [fp, #-1032]
	add	r3, r3, #1
	sub	r2, fp, #1008
	add	r1, r2, r3
	ldr	r3, [fp, #-1032]
	rsb	r3, r3, #1000
	mov	r2, r3
	bl	memmove
.L23:
	ldr	r3, [fp, #-1028]
	add	r3, r3, #1
	str	r3, [fp, #-1028]
.L22:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1028]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L24
	sub	r3, fp, #1008
	mov	r0, r3
	bl	bar
	str	r0, [fp, #-1020]
	ldr	r3, [fp, #-1020]
	cmn	r3, #1
	bne	.L34
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1012]
	ldr	r3, [fp, #-1012]
	cmp	r3, #20
	ble	.L26
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1032]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L21
.L26:
	ldr	r3, [fp, #-1012]
	cmp	r3, #0
	ble	.L21
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1032]
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3]
	b	.L21
.L33:
	nop
	b	.L21
.L34:
	nop
.L21:
	ldr	r3, [fp, #-1024]
	add	r3, r3, #1
	str	r3, [fp, #-1024]
.L17:
	ldr	r2, [fp, #-1024]
	ldr	r3, [fp, #-1016]
	cmp	r2, r3
	blt	.L27
	ldr	r3, [fp, #-1032]
	add	r3, r3, #1
	str	r3, [fp, #-1032]
.L13:
	ldr	r3, [fp, #-1032]
	cmp	r3, #1000
	blt	.L28
	ldr	r3, [fp, #-1024]
	cmp	r3, #0
	blt	.L29
	ldr	r3, [fp, #-1024]
	cmp	r3, #1000
	bgt	.L29
	mov	r3, #1
	b	.L30
.L29:
	mov	r3, #0
.L30:
	mov	r0, r3
	bl	__VERIFIER_assert
	mov	r3, #1
.L31:
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
