#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
struct stat {
  int st_size;
};
typedef int off_t;

/* Variables and functions */
int /*<<< orphan*/ O_WRONLY;
int /*<<< orphan*/ SEEK_CUR;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ __NR_truncate;
scalar_t__ errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int lseek(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ memset(int *, int /*<<< orphan*/, int);
int open(char const *, int /*<<< orphan*/);
scalar_t__ stat(char const *, struct stat *);
int /*<<< orphan*/ stderr;
char *strerror(scalar_t__);
int syscall(int /*<<< orphan*/, char const *, int);
int write(int, int *, int);
int truncate(const char *path, off_t length) {
  struct stat f_info;
  errno = 0;
  if (stat(path, &f_info) != 0) {
    fprintf(stderr, "Failed to stat file (%s): %s\n", path, strerror(errno));
    return -1;
  }
  int cur_max = f_info.st_size;
  int write_size = cur_max - length;
  errno = 0;
  int path_fd = open(path, O_WRONLY);
  if (path_fd < 0) {
    fprintf(stderr, "Failed to open file (%s) for writing: %s\n", path,
            strerror(errno));
    return -1;
  }
  if (length == cur_max || length > cur_max) {
    return syscall(__NR_truncate, path, length);
  } else {
    int to_write[length];
    int store_pos;
    memset(to_write, 0, length);
    store_pos = lseek(path_fd, 0, SEEK_CUR);
    if (store_pos < 0) {
      fprintf(stderr, "Failed to seek in file (%s): %s", path, strerror(errno));
      return -1;
    }
    lseek(path_fd, length, SEEK_SET);
    int written = write(path_fd, to_write, write_size);
    if (written < write_size) {
      fprintf(stderr, "Warning wrote %d bytes, expected to write %d!\n",
              written, write_size);
    }
    if (lseek(path_fd, store_pos, SEEK_SET) < 0) {
      fprintf(stderr, "Failed to seek back to original offset: %s",
              strerror(errno));
    }
    return syscall(__NR_truncate, path, length);
  }
}


x86 assembly (clang, -O0):
<truncate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    0x2e37(%rip),%rax
movq   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1080 <stat@plt>
cmp    $0x0,%rax
je     11fe <truncate+0x7e>
mov    0x2e1a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    0x2dfe(%rip),%rax
mov    (%rax),%rdi
call   10a0 <strerror@plt>
mov    -0x54(%rbp),%edi
mov    -0x50(%rbp),%rdx
mov    %rax,%rcx
lea    0xe15(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1416 <truncate+0x296>
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    0x2dbc(%rip),%rax
movq   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    0x2d8a(%rip),%rax
mov    (%rax),%esi
call   1090 <open@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    1281 <truncate+0x101>
mov    0x2d97(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    0x2d7b(%rip),%rax
mov    (%rax),%rdi
call   10a0 <strerror@plt>
mov    -0x64(%rbp),%edi
mov    -0x60(%rbp),%rdx
mov    %rax,%rcx
lea    0xdb0(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1416 <truncate+0x296>
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
je     1299 <truncate+0x119>
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jle    12b6 <truncate+0x136>
mov    0x2d20(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1070 <syscall@plt>
mov    %eax,-0x4(%rbp)
jmp    1416 <truncate+0x296>
mov    -0x14(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
lea    0xf(,%rax,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x70(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x14(%rbp),%edx
xor    %esi,%esi
call   1050 <memset@plt>
mov    -0x24(%rbp),%edi
mov    0x2cf7(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <lseek@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jge    1355 <truncate+0x1d5>
mov    0x2cca(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    0x2cae(%rip),%rax
mov    (%rax),%rdi
call   10a0 <strerror@plt>
mov    -0x7c(%rbp),%edi
mov    -0x78(%rbp),%rdx
mov    %rax,%rcx
lea    0xd0d(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x40(%rbp)
jmp    140f <truncate+0x28f>
mov    -0x24(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    0x2c66(%rip),%rax
mov    (%rax),%edx
call   1040 <lseek@plt>
mov    -0x70(%rbp),%rsi
mov    -0x24(%rbp),%edi
mov    -0x20(%rbp),%edx
call   1030 <write@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    13a4 <truncate+0x224>
mov    0x2c4a(%rip),%rax
mov    (%rax),%edi
mov    -0x44(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xccb(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x24(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    0x2c17(%rip),%rax
mov    (%rax),%edx
call   1040 <lseek@plt>
cmp    $0x0,%eax
jge    13f0 <truncate+0x270>
mov    0x2c10(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x80(%rbp)
mov    0x2bfc(%rip),%rax
mov    (%rax),%rdi
call   10a0 <strerror@plt>
mov    -0x80(%rbp),%edi
mov    %rax,%rdx
lea    0xcae(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2bc9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1070 <syscall@plt>
mov    %eax,-0x4(%rbp)
movl   $0x1,-0x40(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<truncate>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %esi,%r14d
mov    %rdi,%r15
mov    0x2e32(%rip),%r12
movq   $0x0,(%r12)
lea    -0x30(%rbp),%rsi
call   1080 <stat@plt>
test   %rax,%rax
je     11f0 <truncate+0x70>
mov    0x2e1d(%rip),%rax
mov    (%rax),%ebx
mov    (%r12),%rdi
call   10a0 <strerror@plt>
lea    0xe33(%rip),%rsi
mov    %ebx,%edi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0xffffffff,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    -0x30(%rbp),%ebx
movq   $0x0,(%r12)
mov    0x2dae(%rip),%rax
mov    (%rax),%esi
mov    %r15,%rdi
call   1090 <open@plt>
test   %eax,%eax
js     1307 <truncate+0x187>
cmp    %r14d,%ebx
jle    1325 <truncate+0x1a5>
mov    %ebx,-0x2c(%rbp)
mov    %rsp,-0x40(%rbp)
mov    %r14d,%ecx
mov    %rsp,%r13
lea    0xf(,%rcx,4),%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%r13
mov    %r13,%rsp
mov    %r13,%rdi
xor    %esi,%esi
mov    %eax,%ebx
mov    %r14d,%edx
call   1050 <memset@plt>
mov    0x2d96(%rip),%rax
mov    (%rax),%edx
mov    %ebx,%edi
xor    %esi,%esi
call   1040 <lseek@plt>
test   %eax,%eax
js     133e <truncate+0x1be>
mov    %eax,-0x38(%rbp)
sub    %r14d,-0x2c(%rbp)
mov    0x2d55(%rip),%rax
mov    (%rax),%edx
mov    %ebx,%edi
mov    %r14d,%esi
call   1040 <lseek@plt>
mov    %ebx,-0x34(%rbp)
mov    %ebx,%edi
mov    %r13,%rsi
mov    -0x2c(%rbp),%r13d
mov    %r13d,%edx
call   1030 <write@plt>
cmp    %r13d,%eax
jge    12b4 <truncate+0x134>
mov    0x2d39(%rip),%rcx
mov    (%rcx),%edi
lea    0xdc0(%rip),%rsi
mov    %eax,%edx
mov    %r13d,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2d0d(%rip),%rax
mov    (%rax),%edx
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1040 <lseek@plt>
test   %eax,%eax
jns    12f1 <truncate+0x171>
mov    0x2d05(%rip),%rax
mov    (%rax),%ebx
mov    (%r12),%rdi
call   10a0 <strerror@plt>
lea    0xdb2(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2cc8(%rip),%rax
mov    (%rax),%edi
mov    %r15,%rsi
mov    %r14d,%edx
call   1070 <syscall@plt>
jmp    136b <truncate+0x1eb>
mov    0x2cca(%rip),%rax
mov    (%rax),%ebx
mov    (%r12),%rdi
call   10a0 <strerror@plt>
lea    0xcfe(%rip),%rsi
jmp    11cd <truncate+0x4d>
mov    0x2c94(%rip),%rax
mov    (%rax),%edi
mov    %r15,%rsi
mov    %r14d,%edx
call   1070 <syscall@plt>
jmp    11e1 <truncate+0x61>
mov    0x2c93(%rip),%rax
mov    (%rax),%ebx
mov    (%r12),%rdi
call   10a0 <strerror@plt>
lea    0xcf1(%rip),%rsi
mov    %ebx,%edi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0xffffffff,%eax
mov    -0x40(%rbp),%rcx
mov    %rcx,%rsp
jmp    11e1 <truncate+0x61>

LLVM IR (-O0):
%struct.stat = type { i32 }
@errno = global i64 0
@stderr = global i32 0
@.str = [30 x i8] c"Failed to stat file (%s): %s\0A\00"
@O_WRONLY = global i32 0
@.str.1 = [42 x i8] c"Failed to open file (%s) for writing: %s\0A\00"
@__NR_truncate = global i32 0
@SEEK_CUR = global i32 0
@.str.2 = [32 x i8] c"Failed to seek in file (%s): %s\00"
@SEEK_SET = global i32 0
@.str.3 = [47 x i8] c"Warning wrote %d bytes, expected to write %d!\0A\00"
@.str.4 = [43 x i8] c"Failed to seek back to original offset: %s\00"
define i32 @truncate(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca %struct.stat
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i64 0, i64* @errno
%15 = load i8*, i8** %4
%16 = call i64 @stat(i8* %15, %struct.stat* %6)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %2
%19 = load i32, i32* @stderr
%20 = load i8*, i8** %4
%21 = load i64, i64* @errno
%22 = call i8* @strerror(i64 %21)
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %20, i8* %22)
store i32 -1, i32* %3
br label %106
24: ; preds = %2
%25 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%26 = load i32, i32* %25
store i32 %26, i32* %7
%27 = load i32, i32* %7
%28 = load i32, i32* %5
%29 = sub nsw i32 %27, %28
store i32 %29, i32* %8
store i64 0, i64* @errno
%30 = load i8*, i8** %4
%31 = load i32, i32* @O_WRONLY
%32 = call i32 @open(i8* %30, i32 %31)
store i32 %32, i32* %9
%33 = load i32, i32* %9
%34 = icmp slt i32 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %24
%36 = load i32, i32* @stderr
%37 = load i8*, i8** %4
%38 = load i64, i64* @errno
%39 = call i8* @strerror(i64 %38)
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* %37, i8* %39)
store i32 -1, i32* %3
br label %106
41: ; preds = %24
%42 = load i32, i32* %5
%43 = load i32, i32* %7
%44 = icmp eq i32 %42, %43
br i1 %44, label %49, label %45
45: ; preds = %41
%46 = load i32, i32* %5
%47 = load i32, i32* %7
%48 = icmp sgt i32 %46, %47
br i1 %48, label %49, label %54
49: ; preds = %45, %41
%50 = load i32, i32* @__NR_truncate
%51 = load i8*, i8** %4
%52 = load i32, i32* %5
%53 = call i32 @syscall(i32 %50, i8* %51, i32 %52)
store i32 %53, i32* %3
br label %106
54: ; preds = %45
%55 = load i32, i32* %5
%56 = zext i32 %55 to i64
%57 = call i8* @llvm.stacksave()
store i8* %57, i8** %10
%58 = alloca i32, i64 %56
store i64 %56, i64* %11
%59 = load i32, i32* %5
%60 = call i32 @memset(i32* %58, i32 0, i32 %59)
%61 = load i32, i32* %9
%62 = load i32, i32* @SEEK_CUR
%63 = call i32 @lseek(i32 %61, i32 0, i32 %62)
store i32 %63, i32* %12
%64 = load i32, i32* %12
%65 = icmp slt i32 %64, 0
br i1 %65, label %66, label %72
66: ; preds = %54
%67 = load i32, i32* @stderr
%68 = load i8*, i8** %4
%69 = load i64, i64* @errno
%70 = call i8* @strerror(i64 %69)
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %68, i8* %70)
store i32 -1, i32* %3
store i32 1, i32* %13
br label %104
72: ; preds = %54
%73 = load i32, i32* %9
%74 = load i32, i32* %5
%75 = load i32, i32* @SEEK_SET
%76 = call i32 @lseek(i32 %73, i32 %74, i32 %75)
%77 = load i32, i32* %9
%78 = load i32, i32* %8
%79 = call i32 @write(i32 %77, i32* %58, i32 %78)
store i32 %79, i32* %14
%80 = load i32, i32* %14
%81 = load i32, i32* %8
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %88
83: ; preds = %72
%84 = load i32, i32* @stderr
%85 = load i32, i32* %14
%86 = load i32, i32* %8
%87 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0), i32 %85, i32 %86)
br label %88
88: ; preds = %83, %72
%89 = load i32, i32* %9
%90 = load i32, i32* %12
%91 = load i32, i32* @SEEK_SET
%92 = call i32 @lseek(i32 %89, i32 %90, i32 %91)
%93 = icmp slt i32 %92, 0
br i1 %93, label %94, label %99
94: ; preds = %88
%95 = load i32, i32* @stderr
%96 = load i64, i64* @errno
%97 = call i8* @strerror(i64 %96)
%98 = call i32 (i32, i8*, ...) @fprintf(i32 %95, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), i8* %97)
br label %99
99: ; preds = %94, %88
%100 = load i32, i32* @__NR_truncate
%101 = load i8*, i8** %4
%102 = load i32, i32* %5
%103 = call i32 @syscall(i32 %100, i8* %101, i32 %102)
store i32 %103, i32* %3
store i32 1, i32* %13
br label %104
104: ; preds = %99, %66
%105 = load i8*, i8** %10
br label %106
106: ; preds = %104, %49, %35, %18
%107 = load i32, i32* %3
ret i32 %107
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@errno = global i64 0
@stderr = global i32 0
@.str = [30 x i8] c"Failed to stat file (%s): %s\0A\00"
@O_WRONLY = global i32 0
@.str.1 = [42 x i8] c"Failed to open file (%s) for writing: %s\0A\00"
@__NR_truncate = global i32 0
@SEEK_CUR = global i32 0
@.str.2 = [32 x i8] c"Failed to seek in file (%s): %s\00"
@SEEK_SET = global i32 0
@.str.3 = [47 x i8] c"Warning wrote %d bytes, expected to write %d!\0A\00"
@.str.4 = [43 x i8] c"Failed to seek back to original offset: %s\00"
define i32 @truncate(i8* %0, i32 %1) {
%3 = alloca %struct.stat
%4 = bitcast %struct.stat* %3 to i8*
store i64 0, i64* @errno
%5 = call i64 @stat(i8* %0, %struct.stat* %3)
%6 = icmp eq i64 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = load i64, i64* @errno
%10 = call i8* @strerror(i64 %9)
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %10)
br label %64
12: ; preds = %2
%13 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%14 = load i32, i32* %13
%15 = sub nsw i32 %14, %1
store i64 0, i64* @errno
%16 = load i32, i32* @O_WRONLY
%17 = call i32 @open(i8* %0, i32 %16)
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %12
%20 = load i32, i32* @stderr
%21 = load i64, i64* @errno
%22 = call i8* @strerror(i64 %21)
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %22)
br label %64
24: ; preds = %12
%25 = icmp sgt i32 %14, %1
br i1 %25, label %29, label %26
26: ; preds = %24
%27 = load i32, i32* @__NR_truncate
%28 = call i32 @syscall(i32 %27, i8* %0, i32 %1)
br label %64
29: ; preds = %24
%30 = zext i32 %1 to i64
%31 = call i8* @llvm.stacksave()
%32 = alloca i32, i64 %30
%33 = call i32 @memset(i32* %32, i32 0, i32 %1)
%34 = load i32, i32* @SEEK_CUR
%35 = call i32 @lseek(i32 %17, i32 0, i32 %34)
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %42
37: ; preds = %29
%38 = load i32, i32* @stderr
%39 = load i64, i64* @errno
%40 = call i8* @strerror(i64 %39)
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %40)
br label %62
42: ; preds = %29
%43 = load i32, i32* @SEEK_SET
%44 = call i32 @lseek(i32 %17, i32 %1, i32 %43)
%45 = call i32 @write(i32 %17, i32* %32, i32 %15)
%46 = icmp slt i32 %45, %15
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = load i32, i32* @stderr
%49 = call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0), i32 %45, i32 %15)
br label %50
50: ; preds = %47, %42
%51 = load i32, i32* @SEEK_SET
%52 = call i32 @lseek(i32 %17, i32 %35, i32 %51)
%53 = icmp slt i32 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %50
%55 = load i32, i32* @stderr
%56 = load i64, i64* @errno
%57 = call i8* @strerror(i64 %56)
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), i8* %57)
br label %59
59: ; preds = %54, %50
%60 = load i32, i32* @__NR_truncate
%61 = call i32 @syscall(i32 %60, i8* %0, i32 %1)
br label %62
62: ; preds = %59, %37
%63 = phi i32 [ -1, %37 ], [ %61, %59 ]
br label %64
64: ; preds = %19, %26, %62, %7
%65 = phi i32 [ -1, %7 ], [ -1, %19 ], [ %28, %26 ], [ %63, %62 ]
ret i32 %65
}