about summary refs log tree commit diff homepage
path: root/www/resources
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2009-05-28 04:44:50 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2009-05-28 04:44:50 +0000
commitd5e3206198cb3c7489a2ba817dfdd4fe6587e143 (patch)
tree1a86bcf568e4a13b2fdf91bd70bcde48dc56f718 /www/resources
parent14f53fcc478fe46e76240ce3ee920adda74ddcd5 (diff)
downloadklee-d5e3206198cb3c7489a2ba817dfdd4fe6587e143.tar.gz
Changes to webpage to make both tutorials use the same template.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'www/resources')
-rw-r--r--www/resources/islower.c.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/www/resources/islower.c.html b/www/resources/islower.c.html
new file mode 100644
index 00000000..524f2093
--- /dev/null
+++ b/www/resources/islower.c.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
+<HTML>
+<HEAD>
+<TITLE>Enscript Output</TITLE>
+</HEAD>
+<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#1F00FF" ALINK="#FF0000" VLINK="#9900DD">
+<A NAME="top">
+<A NAME="file1">
+<H1>islower.c</H1>
+
+<PRE>
+<I><FONT COLOR="#B22222">/*
+ * First KLEE tutorial: testing a small function
+ */</FONT></I>
+
+#<B><FONT COLOR="#5F9EA0">include</FONT></B> <B><FONT COLOR="#BC8F8F">&lt;klee/klee.h&gt;</FONT></B>
+
+<B><FONT COLOR="#228B22">int</FONT></B> <B><FONT COLOR="#0000FF">my_islower</FONT></B>(<B><FONT COLOR="#228B22">int</FONT></B> x) {
+  <B><FONT COLOR="#A020F0">if</FONT></B> (x &gt;= <B><FONT COLOR="#BC8F8F">'a'</FONT></B> &amp;&amp; x &lt;= <B><FONT COLOR="#BC8F8F">'z'</FONT></B>)
+    <B><FONT COLOR="#A020F0">return</FONT></B> 1;
+  <B><FONT COLOR="#A020F0">else</FONT></B> <B><FONT COLOR="#A020F0">return</FONT></B> 0;
+}
+
+<B><FONT COLOR="#228B22">int</FONT></B> <B><FONT COLOR="#0000FF">main</FONT></B>() {
+  <B><FONT COLOR="#228B22">char</FONT></B> c;
+  klee_make_symbolic(&amp;c, <B><FONT COLOR="#A020F0">sizeof</FONT></B>(c), <B><FONT COLOR="#BC8F8F">&quot;input&quot;</FONT></B>);
+  <B><FONT COLOR="#A020F0">return</FONT></B> my_islower(c);
+}
+</PRE>
+<HR>
+<ADDRESS>Generated by <A HREF="http://www.iki.fi/~mtr/genscript/">GNU enscript 1.6.4</A>.</ADDRESS>
+</BODY>
+</HTML>