]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Oops.
authorRudolf Polzer <divverent@xonotic.org>
Mon, 10 Mar 2014 09:42:44 +0000 (10:42 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 10 Mar 2014 09:42:44 +0000 (10:42 +0100)
fuzzer.sh

index a527dce19e900ec3cf7ead1b64c2b115d8a48918..933b0ff5021ffcdbb86e9445a7ea9cc2a298a013 100755 (executable)
--- a/fuzzer.sh
+++ b/fuzzer.sh
@@ -115,8 +115,8 @@ build_random_expression() {
                randomselect "vector / vector float"
                #randomselect "float % float float"
                randomselect "vector >< vector vector"
-               randomselect "float >> float float"
-               randomselect "float << float float"
+               #randomselect "float >> float float"
+               #randomselect "float << float float"
                randomselect "float < float float"
                randomselect "float > float float"
                randomselect "float <=> float float"
@@ -180,7 +180,7 @@ build_random_expression() {
                        build_random_expression "$((depth - 1))" "$randomselect_choice"
                        nextvar
                        compiletime="$op($compiletime)"
-                       runtime="$runtime;$NL$TAB""CHECK($type, $var, $op${vars##* }, $op($compiletime))"
+                       runtime="$runtime;$NL$TAB""CHECK($type, $var, $op${vars##* }, $compiletime)"
                        vars="$vars;$NL$type $var"
                        ;;
        esac
@@ -198,7 +198,7 @@ while :; do
                        ;;
        esac
        newvars
-       build_random_expression 1 "$type"
+       build_random_expression 3 "$type"
        cat <<EOF >foo.qc
 void print(...) = #1;
 string ftos(float) = #2;