#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 htrace_conf {
  int dummy;
};

/* Variables and functions */
struct htrace_conf *htrace_conf_from_strs(char const *, char *);
struct htrace_conf *htrace_conf_from_str(const char *values) {
  return htrace_conf_from_strs(values, ("prob.sampler.fraction"
                                        "=0.01"
                                        ";"
                                        "htraced.buffer.size"
                                        "=67108864"
                                        ";"
                                        "htraced.flush.interval.ms"
                                        "=120000"
                                        ";"
                                        "htraced.write.timeo.ms"
                                        "=60000"
                                        ";"
                                        "htraced.read.timeo.ms"
                                        "=60000"
                                        ";"
                                        "tracer.id"
                                        "=%{tname}/%{ip}"
                                        ";"
                                        "htraced.address"
                                        "=localhost:9096"
                                        ";"
                                        "htraced.buffer.send.trigger.fraction"
                                        "=0.50"));
}


x86 assembly (clang, -O0):
<htrace_conf_from_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <htrace_conf_from_strs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<htrace_conf_from_str>:
lea    0xee9(%rip),%rsi
jmp    1030 <htrace_conf_from_strs@plt>

LLVM IR (-O0):
%struct.htrace_conf = type { i32 }
@.str = [244 x i8] c"prob.sampler.fraction=0.01;htraced.buffer.size=67108864;htraced.flush.interval.ms=120000;htraced.write.timeo.ms=60000;htraced.read.timeo.ms=60000;tracer.id=%{tname}/%{ip};htraced.address=localhost:9096;htraced.buffer.send.trigger.fraction=0.50\00"
define %struct.htrace_conf* @htrace_conf_from_str(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call %struct.htrace_conf* @htrace_conf_from_strs(i8* %3, i8* getelementptr inbounds ([244 x i8], [244 x i8]* @.str, i64 0, i64 0))
ret %struct.htrace_conf* %4
}

LLVM IR (-O2):
%struct.htrace_conf = type { i32 }
@.str = [244 x i8] c"prob.sampler.fraction=0.01;htraced.buffer.size=67108864;htraced.flush.interval.ms=120000;htraced.write.timeo.ms=60000;htraced.read.timeo.ms=60000;tracer.id=%{tname}/%{ip};htraced.address=localhost:9096;htraced.buffer.send.trigger.fraction=0.50\00"
define %struct.htrace_conf* @htrace_conf_from_str(i8* %0) {
%2 = tail call %struct.htrace_conf* @htrace_conf_from_strs(i8* %0, i8* getelementptr inbounds ([244 x i8], [244 x i8]* @.str, i64 0, i64 0))
ret %struct.htrace_conf* %2
}