#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int getopt(int, char **, char *);
int /*<<< orphan*/ isprint(char);
char *optarg;
scalar_t__ opterr;
char optopt;
int /*<<< orphan*/ printUsage();
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdout;
int main(int argc, char *argv[]) {
  int c;
  int i, j;
  int m, n;
  char *out;
  FILE *fpOut = NULL;
  fprintf(stdout, "checking paramters ...\n");
  opterr = 0;
  while ((c = getopt(argc, argv, "m:n:o:")) != -1)
    switch (c) {
    case 'm':
      m = atoi(optarg);
      break;
    case 'n':
      n = atoi(optarg);
      break;
    case 'o':
      out = optarg;
      break;
    case '?':
      if (optopt == 'm' || optopt == 'n' || optopt == 'o')
        fprintf(stderr, "Option -%c requires an argument.\n", optopt);
      else if (isprint(optopt))
        fprintf(stderr, "Unknown option `-%c´.\n", optopt);
      else
        fprintf(stderr, "Unknown option characer `\\x%x´.\n", optopt);
      printUsage();
    default:
      printUsage();
    }
  fprintf(stdout, "Values: m=%d, n=%d, out=%s\n", m, n, out);
  fflush(stdout);
  int tmp = (m - 2);
  if (!((tmp > 0) && ((tmp & (tmp - 1)) == 0))) {
    fprintf(stderr,
            "Input-error: m has to be of power of 2 plus 2 (e.g. 6, 10, 18) "
            "but is '%d' instead! (tmp=%d)\n",
            m, tmp);
    exit(1);
  }
  tmp = (n - 2);
  if (!((tmp > 0) && ((tmp & (tmp - 1)) == 0))) {
    fprintf(stderr,
            "Input-error: n has to be of power of 2 plus 2 (e.g. 6, 10, 18) "
            "but is '%d' instead!\n",
            n);
    exit(1);
  }
  fprintf(stdout, "writing file ...\n");
  fpOut = fopen(out, "w");
  if (fpOut == NULL) {
    fprintf(stderr, "Could not write to output-file '%s'!\n", out);
    exit(1);
  }
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      fprintf(fpOut, "%.2f;", (float)(i + j));
    }
    fprintf(fpOut, "\n");
  }
  fclose(fpOut);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x38(%rbp)
