void consume(int);
void myEntry(void)
{
consume(0);
consume(1);
consume(2);
consume(3);
consume(4);
consume(5);
consume(6);
consume(7);
consume(8);
consume(9);
consume(10);
consume(-1);
consume(-2);
consume(-3);
consume(-4);
consume(-5);
consume(-6);
consume(-7);
consume(-8);
consume(-9);
consume(-10);
}
; ModuleID = '/tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c'
source_filename = "/tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind optnone uwtable
define dso_local void @myEntry() #0 {
call void @consume(i32 0)
call void @consume(i32 1)
call void @consume(i32 2)
call void @consume(i32 3)
call void @consume(i32 4)
call void @consume(i32 5)
call void @consume(i32 6)
call void @consume(i32 7)
call void @consume(i32 8)
call void @consume(i32 9)
call void @consume(i32 10)
call void @consume(i32 -1)
call void @consume(i32 -2)
call void @consume(i32 -3)
call void @consume(i32 -4)
call void @consume(i32 -5)
call void @consume(i32 -6)
call void @consume(i32 -7)
call void @consume(i32 -8)
call void @consume(i32 -9)
call void @consume(i32 -10)
ret void
}
declare dso_local void @consume(i32) #1
attributes #0 = { noinline nounwind optnone uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
!llvm.module.flags = !{!0}
!llvm.ident = !{!1}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{!"Debian clang version 11.0.1-2"}
; ModuleID = '/tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c'
source_filename = "/tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind optnone uwtable
define dso_local void @myEntry() #0 !dbg !7 {
call void @consume(i32 0), !dbg !11
call void @consume(i32 1), !dbg !12
call void @consume(i32 2), !dbg !13
call void @consume(i32 3), !dbg !14
call void @consume(i32 4), !dbg !15
call void @consume(i32 5), !dbg !16
call void @consume(i32 6), !dbg !17
call void @consume(i32 7), !dbg !18
call void @consume(i32 8), !dbg !19
call void @consume(i32 9), !dbg !20
call void @consume(i32 10), !dbg !21
call void @consume(i32 -1), !dbg !22
call void @consume(i32 -2), !dbg !23
call void @consume(i32 -3), !dbg !24
call void @consume(i32 -4), !dbg !25
call void @consume(i32 -5), !dbg !26
call void @consume(i32 -6), !dbg !27
call void @consume(i32 -7), !dbg !28
call void @consume(i32 -8), !dbg !29
call void @consume(i32 -9), !dbg !30
call void @consume(i32 -10), !dbg !31
ret void, !dbg !32
}
declare dso_local void @consume(i32) #1
attributes #0 = { noinline nounwind optnone uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4, !5}
!llvm.ident = !{!6}
!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "Debian clang version 11.0.1-2", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)
!1 = !DIFile(filename: "/tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c", directory: "/__w/semicompiled/semicompiled")
!2 = !{}
!3 = !{i32 7, !"Dwarf Version", i32 4}
!4 = !{i32 2, !"Debug Info Version", i32 3}
!5 = !{i32 1, !"wchar_size", i32 4}
!6 = !{!"Debian clang version 11.0.1-2"}
!7 = distinct !DISubprogram(name: "myEntry", scope: !8, file: !8, line: 2, type: !9, scopeLine: 3, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
!8 = !DIFile(filename: "/tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c", directory: "")
!9 = !DISubroutineType(types: !10)
!10 = !{null}
!11 = !DILocation(line: 4, column: 5, scope: !7)
!12 = !DILocation(line: 5, column: 5, scope: !7)
!13 = !DILocation(line: 6, column: 5, scope: !7)
!14 = !DILocation(line: 7, column: 5, scope: !7)
!15 = !DILocation(line: 8, column: 5, scope: !7)
!16 = !DILocation(line: 9, column: 5, scope: !7)
!17 = !DILocation(line: 10, column: 5, scope: !7)
!18 = !DILocation(line: 11, column: 5, scope: !7)
!19 = !DILocation(line: 12, column: 5, scope: !7)
!20 = !DILocation(line: 13, column: 5, scope: !7)
!21 = !DILocation(line: 14, column: 5, scope: !7)
!22 = !DILocation(line: 15, column: 5, scope: !7)
!23 = !DILocation(line: 16, column: 5, scope: !7)
!24 = !DILocation(line: 17, column: 5, scope: !7)
!25 = !DILocation(line: 18, column: 5, scope: !7)
!26 = !DILocation(line: 19, column: 5, scope: !7)
!27 = !DILocation(line: 20, column: 5, scope: !7)
!28 = !DILocation(line: 21, column: 5, scope: !7)
!29 = !DILocation(line: 22, column: 5, scope: !7)
!30 = !DILocation(line: 23, column: 5, scope: !7)
!31 = !DILocation(line: 24, column: 5, scope: !7)
!32 = !DILocation(line: 25, column: 1, scope: !7)
(module
(type (;0;) (func))
(type (;1;) (func (param i32)))
(import "env" "consume" (func (;0;) (type 1)))
(import "env" "__stack_pointer" (global (;0;) (mut i32)))
(import "env" "__memory_base" (global (;1;) i32))
(import "env" "__table_base" (global (;2;) i32))
(import "env" "memory" (memory (;0;) 0))
(import "env" "__indirect_function_table" (table (;0;) 0 funcref))
(func (;1;) (type 0)
call 2)
(func (;2;) (type 0))
(func (;3;) (type 0)
(local i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32 i32)
i32.const -10
local.set 0
i32.const -9
local.set 1
i32.const -8
local.set 2
i32.const -7
local.set 3
i32.const -6
local.set 4
i32.const -5
local.set 5
i32.const -4
local.set 6
i32.const -3
local.set 7
i32.const -2
local.set 8
i32.const -1
local.set 9
i32.const 10
local.set 10
i32.const 9
local.set 11
i32.const 8
local.set 12
i32.const 7
local.set 13
i32.const 6
local.set 14
i32.const 5
local.set 15
i32.const 4
local.set 16
i32.const 3
local.set 17
i32.const 2
local.set 18
i32.const 1
local.set 19
i32.const 0
local.set 20
local.get 20
call 0
local.get 19
call 0
local.get 18
call 0
local.get 17
call 0
local.get 16
call 0
local.get 15
call 0
local.get 14
call 0
local.get 13
call 0
local.get 12
call 0
local.get 11
call 0
local.get 10
call 0
local.get 9
call 0
local.get 8
call 0
local.get 7
call 0
local.get 6
call 0
local.get 5
call 0
local.get 4
call 0
local.get 3
call 0
local.get 2
call 0
local.get 1
call 0
local.get 0
call 0
return)
(global (;3;) i32 (i32.const 0))
(export "__post_instantiate" (func 1))
(export "__wasm_apply_relocs" (func 2))
(export "myEntry" (func 3))
(export "__dso_handle" (global 3)))
/tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.o: file format elf64-bpf
Disassembly of section .text:
0000000000000000 <myEntry>:
; myEntry():
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:3
; {
0: r1 = 0
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:4
; consume(0);
1: call -1
2: r1 = 1
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:5
; consume(1);
3: call -1
4: r1 = 2
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:6
; consume(2);
5: call -1
6: r1 = 3
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:7
; consume(3);
7: call -1
8: r1 = 4
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:8
; consume(4);
9: call -1
10: r1 = 5
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:9
; consume(5);
11: call -1
12: r1 = 6
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:10
; consume(6);
13: call -1
14: r1 = 7
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:11
; consume(7);
15: call -1
16: r1 = 8
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:12
; consume(8);
17: call -1
18: r1 = 9
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:13
; consume(9);
19: call -1
20: r1 = 10
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:14
; consume(10);
21: call -1
22: r1 = 4294967295 ll
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:15
; consume(-1);
24: call -1
25: r1 = 4294967294 ll
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:16
; consume(-2);
27: call -1
28: r1 = 4294967293 ll
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:17
; consume(-3);
30: call -1
31: r1 = 4294967292 ll
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:18
; consume(-4);
33: call -1
34: r1 = 4294967291 ll
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:19
; consume(-5);
36: call -1
37: r1 = 4294967290 ll
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:20
; consume(-6);
39: call -1
40: r1 = 4294967289 ll
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:21
; consume(-7);
42: call -1
43: r1 = 4294967288 ll
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:22
; consume(-8);
45: call -1
46: r1 = 4294967287 ll
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:23
; consume(-9);
48: call -1
49: r1 = 4294967286 ll
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:24
; consume(-10);
51: call -1
; /tmp/semicompiled-gIc0ILNN-Wkt3S0bV-15903024185863262949/source.c:25
; }
52: exit
Join the thriving social scene at github.com/andrewbaxter/semicompiled.