; ModuleID = 'test.c'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i64, i16, i8, [1 x i8], i8*, i64, i8*, i8*, i8*, i8*, i64, i32, [20 x i8] }
%struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32 }
%struct.what = type { i8, i16 }
@.str = private unnamed_addr constant [6 x i8] c"foo()\00", align 1
@e_long = common global i64 0, align 8
@g_double = common global double 0.000000e+00, align 8
@.str.1 = private unnamed_addr constant [7 x i8] c"oooooh\00", align 1
@func_ptr = common global i32 (...)* null, align 8
@.str.2 = private unnamed_addr constant [8 x i8] c"success\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"FizzBuzz\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"Fizz\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"Buzz\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%zd\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [12 x i8] c"%d, %c, %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"need args!\00", align 1
@stderr = external global %struct._IO_FILE*, align 8
; Function Attrs: nounwind uwtable
define i32 @foo() #0 {
%1 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0))
ret i32 0
}
declare i32 @puts(i8*) #1
; Function Attrs: nounwind uwtable
define i32 @main(i32 %argc, i8** %argv) #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i8**, align 8
%b_char = alloca i8, align 1
%d_int = alloca i32, align 4
%cp_char_ptr = alloca i8*, align 8
%X = alloca %struct.what, align 2
%i = alloca i64, align 8
store i32 0, i32* %1, align 4
store i32 %argc, i32* %2, align 4
store i8** %argv, i8*** %3, align 8
%4 = load i8**, i8*** %3, align 8
%5 = load i32, i32* %2, align 4
%6 = icmp eq i32 %5, 1
br i1 %6, label %7, label %11
; :7 ; preds = %0
%8 = getelementptr inbounds %struct.what, %struct.what* %X, i32 0, i32 0
store i8 1, i8* %8, align 2
store i8 49, i8* %b_char, align 1
%9 = getelementptr inbounds %struct.what, %struct.what* %X, i32 0, i32 1
store i16 128, i16* %9, align 2
store i32 65536, i32* %d_int, align 4
store i64 2147483648, i64* @e_long, align 8
store double 1.000000e+01, double* @g_double, align 8
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8** %cp_char_ptr, align 8
store i32 (...)* bitcast (i32 ()* @foo to i32 (...)*), i32 (...)** @func_ptr, align 8
%10 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i32 0, i32 0))
store i32 10, i32* %1, align 4
br label %66
; :11 ; preds = %0
%12 = load i32, i32* %2, align 4
%13 = icmp eq i32 %12, 2
br i1 %13, label %14, label %63
; :14 ; preds = %11
store i64 0, i64* %i, align 8
br label %15
; :15 ; preds = %43, %14
%16 = load i64, i64* %i, align 8
%17 = icmp ult i64 %16, 100
br i1 %17, label %18, label %46
; :18 ; preds = %15
%19 = load i64, i64* %i, align 8
%20 = urem i64 %19, 15
%21 = icmp ne i64 %20, 0
br i1 %21, label %24, label %22
; :22 ; preds = %18
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i32 0, i32 0))
br label %41
; :24 ; preds = %18
%25 = load i64, i64* %i, align 8
%26 = urem i64 %25, 3
%27 = icmp ne i64 %26, 0
br i1 %27, label %30, label %28
; :28 ; preds = %24
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0))
br label %40
; :30 ; preds = %24
%31 = load i64, i64* %i, align 8
%32 = urem i64 %31, 5
%33 = icmp ne i64 %32, 0
br i1 %33, label %36, label %34
; :34 ; preds = %30
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0))
br label %39
; :36 ; preds = %30
%37 = load i64, i64* %i, align 8
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i64 %37)
br label %39
; :39 ; preds = %36, %34
br label %40
; :40 ; preds = %39, %28
br label %41
; :41 ; preds = %40, %22
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i32 0, i32 0))
br label %43
; :43 ; preds = %41
%44 = load i64, i64* %i, align 8
%45 = add i64 %44, 1
store i64 %45, i64* %i, align 8
br label %15
; :46 ; preds = %15
%47 = getelementptr inbounds %struct.what, %struct.what* %X, i32 0, i32 0
store i8 1, i8* %47, align 2
store i8 49, i8* %b_char, align 1
%48 = getelementptr inbounds %struct.what, %struct.what* %X, i32 0, i32 1
store i16 128, i16* %48, align 2
store i32 65536, i32* %d_int, align 4
store i64 2147483648, i64* @e_long, align 8
store double 1.000000e+01, double* @g_double, align 8
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8** %cp_char_ptr, align 8
store i32 (...)* bitcast (i32 ()* @foo to i32 (...)*), i32 (...)** @func_ptr, align 8
%49 = getelementptr inbounds %struct.what, %struct.what* %X, i32 0, i32 0
%50 = load i8, i8* %49, align 2
%51 = trunc i8 %50 to i1
%52 = zext i1 %51 to i32
%53 = load i8, i8* %b_char, align 1
%54 = sext i8 %53 to i32
%55 = getelementptr inbounds %struct.what, %struct.what* %X, i32 0, i32 1
%56 = load i16, i16* %55, align 2
%57 = sext i16 %56 to i32
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i32 0, i32 0), i32 %52, i32 %54, i32 %57)
%59 = getelementptr inbounds %struct.what, %struct.what* %X, i32 0, i32 0
%60 = load i8, i8* %59, align 2
%61 = trunc i8 %60 to i1
%62 = zext i1 %61 to i32
store i32 %62, i32* %1, align 4
br label %66
; :63 ; preds = %11
%64 = load %struct._IO_FILE*, %struct._IO_FILE** @stderr, align 8
%65 = call i32 @fputs(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i32 0, i32 0), %struct._IO_FILE* %64)
store i32 -1, i32* %1, align 4
br label %66
; :66 ; preds = %63, %46, %7
%67 = load i32, i32* %1, align 4
ret i32 %67
}
declare i32 @printf(i8*, ...) #1
declare i32 @fputs(i8*, %struct._IO_FILE*) #1
attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
attributes #1 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
!llvm.ident = !{!0}
!0 = !{!"clang version 3.8.0 (tags/RELEASE_380/final)"}
欢迎使用Markdown编辑器写博客
本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:
Markdown和扩展Markdown简洁的语法
代码块高亮
图片链接和图片上传
LaTex 数学公式
UML序列图和流程图
离线写博客
导入导出Markdown文件
丰富的快捷键
快捷键
加粗 Ctrl + B
斜体 Ctrl + I
引用 Ctrl + Q
插入链接 Ctrl + L
插入代码 Ctrl + K
插入图片 Ctrl + G
提升标题 Ctrl + H
有序列表 Ctrl + O
无序列表 Ctrl + U
横线 Ctrl + R
撤销 Ctrl + Z
重做 Ctrl + Y
Markdown及扩展
Markdown 是一种轻量级标记语言,它允许人们使用易读易写的纯文本格式编写文档,然后转换成格式丰富的HTML页面。 —— [ 维基百科 ]
使用简单的符号标识不同的标题,将某些文字标记为粗体 或者斜体 ,创建一个链接等,详细语法参考帮助?。
本编辑器支持 Markdown Extra , 扩展了很多好用的功能。具体请参考Github.
表格
Markdown Extra 表格语法:
项目
价格
Computer
$1600
Phone
$12
Pipe
$1
可以使用冒号来定义对齐方式:
项目
价格
数量
Computer
1600 元
5
Phone
12 元
12
Pipe
1 元
234
定义列表
这里是1
这里是2
这里是3
Markdown Extra 定义列表语法: 项目1 项目2 : 定义 A : 定义 B
项目3 : 定义 C
: 定义 D
> 定义D内容
代码块
代码块语法遵循标准markdown代码,例如:
@requires_authorization
def somefunc(param1='', param2=0):
'''A docstring'''
if param1 > param2: # interesting
print 'Greater'
return (param2 - param1 + 1) or None
class SomeClass:
pass
>>> message = '''interpreter
... prompt'''
脚注
生成一个脚注[1] .
目录
用 [TOC]
来生成目录:
[TOC]
数学公式
使用MathJax渲染LaTex 数学公式,详见math.stackexchange.com.
行内公式,数学公式为:$\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$。
块级公式:
$$ x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a} $$
更多LaTex语法请参考 这儿.
UML 图:
可以渲染序列图:
张三->李四: 嘿,小四儿, 写博客了没?
Note right of 李四: 李四愣了一下,说:
李四-->张三: 忙得吐血,哪有时间写。
或者流程图:
st=>start: 开始
e=>end: 结束
op=>operation: 我的操作
cond=>condition: 确认?
st->op->cond
cond(yes)->e
cond(no)->op
关于 序列图 语法,参考 这儿,
关于 流程图 语法,参考 这儿.
离线写博客
即使用户在没有网络的情况下,也可以通过本编辑器离线写博客(直接在曾经使用过的浏览器中输入write.blog.csdn.net/mdeditor即可。Markdown编辑器 使用浏览器离线存储将内容保存在本地。
用户写博客的过程中,内容实时保存在浏览器缓存中,在用户关闭浏览器或者其它异常情况下,内容不会丢失。用户再次打开浏览器时,会显示上次用户正在编辑的没有发表的内容。
博客发表后,本地缓存将被删除。
用户可以选择 把正在写的博客保存到服务器草稿箱,即使换浏览器或者清除缓存,内容也不会丢失。
注意: 虽然浏览器存储大部分时候都比较可靠,但为了您的数据安全,在联网后,请务必及时发表或者保存到服务器草稿箱 。
浏览器兼容
目前,本编辑器对Chrome浏览器支持最为完整。建议大家使用较新版本的Chrome。
IE9以下不支持
IE9,10,11存在以下问题
不支持离线功能
IE9不支持文件导入导出
IE10不支持拖拽文件导入