mov    0x2e0b(%rip),%rax
mov    (%rax),%rdi
lea    0xe41(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2dfb(%rip),%rax
movq   $0x0,(%rax)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe36(%rip),%rdx
call   1090 <getopt@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
je     1354 <main+0x1c4>
mov    -0x14(%rbp),%eax
mov    %eax,-0x40(%rbp)
sub    $0x3f,%eax
je     127b <main+0xeb>
jmp    1207 <main+0x77>
mov    -0x40(%rbp),%eax
sub    $0x6d,%eax
je     123a <main+0xaa>
jmp    1218 <main+0x88>
mov    -0x40(%rbp),%eax
sub    $0x6e,%eax
je     1251 <main+0xc1>
jmp    1229 <main+0x99>
mov    -0x40(%rbp),%eax
sub    $0x6f,%eax
je     1268 <main+0xd8>
jmp    1348 <main+0x1b8>
mov    0x2db7(%rip),%rax
mov    (%rax),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x20(%rbp)
jmp    134f <main+0x1bf>
mov    0x2da0(%rip),%rax
mov    (%rax),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x24(%rbp)
jmp    134f <main+0x1bf>
mov    0x2d89(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
jmp    134f <main+0x1bf>
mov    0x2d5e(%rip),%rax
movsbl (%rax),%eax
cmp    $0x6d,%eax
je     12b4 <main+0x124>
mov    0x2d4b(%rip),%rax
movsbl (%rax),%eax
cmp    $0x6e,%eax
je     12b4 <main+0x124>
mov    0x2d38(%rip),%rax
movsbl (%rax),%eax
cmp    $0x6f,%eax
jne    12db <main+0x14b>
mov    0x2d15(%rip),%rax
movslq (%rax),%rdi
mov    0x2d1b(%rip),%rax
movsbl (%rax),%edx
lea    0xd50(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1341 <main+0x1b1>
mov    0x2cfe(%rip),%rax
movsbl (%rax),%edi
call   1060 <isprint@plt>
cmp    $0x0,%eax
je     131a <main+0x18a>
mov    0x2cd6(%rip),%rax
movslq (%rax),%rdi
mov    0x2cdc(%rip),%rax
movsbl (%rax),%edx
lea    0xd33(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    133c <main+0x1ac>
mov    0x2caf(%rip),%rax
movslq (%rax),%rdi
mov    0x2cb5(%rip),%rax
movsbl (%rax),%edx
lea    0xd24(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1341 <main+0x1b1>
mov    $0x0,%al
call   1070 <printUsage@plt>
mov    $0x0,%al
call   1070 <printUsage@plt>
jmp    11d4 <main+0x44>
mov    0x2c65(%rip),%rax
mov    (%rax),%rdi
mov    -0x20(%rbp),%edx
mov    -0x24(%rbp),%ecx
mov    -0x30(%rbp),%r8
lea    0xd0c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c43(%rip),%rax
mov    (%rax),%rdi
call   1050 <fflush@plt>
mov    -0x20(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jle    13ac <main+0x21c>
mov    -0x3c(%rbp),%eax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     13d4 <main+0x244>
mov    0x2c1d(%rip),%rax
movslq (%rax),%rdi
mov    -0x20(%rbp),%edx
mov    -0x3c(%rbp),%ecx
lea    0xcd4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x24(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x3c(%rbp)
jle    13fb <main+0x26b>
mov    -0x3c(%rbp),%eax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1420 <main+0x290>
mov    0x2bce(%rip),%rax
movslq (%rax),%rdi
mov    -0x24(%rbp),%edx
lea    0xce6(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    0x2b99(%rip),%rax
mov    (%rax),%rdi
lea    0xd19(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x30(%rbp),%rdi
lea    0xd19(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    147d <main+0x2ed>
mov    0x2b72(%rip),%rax
movslq (%rax),%rdi
mov    -0x30(%rbp),%rdx
lea    0xcf2(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    14f1 <main+0x361>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    14d1 <main+0x341>
mov    -0x38(%rbp),%rdi
mov    -0x18(%rbp),%eax
add    -0x1c(%rbp),%eax
cvtsi2ss %eax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcc8(%rip),%rsi
mov    $0x1,%al
call   1040 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1497 <main+0x307>
mov    -0x38(%rbp),%rdi
lea    0xca6(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1484 <main+0x2f4>
mov    -0x38(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r12
mov    %edi,%ebp
mov    0x2df9(%rip),%rax
mov    (%rax),%rcx
lea    0xe2f(%rip),%rdi
mov    $0x17,%esi
mov    $0x1,%edx
call   10d0 <fwrite@plt>
mov    0x2de1(%rip),%rax
movq   $0x0,(%rax)
lea    0xe23(%rip),%r13
mov    0x2de4(%rip),%rbx
jmp    1226 <main+0x76>
xchg   %ax,%ax
mov    0x2dc9(%rip),%rax
movslq (%rax),%rdi
lea    0xe0e(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
xor    %eax,%eax
call   1080 <printUsage@plt>
xor    %eax,%eax
call   1080 <printUsage@plt>
mov    %ebp,%edi
mov    %r12,%rsi
mov    %r13,%rdx
call   10a0 <getopt@plt>
cmp    $0x6c,%eax
jg     1270 <main+0xc0>
cmp    $0x3f,%eax
jne    12a0 <main+0xf0>
movzbl (%rbx),%edx
lea    -0x6d(%rdx),%eax
cmp    $0x2,%al
jbe    1200 <main+0x50>
movsbl %dl,%edi
call   1070 <isprint@plt>
mov    0x2d7a(%rip),%rcx
movslq (%rcx),%rdi
movsbl (%rbx),%edx
test   %eax,%eax
je     12ab <main+0xfb>
lea    0xdda(%rip),%rsi
jmp    1211 <main+0x61>
nopl   0x0(%rax)
cmp    $0x6f,%eax
je     12b7 <main+0x107>
cmp    $0x6e,%eax
je     12ca <main+0x11a>
cmp    $0x6d,%eax
jne    121f <main+0x6f>
mov    0x2d72(%rip),%rax
mov    (%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,%r14d
jmp    1226 <main+0x76>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    $0xffffffff,%eax
jne    121f <main+0x6f>
jmp    12e1 <main+0x131>
lea    0xda7(%rip),%rsi
jmp    1211 <main+0x61>
mov    0x2d3a(%rip),%rax
mov    (%rax),%rax
mov    %rax,(%rsp)
jmp    1226 <main+0x76>
mov    0x2d27(%rip),%rax
mov    (%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,%r15d
jmp    1226 <main+0x76>
mov    0x2cd8(%rip),%rbp
mov    0x0(%rbp),%rdi
lea    0xd88(%rip),%rsi
mov    %r14d,%edx
mov    %r15d,%ecx
mov    (%rsp),%rbx
mov    %rbx,%r8
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%rdi
call   1060 <fflush@plt>
lea    -0x2(%r14),%ecx
cmp    $0x3,%r14d
jl     13f1 <main+0x241>
lea    -0x3(%r14),%eax
test   %eax,%ecx
jne    13f1 <main+0x241>
cmp    $0x3,%r15d
jl     1416 <main+0x266>
lea    -0x2(%r15),%eax
lea    -0x3(%r15),%ecx
test   %ecx,%eax
jne    1416 <main+0x266>
mov    0x0(%rbp),%rcx
lea    0xdfb(%rip),%rdi
mov    $0x11,%esi
mov    $0x1,%edx
call   10d0 <fwrite@plt>
lea    0xdf7(%rip),%rsi
mov    %rbx,%rdi
call   1090 <fopen@plt>
test   %rax,%rax
je     143b <main+0x28b>
mov    %rax,%r13
xor    %ebx,%ebx
lea    0xe02(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%rbx,%rbp,1),%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    %r12,%rsi
mov    $0x1,%al
call   1050 <fprintf@plt>
add    $0x1,%ebp
cmp    %ebp,%r15d
jne    13a0 <main+0x1f0>
mov    $0xa,%edi
mov    %r13,%rsi
call   1040 <fputc@plt>
add    $0x1,%ebx
cmp    %r14d,%ebx
jne    1390 <main+0x1e0>
mov    %r13,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2bd8(%rip),%rax
movslq (%rax),%rdi
lea    0xc95(%rip),%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    0x2bb3(%rip),%rax
movslq (%rax),%rdi
lea    0xcce(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    0x2b8e(%rip),%rax
movslq (%rax),%rdi
lea    0xd12(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@stdout = global i32* null
@.str = [24 x i8] c"checking paramters ...\0A\00"
@opterr = global i64 0
@.str.1 = [7 x i8] c"m:n:o:\00"
@optarg = global i8* null
@optopt = global i8 0
@stderr = global i32 0
@.str.2 = [34 x i8] c"Option -%c requires an argument.\0A\00"
@.str.3 = [24 x i8] c"Unknown option `-%c\C2\B4.\0A\00"
@.str.4 = [34 x i8] c"Unknown option characer `\\x%x\C2\B4.\0A\00"
@.str.5 = [28 x i8] c"Values: m=%d, n=%d, out=%s\0A\00"
@.str.6 = [94 x i8] c"Input-error: m has to be of power of 2 plus 2 (e.g. 6, 10, 18) but is '%d' instead! (tmp=%d)\0A\00"
@.str.7 = [85 x i8] c"Input-error: n has to be of power of 2 plus 2 (e.g. 6, 10, 18) but is '%d' instead!\0A\00"
@.str.8 = [18 x i8] c"writing file ...\0A\00"
@.str.9 = [2 x i8] c"w\00"
@.str.10 = [38 x i8] c"Could not write to output-file '%s'!\0A\00"
@.str.11 = [6 x i8] c"%.2f;\00"
@.str.12 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i32*
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32* null, i32** %12
%14 = load i32*, i32** @stdout
%15 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
store i64 0, i64* @opterr
br label %16
16: ; preds = %73, %2
%17 = load i32, i32* %4
%18 = load i8**, i8*** %5
%19 = call i32 @getopt(i32 %17, i8** %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
store i32 %19, i32* %6
%20 = icmp ne i32 %19, -1
br i1 %20, label %21, label %74
21: ; preds = %16
%22 = load i32, i32* %6
switch i32 %22, label %71 [
i32 109, label %23
i32 110, label %26
i32 111, label %29
i32 63, label %31
]
23: ; preds = %21
%24 = load i8*, i8** @optarg
%25 = call i32 @atoi(i8* %24)
store i32 %25, i32* %9
br label %73
26: ; preds = %21
%27 = load i8*, i8** @optarg
%28 = call i32 @atoi(i8* %27)
store i32 %28, i32* %10
br label %73
29: ; preds = %21
%30 = load i8*, i8** @optarg
store i8* %30, i8** %11
br label %73
31: ; preds = %21
%32 = load i8, i8* @optopt
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 109
br i1 %34, label %43, label %35
35: ; preds = %31
%36 = load i8, i8* @optopt
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 110
br i1 %38, label %43, label %39
39: ; preds = %35
%40 = load i8, i8* @optopt
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 111
br i1 %42, label %43, label %50
43: ; preds = %39, %35, %31
%44 = load i32, i32* @stderr
%45 = sext i32 %44 to i64
%46 = inttoptr i64 %45 to i32*
%47 = load i8, i8* @optopt
%48 = sext i8 %47 to i32
%49 = call i32 (i32*, i8*, ...) @fprintf(i32* %46, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 %48)
br label %69
50: ; preds = %39
%51 = load i8, i8* @optopt
%52 = call i32 @isprint(i8 signext %51)
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %50
%55 = load i32, i32* @stderr
%56 = sext i32 %55 to i64
%57 = inttoptr i64 %56 to i32*
%58 = load i8, i8* @optopt
%59 = sext i8 %58 to i32
%60 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 %59)
br label %68
61: ; preds = %50
%62 = load i32, i32* @stderr
%63 = sext i32 %62 to i64
%64 = inttoptr i64 %63 to i32*
%65 = load i8, i8* @optopt
%66 = sext i8 %65 to i32
%67 = call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 %66)
br label %68
68: ; preds = %61, %54
br label %69
69: ; preds = %68, %43
%70 = call i32 (...) @printUsage()
br label %71
71: ; preds = %21, %69
%72 = call i32 (...) @printUsage()
br label %73
73: ; preds = %71, %29, %26, %23
br label %16
74: ; preds = %16
%75 = load i32*, i32** @stdout
%76 = load i32, i32* %9
%77 = load i32, i32* %10
%78 = load i8*, i8** %11
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %75, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 %76, i32 %77, i8* %78)
%80 = load i32*, i32** @stdout
%81 = call i32 @fflush(i32* %80)
%82 = load i32, i32* %9
%83 = sub nsw i32 %82, 2
store i32 %83, i32* %13
%84 = load i32, i32* %13
%85 = icmp sgt i32 %84, 0
br i1 %85, label %86, label %92
86: ; preds = %74
%87 = load i32, i32* %13
%88 = load i32, i32* %13
%89 = sub nsw i32 %88, 1
%90 = and i32 %87, %89
%91 = icmp eq i32 %90, 0
br i1 %91, label %100, label %92
92: ; preds = %86, %74
%93 = load i32, i32* @stderr
%94 = sext i32 %93 to i64
%95 = inttoptr i64 %94 to i32*
%96 = load i32, i32* %9
%97 = load i32, i32* %13
%98 = call i32 (i32*, i8*, ...) @fprintf(i32* %95, i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.6, i64 0, i64 0), i32 %96, i32 %97)
%99 = call i32 @exit(i32 1)
unreachable
100: ; preds = %86
%101 = load i32, i32* %10
%102 = sub nsw i32 %101, 2
store i32 %102, i32* %13
%103 = load i32, i32* %13
%104 = icmp sgt i32 %103, 0
br i1 %104, label %105, label %111
105: ; preds = %100
%106 = load i32, i32* %13
%107 = load i32, i32* %13
%108 = sub nsw i32 %107, 1
%109 = and i32 %106, %108
%110 = icmp eq i32 %109, 0
br i1 %110, label %118, label %111
111: ; preds = %105, %100
%112 = load i32, i32* @stderr
%113 = sext i32 %112 to i64
%114 = inttoptr i64 %113 to i32*
%115 = load i32, i32* %10
%116 = call i32 (i32*, i8*, ...) @fprintf(i32* %114, i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.7, i64 0, i64 0), i32 %115)
%117 = call i32 @exit(i32 1)
unreachable
118: ; preds = %105
%119 = load i32*, i32** @stdout
%120 = call i32 (i32*, i8*, ...) @fprintf(i32* %119, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%121 = load i8*, i8** %11
%122 = call i32* @fopen(i8* %121, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i32* %122, i32** %12
%123 = load i32*, i32** %12
%124 = icmp eq i32* %123, null
br i1 %124, label %125, label %132
125: ; preds = %118
%126 = load i32, i32* @stderr
%127 = sext i32 %126 to i64
%128 = inttoptr i64 %127 to i32*
%129 = load i8*, i8** %11
%130 = call i32 (i32*, i8*, ...) @fprintf(i32* %128, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0), i8* %129)
%131 = call i32 @exit(i32 1)
unreachable
132: ; preds = %118
store i32 0, i32* %7
br label %133
133: ; preds = %156, %132
%134 = load i32, i32* %7
%135 = load i32, i32* %9
%136 = icmp slt i32 %134, %135
br i1 %136, label %137, label %159
137: ; preds = %133
store i32 0, i32* %8
br label %138
138: ; preds = %150, %137
%139 = load i32, i32* %8
%140 = load i32, i32* %10
%141 = icmp slt i32 %139, %140
br i1 %141, label %142, label %153
142: ; preds = %138
%143 = load i32*, i32** %12
%144 = load i32, i32* %7
%145 = load i32, i32* %8
%146 = add nsw i32 %144, %145
%147 = sitofp i32 %146 to float
%148 = fpext float %147 to double
%149 = call i32 (i32*, i8*, ...) @fprintf(i32* %143, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), double %148)
br label %150
150: ; preds = %142
%151 = load i32, i32* %8
%152 = add nsw i32 %151, 1
store i32 %152, i32* %8
br label %138
153: ; preds = %138
%154 = load i32*, i32** %12
%155 = call i32 (i32*, i8*, ...) @fprintf(i32* %154, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %156
156: ; preds = %153
%157 = load i32, i32* %7
%158 = add nsw i32 %157, 1
store i32 %158, i32* %7
br label %133
159: ; preds = %133
%160 = load i32*, i32** %12
%161 = call i32 @fclose(i32* %160)
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32* null
@.str = [24 x i8] c"checking paramters ...\0A\00"
@opterr = global i64 0
@.str.1 = [7 x i8] c"m:n:o:\00"
@optarg = global i8* null
@optopt = global i8 0
@stderr = global i32 0
@.str.2 = [34 x i8] c"Option -%c requires an argument.\0A\00"
@.str.3 = [24 x i8] c"Unknown option `-%c\C2\B4.\0A\00"
@.str.4 = [34 x i8] c"Unknown option characer `\\x%x\C2\B4.\0A\00"
@.str.5 = [28 x i8] c"Values: m=%d, n=%d, out=%s\0A\00"
@.str.6 = [94 x i8] c"Input-error: m has to be of power of 2 plus 2 (e.g. 6, 10, 18) but is '%d' instead! (tmp=%d)\0A\00"
@.str.7 = [85 x i8] c"Input-error: n has to be of power of 2 plus 2 (e.g. 6, 10, 18) but is '%d' instead!\0A\00"
@.str.8 = [18 x i8] c"writing file ...\0A\00"
@.str.9 = [2 x i8] c"w\00"
@.str.10 = [38 x i8] c"Could not write to output-file '%s'!\0A\00"
@.str.11 = [6 x i8] c"%.2f;\00"
define i32 @main(i32 %0, i8** %1) {
%3 = load i32*, i32** @stdout
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i64 23, i64 1, i32* %3)
store i64 0, i64* @opterr
br label %5
5: ; preds = %16, %2
%6 = phi i32 [ %18, %16 ], [ undef, %2 ]
%7 = phi i32 [ %10, %16 ], [ undef, %2 ]
%8 = phi i8* [ %13, %16 ], [ undef, %2 ]
br label %9
9: ; preds = %5, %19
%10 = phi i32 [ %7, %5 ], [ %21, %19 ]
%11 = phi i8* [ %8, %5 ], [ %13, %19 ]
br label %12
12: ; preds = %9, %22
%13 = phi i8* [ %11, %9 ], [ %23, %22 ]
br label %14
14: ; preds = %12, %48
%15 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
switch i32 %15, label %48 [
i32 -1, label %50
i32 109, label %16
i32 110, label %19
i32 111, label %22
i32 63, label %24
]
16: ; preds = %14
%17 = load i8*, i8** @optarg
%18 = tail call i32 @atoi(i8* %17)
br label %5
19: ; preds = %14
%20 = load i8*, i8** @optarg
%21 = tail call i32 @atoi(i8* %20)
br label %9
22: ; preds = %14
%23 = load i8*, i8** @optarg
br label %12
24: ; preds = %14
%25 = load i8, i8* @optopt
%26 = add i8 %25, -109
%27 = icmp ult i8 %26, 3
br i1 %27, label %28, label %34
28: ; preds = %24
%29 = zext i8 %25 to i32
%30 = load i32, i32* @stderr
%31 = sext i32 %30 to i64
%32 = inttoptr i64 %31 to i32*
%33 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %32, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 %29)
br label %46
34: ; preds = %24
%35 = tail call i32 @isprint(i8 signext %25)
%36 = icmp eq i32 %35, 0
%37 = load i32, i32* @stderr
%38 = sext i32 %37 to i64
%39 = inttoptr i64 %38 to i32*
%40 = load i8, i8* @optopt
%41 = sext i8 %40 to i32
br i1 %36, label %44, label %42
42: ; preds = %34
%43 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 %41)
br label %46
44: ; preds = %34
%45 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 %41)
br label %46
46: ; preds = %42, %44, %28
%47 = tail call i32 (...) @printUsage()
br label %48
48: ; preds = %14, %46
%49 = tail call i32 (...) @printUsage()
br label %14
50: ; preds = %14
%51 = load i32*, i32** @stdout
%52 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %51, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 %6, i32 %10, i8* %13)
%53 = load i32*, i32** @stdout
%54 = tail call i32 @fflush(i32* %53)
%55 = add nsw i32 %6, -2
%56 = icmp sgt i32 %6, 2
br i1 %56, label %57, label %61
57: ; preds = %50
%58 = add nsw i32 %6, -3
%59 = and i32 %55, %58
%60 = icmp eq i32 %59, 0
br i1 %60, label %67, label %61
61: ; preds = %57, %50
%62 = load i32, i32* @stderr
%63 = sext i32 %62 to i64
%64 = inttoptr i64 %63 to i32*
%65 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.6, i64 0, i64 0), i32 %6, i32 %55)
%66 = tail call i32 @exit(i32 1)
unreachable
67: ; preds = %57
%68 = icmp sgt i32 %10, 2
br i1 %68, label %69, label %74
69: ; preds = %67
%70 = add nsw i32 %10, -2
%71 = add nsw i32 %10, -3
%72 = and i32 %70, %71
%73 = icmp eq i32 %72, 0
br i1 %73, label %80, label %74
74: ; preds = %69, %67
%75 = load i32, i32* @stderr
%76 = sext i32 %75 to i64
%77 = inttoptr i64 %76 to i32*
%78 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %77, i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.7, i64 0, i64 0), i32 %10)
%79 = tail call i32 @exit(i32 1)
unreachable
80: ; preds = %69
%81 = load i32*, i32** @stdout
%82 = tail call i64 @fwrite(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i64 17, i64 1, i32* %81)
%83 = tail call i32* @fopen(i8* %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%84 = icmp eq i32* %83, null
br i1 %84, label %85, label %91
85: ; preds = %80
%86 = load i32, i32* @stderr
%87 = sext i32 %86 to i64
%88 = inttoptr i64 %87 to i32*
%89 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %88, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0), i8* %13)
%90 = tail call i32 @exit(i32 1)
unreachable
91: ; preds = %80, %101
%92 = phi i32 [ %103, %101 ], [ 0, %80 ]
br label %93
93: ; preds = %91, %93
%94 = phi i32 [ %99, %93 ], [ 0, %91 ]
%95 = add nuw nsw i32 %94, %92
%96 = sitofp i32 %95 to float
%97 = fpext float %96 to double
%98 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), double %97)
%99 = add nuw nsw i32 %94, 1
%100 = icmp eq i32 %99, %10
br i1 %100, label %101, label %93
101: ; preds = %93
%102 = tail call i32 @fputc(i32 10, i32* %83)
%103 = add nuw nsw i32 %92, 1
%104 = icmp eq i32 %103, %6
br i1 %104, label %105, label %91
105: ; preds = %101
%106 = tail call i32 @fclose(i32* %83)
ret i32 0
}