#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 */

/* Variables and functions */
int /*<<< orphan*/ Qt_handleString(char *, char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, int);
char *strstr(char *, char *);
void Qt_setMinimumLimit(char *widget, int pen, char *token) {
  if (strstr(widget, "caStripPlot") == (char *)0) {
    Qt_handleString("minValue", "double", token);
  } else {
    char asc[30];
    sprintf(asc, "YaxisLimitsMin_%d", pen + 1);
    Qt_handleString(asc, "double", token);
  }
}


x86 assembly (clang, -O0):
<Qt_setMinimumLimit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb2(%rip),%rsi
call   1050 <strstr@plt>
cmp    $0x0,%rax
jne    1179 <Qt_setMinimumLimit+0x49>
mov    -0x18(%rbp),%rdx
lea    0xea4(%rip),%rdi
lea    0xea6(%rip),%rsi
call   1030 <Qt_handleString@plt>
jmp    11a3 <Qt_setMinimumLimit+0x73>
lea    -0x40(%rbp),%rdi
mov    -0xc(%rbp),%edx
add    $0x1,%edx
lea    0xe92(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xe77(%rip),%rsi
call   1030 <Qt_handleString@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Qt_setMinimumLimit>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rdx,%rbx
mov    %esi,%ebp
lea    0xebc(%rip),%rsi
call   1050 <strstr@plt>
test   %rax,%rax
je     1180 <Qt_setMinimumLimit+0x50>
add    $0x1,%ebp
lea    0xec4(%rip),%rsi
mov    %rsp,%r14
mov    %r14,%rdi
mov    %ebp,%edx
call   1040 <sprintf@plt>
lea    0xea9(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1030 <Qt_handleString@plt>
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0xe85(%rip),%rdi
lea    0xe87(%rip),%rsi
mov    %rbx,%rdx
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <Qt_handleString@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"caStripPlot\00"
@.str.1 = [9 x i8] c"minValue\00"
@.str.2 = [7 x i8] c"double\00"
@.str.3 = [18 x i8] c"YaxisLimitsMin_%d\00"
define void @Qt_setMinimumLimit(i8* %0, i32 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca [30 x i8]
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%8 = load i8*, i8** %4
%9 = call i8* @strstr(i8* %8, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load i8*, i8** %6
%13 = call i32 @Qt_handleString(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %12)
br label %22
14: ; preds = %3
%15 = getelementptr inbounds [30 x i8], [30 x i8]* %7, i64 0, i64 0
%16 = load i32, i32* %5
%17 = add nsw i32 %16, 1
%18 = call i32 @sprintf(i8* %15, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %17)
%19 = getelementptr inbounds [30 x i8], [30 x i8]* %7, i64 0, i64 0
%20 = load i8*, i8** %6
%21 = call i32 @Qt_handleString(i8* %19, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %20)
br label %22
22: ; preds = %14, %11
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"caStripPlot\00"
@.str.1 = [9 x i8] c"minValue\00"
@.str.2 = [7 x i8] c"double\00"
@.str.3 = [18 x i8] c"YaxisLimitsMin_%d\00"
define void @Qt_setMinimumLimit(i8* %0, i32 %1, i8* %2) {
%4 = alloca [30 x i8]
%5 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i8* %5, null
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = tail call i32 @Qt_handleString(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %2)
br label %14
9: ; preds = %3
%10 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%11 = add nsw i32 %1, 1
%12 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %11)
%13 = call i32 @Qt_handleString(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %2)
br label %14
14: ; preds = %9, %7
ret void
}